boB Rudis 9 months ago
parent
commit
cda06176bb
No known key found for this signature in database
7 changed files with 25 additions and 14 deletions
  1. 1
    1
      DESCRIPTION
  2. 1
    0
      R/doh-post.R
  3. 1
    0
      R/playdoh-package.R
  4. 2
    0
      README.Rmd
  5. 16
    13
      README.md
  6. 3
    0
      man/doh_post.Rd
  7. 1
    0
      man/playdoh.Rd

+ 1
- 1
DESCRIPTION View File

@@ -8,7 +8,7 @@ Authors@R: c(
8 8
            comment = c(ORCID = "0000-0001-5670-2640"))
9 9
   )
10 10
 Maintainer: Bob Rudis <bob@rud.is>
11
-Description: Make 'DNS over HTTPS' queries.
11
+Description: Make 'DNS over HTTPS' (<https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html>) queries.
12 12
 URL: https://gitlab.com/hrbrmstr/playdoh
13 13
 BugReports: https://gitlab.com/hrbrmstr/playdoh/issues
14 14
 Encoding: UTF-8

+ 1
- 0
R/doh-post.R View File

@@ -6,6 +6,7 @@
6 6
 #' @param type DNS query type (defaults to "`A`")
7 7
 #' @param server_path full URL path to the DoH server quer endpoint (defaults to Quad9).
8 8
 #' @return `NULL` (if the query failed) or a `data.frame` (tibble)
9
+#' @references <https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html>
9 10
 #' @export
