No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

doh_get.Rd 1000B

12345678910111213141516171819202122232425262728293031323334
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/doh-get.R
  3. \name{doh_get}
  4. \alias{doh_get}
  5. \title{Make a DoH Request (GET/REST)}
  6. \usage{
  7. doh_get(name, type = "a", extra_params = list(),
  8. service_path = "https://9.9.9.9/dns-query")
  9. }
  10. \arguments{
  11. \item{name}{name to query for}
  12. \item{type}{DNS query type (defaults to "\code{A}")}
  13. \item{extra_params}{any special \code{GET} query parameter needed for a given server API endpoint.
  14. this should be a named \code{list}.}
  15. \item{server_path}{full URL path to the DoH server quer endpoint (defaults to Quad9).}
  16. }
  17. \value{
  18. \code{NULL} (if the query failed) or a \code{data.frame} (tibble)
  19. }
  20. \description{
  21. Issue a \code{GET} REST API query of type \code{type} for \code{name} to the
  22. DoH endpoint specified at \code{server_path}.
  23. }
  24. \examples{
  25. doh_get("rud.is", "A")
  26. doh_get("lenovo.com", "TXT")
  27. doh_get(to_inaddr_arpa("104.244.13.104"), "PTR")
  28. }
  29. \references{
  30. \url{https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html}
  31. }