# 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", "4.2.2.4")
whois_query(domains)
# Extract Country Info About IP Addresses
ip_addresses <- c("1.1.1.1", "8.8.8.8")
query_ret <- whois_query(ip_addresses)
countries <- whois_keyextract(query_ret, "country")
# Extract Organization Info From Same IPs
organization_names <- whois_keyextract(query_ret,
c("org-name", "orgname", "organisation", "organization")
)
Run the code above in your browser using DataLab