10 11
 doh_post <- function(name, type = "A", server_path = "https://dns.quad9.net/dns-query") {
11 12
 

+ 1
- 0
R/playdoh-package.R View File

@@ -1,5 +1,6 @@
1 1
 #' Make 'DNS over HTTPS' Queries
2 2
 #'
3
+#' - RFC: <https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html>
3 4
 #' - URL: <https://gitlab.com/hrbrmstr/playdoh>
4 5
 #' - BugReports: <https://gitlab.com/hrbrmstr/playdoh/issues>
5 6
 #'

+ 2
- 0
README.Rmd View File

@@ -20,6 +20,8 @@ Make 'DNS over HTTPS' Queries
20 20
 
21 21
 Make 'DNS over HTTPS' Queries
22 22
 
23
+DoH RTFM: <https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html>
24
+
23 25
 ## What's Inside The Tin
24 26
 
25 27
 The following functions are implemented:

+ 16
- 13
README.md View File

@@ -13,6 +13,9 @@ Make ‘DNS over HTTPS’ Queries
13 13
 
14 14
 Make ‘DNS over HTTPS’ Queries
15 15
 
16
+DoH RTFM:
17
+<https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html>
18
+
16 19
 ## What’s Inside The Tin
17 20
 
18 21
 The following functions are implemented:
@@ -47,30 +50,30 @@ doh_post("rud.is")
47 50
 ## # A tibble: 1 x 6
48 51
 ##   query   qtype rname   rtype rdata           ttl
49 52
 ##   <chr>   <int> <chr>   <int> <chr>         <int>
50
-## 1 rud.is.     1 rud.is.     1 172.93.49.183  3572
53
+## 1 rud.is.     1 rud.is.     1 172.93.49.183  3600
51 54
 
52 55
 doh_post("lenovo.com", "txt")
53 56
 ## # A tibble: 10 x 6
54 57
 ##    query      qtype rname      rtype rdata                                                                           ttl
55 58
 ##    <chr>      <int> <chr>      <int> <chr>                                                                         <int>
56
-##  1 lenovo.co…    16 lenovo.co…    16 "\"google-site-verification=nGgukcp60rC-gFxMOJw1NHH0B4VnSchRrlfWV-He_tE\""     7173
57
-##  2 lenovo.co…    16 lenovo.co…    16 "\"a82c74b37aa84e7c8580f0e32f4d795d\""                                         7173
58
-##  3 lenovo.co…    16 lenovo.co…    16 "\"google-site-verification=sHIlSlj0U6UnCDkfHp1AolWgVEvDjWvc0TR4KaysD2c\""     7173
59
-##  4 lenovo.co…    16 lenovo.co…    16 "\"v=spf1 include:spf.messagelabs.com include:_netblocks.eloqua.com ~all\""    7173
60
-##  5 lenovo.co…    16 lenovo.co…    16 "\"qh7hdmqm4lzs85p704d6wsybgrpsly0j\""                                         7173
61
-##  6 lenovo.co…    16 lenovo.co…    16 "\"ece42d7743c84d6889abda7011fe6f53\""                                         7173
62
-##  7 lenovo.co…    16 lenovo.co…    16 "\"iHzQJvsKnyGP2Nm2qBgL3fyBJ0CC9z4GkY/flfk4EzLP8lPxWHDDPKqZWm1TkeF5kEIL+NotY…  7173
63
-##  8 lenovo.co…    16 lenovo.co…    16 "\"Visit www.lenovo.com/think for information about Lenovo products and serv…  7173
64
-##  9 lenovo.co…    16 lenovo.co…    16 "\"google-site-verification=VxW_e6r_Ka7A518qfX2MmIMHGnkpGbnACsjSxKFCBw0\""     7173
65
-## 10 lenovo.co…    16 lenovo.co…    16 "\"facebook-domain-verification=1r2am7c2bhzrxpqyt0mda0djoquqsi\""              7173
59
+##  1 lenovo.co…    16 lenovo.co…    16 "\"qh7hdmqm4lzs85p704d6wsybgrpsly0j\""                                            1
60
+##  2 lenovo.co…    16 lenovo.co…    16 "\"ece42d7743c84d6889abda7011fe6f53\""                                            1
61
+##  3 lenovo.co…    16 lenovo.co…    16 "\"a82c74b37aa84e7c8580f0e32f4d795d\""                                            1
62
+##  4 lenovo.co…    16 lenovo.co…    16 "\"google-site-verification=VxW_e6r_Ka7A518qfX2MmIMHGnkpGbnACsjSxKFCBw0\""        1
63
+##  5 lenovo.co…    16 lenovo.co…    16 "\"google-site-verification=sHIlSlj0U6UnCDkfHp1AolWgVEvDjWvc0TR4KaysD2c\""        1
64
+##  6 lenovo.co…    16 lenovo.co…    16 "\"Visit www.lenovo.com/think for information about Lenovo products and serv…     1
65
+##  7 lenovo.co…    16 lenovo.co…    16 "\"google-site-verification=nGgukcp60rC-gFxMOJw1NHH0B4VnSchRrlfWV-He_tE\""        1
66
+##  8 lenovo.co…    16 lenovo.co…    16 "\"iHzQJvsKnyGP2Nm2qBgL3fyBJ0CC9z4GkY/flfk4EzLP8lPxWHDDPKqZWm1TkeF5kEIL+NotY…     1
67
+##  9 lenovo.co…    16 lenovo.co…    16 "\"v=spf1 include:spf.messagelabs.com include:_netblocks.eloqua.com ~all\""       1
68
+## 10 lenovo.co…    16 lenovo.co…    16 "\"facebook-domain-verification=1r2am7c2bhzrxpqyt0mda0djoquqsi\""                 1
66 69
 ```
67 70
 
68 71
 ## playdoh Metrics
69 72
 
70 73
 | Lang | \# Files |  (%) | LoC |  (%) | Blank lines |  (%) | \# Lines |  (%) |
71 74
 | :--- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | ---: |
72
-| R    |        6 | 0.86 | 122 | 0.92 |          23 | 0.52 |       26 | 0.43 |
73
-| Rmd  |        1 | 0.14 |  11 | 0.08 |          21 | 0.48 |       35 | 0.57 |
75
+| R    |        6 | 0.86 | 122 | 0.92 |          23 | 0.51 |       26 | 0.42 |
76
+| Rmd  |        1 | 0.14 |  11 | 0.08 |          22 | 0.49 |       36 | 0.58 |
74 77
 
75 78
 ## Code of Conduct
76 79
 

+ 3
- 0
man/doh_post.Rd View File

@@ -20,3 +20,6 @@ doh_post(name, type = "A",
20 20
 \description{
21 21
 Issue the query of type \code{type} for \code{name} to the DoH endpoint specified at \code{server_path}.
22 22
 }
23
+\references{
24
+\url{https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html}
25
+}

+ 1
- 0
man/playdoh.Rd View File

@@ -7,6 +7,7 @@
7 7
 \title{Make 'DNS over HTTPS' Queries}
8 8
 \description{
9 9
 \itemize{
10
+\item RFC: \url{https://tools.ietf.org/id/draft-ietf-doh-dns-over-https-05.html}
10 11
 \item URL: \url{https://gitlab.com/hrbrmstr/playdoh}
11 12
 \item BugReports: \url{https://gitlab.com/hrbrmstr/playdoh/issues}
12 13
 }

Loading…
Cancel
Save