doh_get: Make a DoH Request (GET/REST)

Description Usage Arguments Value References Examples

Description

Issue a GET REST API query of type type for name to the DoH endpoint specified at server_path.

Usage

1
2
doh_get(name, type = "a", extra_params = list(),
  service_path = "https://9.9.9.9/dns-query")

Arguments

name

name to query for

type

DNS query type (defaults to "A")

extra_params

any special GET query parameter needed for a given server API endpoint. this should be a named list.

server_path

full URL path to the DoH server quer endpoint (defaults to Quad9).

Value

NULL (if the query failed) or a data.frame (tibble)

References

https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html

Examples

1
2
3
doh_get("rud.is", "A")
doh_get("lenovo.com", "TXT")
doh_get(to_inaddr_arpa("104.244.13.104"), "PTR")

hrbrmstr/playdoh documentation built on June 7, 2019, 9:56 a.m.