Bob Rudis 3 years ago
parent
commit
60a7035362
4 changed files with 12 additions and 8 deletions
  1. 0
    2
      .travis.yml
  2. 8
    2
      DESCRIPTION
  3. 2
    2
      R/gdns.r
  4. 2
    2
      man/query.Rd

+ 0
- 2
.travis.yml View File

@@ -1,5 +1,3 @@
1
-# Sample .travis.yml for R projects
2
-
3 1
 language: r
4 2
 warnings_are_errors: true
5 3
 sudo: required

+ 8
- 2
DESCRIPTION View File

@@ -1,9 +1,15 @@
1 1
 Package: gdns
2
-Title: Tools to Work with Google DNS Over https API
2
+Title: Tools to Work with Google DNS Over HTTPS API
3 3
 Version: 0.1.0.9000
4 4
 Authors@R: c(person("Bob", "Rudis", email = "bob@rudis.net", role = c("aut", "cre")))
5 5
 Maintainer: Bob Rudis <bob@rudis.net>
6
-Description: Tools to Work with Google DNS Over https API
6
+Description: To address the problem of insecurity of UDP-based DNS requests,
7
+    Google Public DNS offers DNS resolution over an encrypted HTTPS
8
+    connection. DNS-over-HTTPS greatly enhances privacy and security
9
+    between a client and a recursive resolver, and complements DNSSEC
10
+    to provide end-to-end authenticated DNS lookups. Functions that enable
11
+    querying individual requests that bulk requests that return detailed
12
+    responses and bulk requests are both provided.
7 13
 License: AGPL + file LICENSE
8 14
 LazyData: true
9 15
 Encoding: UTF-8

+ 2
- 2
R/gdns.r View File

@@ -20,7 +20,7 @@ S_GET <- purrr::safely(GET)
20 20
 #' @param name item to lookup. Valid characters are numbers, letters, hyphen, and dot. Length
21 21
 #'        must be between 1 and 255. Names with escaped or non-ASCII characters
22 22
 #'        are not supported. Internationalized domain names must use the
23
-#'        punycode format (e.g. "\code{xn--qxam}" rather than "\code{ελ}")
23
+#'        punycode format (e.g. "\code{xn--qxam}").
24 24
 #' @param type RR type can be represented as a number in [1, 65535] or canonical
25 25
 #'        string (A, aaaa, etc.)
26 26
 #' @param edns_client_subnet The edns0-client-subnet option. Format is an IP
@@ -37,7 +37,7 @@ S_GET <- purrr::safely(GET)
37 37
 #' @export
38 38
 #' @examples
39 39
 #' query("rud.is")
40
-query <- function(name, type="1", cd=FALSE, edns_client_subnet=NULL) {
40
+query <- function(name, type="1", edns_client_subnet=NULL) {
41 41
 
42 42
   res <- S_GET("https://dns.google.com/resolve",
43 43
                query=list(name=name,

+ 2
- 2
man/query.Rd View File

@@ -4,13 +4,13 @@
4 4
 \alias{query}
5 5
 \title{Perform DNS over HTTPS queries using Google}
6 6
 \usage{
7
-query(name, type = "1", cd = FALSE, edns_client_subnet = NULL)
7
+query(name, type = "1", edns_client_subnet = NULL)
8 8
 }
9 9
 \arguments{
10 10
 \item{name}{item to lookup. Valid characters are numbers, letters, hyphen, and dot. Length
11 11
 must be between 1 and 255. Names with escaped or non-ASCII characters
12 12
 are not supported. Internationalized domain names must use the
13
-punycode format (e.g. "\code{xn--qxam}" rather than "\code{ελ}")}
13
+punycode format (e.g. "\code{xn--qxam}").}
14 14
 
15 15
 \item{type}{RR type can be represented as a number in [1, 65535] or canonical
16 16
 string (A, aaaa, etc.)}

Loading…
Cancel
Save