gdns (version 0.5.0)

bulk_query: Vectorized query, returning only answers in a data frame

Description

Vectorized query, returning only answers in a data frame

Usage

bulk_query(
  entities,
  type = 1,
  cd = FALSE,
  do = FALSE,
  edns_client_subnet = "0.0.0.0/0"
)

Arguments

entities

character vector of entities to query

type

RR type can be represented as a number in [1, 65535] or canonical string (A, aaaa, etc). More information on RR types can be found here.

cd

(Checking Disabled) flag. Use `TRUE` to disable DNSSEC validation; Default: `FALSE`.

do

(DNSSEC OK) flag. Use `TRUE` include DNSSEC records (RRSIG, NSEC, NSEC3); Default: `FALSE`.

edns_client_subnet

The edns0-client-subnet option. Format is an IP address with a subnet mask. Examples: 1.2.3.4/24, 2001:700:300::/48. If you are using DNS-over-HTTPS because of privacy concerns, and do not want any part of your IP address to be sent to authoritative nameservers for geographic location accuracy, use edns_client_subnet=0.0.0.0/0. Google Public DNS normally sends approximate network information (usually replacing the last part of your IPv4 address with zeroes). 0.0.0.0/0 is the default.

Value

data.frame of only answers (use query() for detailed responses)

References

https://developers.google.com/speed/public-dns/docs/dns-over-https

Examples

Run this code
# NOT RUN {
if (tinytest::at_home()) {
  hosts <- c("rud.is", "r-project.org", "rstudio.com", "apple.com")
  gdns::bulk_query(hosts)
}
# }

Run the code above in your browser using DataCamp Workspace