The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Title: WHOIS Server Querying
Version: 1.0.16
Date: 2024-03-14
Author: Brad Cable
Maintainer: Brad Cable <brad@bcable.net>
Description: Queries data from WHOIS servers.
Imports: stringr, utils
License: MIT + file LICENSE
NeedsCompilation: no
Packaged: 2024-03-15 03:13:12 UTC; kosh
Repository: CRAN
Date/Publication: 2024-03-15 03:30:02 UTC

WHOIS server querying

Description

Queries WHOIS servers

Usage

whois_query(hostname, server="whois.iana.org",
  follow.refer=TRUE, raw.data=FALSE, debug=FALSE
)
whois_keyextract(query_ret, keys, blacklist_values=NULL, unlist.recursive=TRUE)

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.

query_ret

data.frame that was returned from whois_query()

keys

Single string or vector of strings, case-insensitive, of what keys to look for in-order to return back values of from the whois return

debug

Boolean if you want debug prints (good for large quantities of manual data)

blacklist_values

Character or vector of values (or starting values) to skip when searching

unlist.recursive

Boolean if you want the unlist at the end to pass recursively

Value

whois_query() returns a data.frame whois_keyextract() returns a vector

Author(s)

Brad Cable

Examples

# 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")
)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.