knitr::opts_chunk$set(
  message = FALSE,
  warning = FALSE,
  fig.retina = 2
)
options(width=120)

Travis-CI Build Status

gdns

Tools to work with the Google DNS over HTTPS (DoH) API

Description

Traditional DNS queries and responses are sent over UDP or TCP without encryption. This is vulnerable to eavesdropping and spoofing (including DNS-based Internet filtering). Responses from recursive resolvers to clients are the most vulnerable to undesired or malicious changes, while communications between recursive resolvers and authoritative nameservers often incorporate additional protection.

To address this problem, Google Public DNS offers DNS resolution over an encrypted HTTPS connection. DNS-over-HTTPS greatly enhances privacy and security between a client and a recursive resolver, and complements DNSSEC to provide end-to-end authenticated DNS lookups.

More info at https://developers.google.com/speed/public-dns/docs/doh/.

The following functions are implemented:

Core:

Helpers:

IANA Datasets:

Installation

Any of the following:

install.packages("gdns", repos = "https://cinc.rud.is")
devtools::install_git("https://git.rud.is/hrbrmstr/gdns")
devtools::install_git("https://git.sr.ht/~rbrmstr/gdns")
devtools::install_bitbucket("hrbrmstr/gdns")
devtools::install_gitlab("hrbrmstr/gdns")
devtools::install_github("hrbrmstr/gdns")
options(width=120)

Usage

library(gdns)
library(tibble) # for printing

# current verison
packageVersion("gdns")

str(query("rud.is"))

query("rud.is") %>% 
  as.data.frame()

str(dig("example.com", "255")) # "ANY" query

query("microsoft.com", "MX") %>% 
  as.data.frame()

as.data.frame(query("apple.com"))

as.data.frame(dig("17.142.160.59", "PTR"))

hosts <- c("rud.is", "dds.ec", "r-project.org", "rstudio.com", "apple.com")

gdns::bulk_query(hosts)

gdns Metrics

cloc::cloc_pkg_md()

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.



hrbrmstr/gdns documentation built on May 17, 2020, 3:37 a.m.