Tools to work with the Google DNS over HTTPS API in R
https://cinc.rud.is/web/packages/gdns/
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.
1.4 KiB
1.4 KiB
gdns
: Tools to work with the Google DNS over HTTPS API
The following functions are implemented:
query
: perform the DNS query
News
- Version 0.1.0.9000 released
Installation
devtools::install_github("hrbrmstr/gdns")
Usage
library(gdns)
# current verison
packageVersion("gdns")
#> [1] '0.1.0.9000'
Test Results
library(gdns)
library(testthat)
date()
#> [1] "Sat Apr 9 17:14:38 2016"
test_dir("tests/")
#> testthat results ========================================================================================================
#> OK: 0 SKIPPED: 0 FAILED: 0
library(purrr)
#>
#> Attaching package: 'purrr'
#> The following object is masked from 'package:testthat':
#>
#> is_null
hosts <- c("rud.is", "dds.ec", "r-project.org", "rstudio.com")
results <- map(hosts, gdns::query)
map_df(results, "Answer")
#> Source: local data frame [4 x 4]
#>
#> name type TTL data
#> (chr) (int) (int) (chr)
#> 1 rud.is. 1 3147 104.236.112.222
#> 2 dds.ec. 1 299 162.243.111.4
#> 3 r-project.org. 1 1801 137.208.57.37
#> 4 rstudio.com. 1 3482 45.79.156.36
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.