Rwhois: WHOIS server querying

Description Usage Arguments Value Author(s) Examples

Description

Queries WHOIS servers

Usage

1
whois_query(hostname, server="whois.iana.org", follow.refer=TRUE, raw.data=FALSE)

Arguments

hostname

Server hostname (or hostnames as vector) to return results for.

server

WHOIS server to query (default: whois.iana.org)

follow.refer

Whether to follow referral information from a WHOIS result to query a different WHOIS server. Default TRUE.

raw.data

Whether to dump raw output as a character string without parsing. Default FALSE. If TRUE, this option supercedes follow.refer and forces it FALSE.

Value

whois_query() returns a data.frame

Author(s)

Brad Cable

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Grab WHOIS data for a hostname
whois_query("bcable.net")

# Grab WHOIS data for an IP
whois_query("1.1.1.1")

# Grab WHOIS data for a hostname from a different whois server
whois_query("bcable.net", server="whois.verisign-grs.com")

# Grab multiple vectorized results
domains <- c("bcable.net", "google.com")
whois_query(domains)

Rwhois documentation built on May 8, 2021, 9:06 a.m.