Browse Source

docs / travis / CRAN prep

boB Rudis 3 years ago
parent
commit
1b8cce470e
7 changed files with 181 additions and 99 deletions
  1. 14
    3
      .travis.yml
  2. 3
    3
      DESCRIPTION
  3. 4
    0
      NEWS.md
  4. 2
    0
      R/gdns.r
  5. 12
    17
      README.Rmd
  6. 143
    75
      README.md
  7. 3
    1
      man/query.Rd

+ 14
- 3
.travis.yml View File

@@ -1,3 +1,14 @@
1
-language: r
2
-warnings_are_errors: true
3
-sudo: required
1
+language: R
2
+
3
+sudo: false
4
+
5
+cache: packages
6
+
7
+os:
8
+  - linux
9
+  - osx
10
+
11
+r:
12
+  - oldrel
13
+  - release
14
+  - devel

+ 3
- 3
DESCRIPTION View File

@@ -1,8 +1,8 @@
1 1
 Package: gdns
2 2
 Title: Tools to Work with Google DNS Over HTTPS API
3
-Version: 0.2.0.9000
4
-Authors@R: c(person("Bob", "Rudis", email = "bob@rudis.net", role = c("aut", "cre")))
5
-Maintainer: Bob Rudis <bob@rudis.net>
3
+Version: 0.2.0
4
+Authors@R: c(person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre")))
5
+Maintainer: Bob Rudis <bob@rud.is>
6 6
 Description: To address the problem of insecurity of UDP-based DNS requests,
7 7
     Google Public DNS offers DNS resolution over an encrypted HTTPS
8 8
     connection. DNS-over-HTTPS greatly enhances privacy and security

+ 4
- 0
NEWS.md View File

@@ -0,0 +1,4 @@
1
+# gdns 0.2.0
2
+
3
+* CRAN release
4
+* Added a `NEWS.md` file to track changes to the package.

+ 2
- 0
R/gdns.r View File

@@ -29,6 +29,7 @@ S_GET <- purrr::safely(GET)
29 29
 #' @param type RR type can be represented as a number in [1, 65535] or canonical
30 30
 #'        string (A, aaaa, etc). More information on RR types can be
31 31
 #'        found \href{http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4}{here}.
32
+#'        You can use \code{255} for an \code{ANY} query.
32 33
 #' @param edns_client_subnet The edns0-client-subnet option. Format is an IP
33 34
 #'        address with a subnet mask. Examples: \code{1.2.3.4/24},
34 35
 #'        \code{2001:700:300::/48}.\cr
@@ -43,6 +44,7 @@ S_GET <- purrr::safely(GET)
43 44
 #' @export
44 45
 #' @examples
45 46
 #' query("rud.is")
47
+#' query("example.com", "255") # ANY query
46 48
 #' query("microsoft.com", "MX")
47 49
 #' query("google-public-dns-a.google.com", "TXT")
48 50
 #' query("apple.com")

+ 12
- 17
README.Rmd View File

@@ -36,11 +36,6 @@ The following functions are implemented:
36 36
 - `spf_ptrs`:	SPF field extraction functions
37 37
 - `split_spf`:	Split out all SPF records in a domain's TXT record
38 38
 
39
-### News
40
-
41
-- Version 0.2.0.9000 SPF stuff
42
-- Version 0.1.0.9000 released
43
-
44 39
 ### Installation
45 40
 
46 41
 ```{r eval=FALSE}
@@ -59,20 +54,10 @@ library(gdns)
59 54
 # current verison
60 55
 packageVersion("gdns")
61 56
 
62
-```
63
-
64
-### Test Results
65
-
66
-```{r}
67
-library(gdns)
68
-library(testthat)
69
-
70
-date()
71
-
72
-test_dir("tests/")
73
-
74 57
 query("rud.is")
75 58
 
59
+query("example.com", "255") # "ANY" query
60
+
76 61
 query("microsoft.com", "MX")
77 62
 
78 63
 query("google-public-dns-a.google.com", "TXT")
@@ -83,7 +68,17 @@ query("17.142.160.59", "PTR")
83 68
 
84 69
 hosts <- c("rud.is", "dds.ec", "r-project.org", "rstudio.com", "apple.com")
85 70
 gdns::bulk_query(hosts)
71
+```
72
+
73
+### Test Results
74
+
75
+```{r}
76
+library(gdns)
77
+library(testthat)
86 78
 
79
+date()
80
+
81
+test_dir("tests/")
87 82
 ```
88 83
 
89 84
 ### Code of Conduct

+ 143
- 75
README.md View File

@@ -25,11 +25,6 @@ The following functions are implemented:
25 25
 -   `spf_ptrs`: SPF field extraction functions
26 26
 -   `split_spf`: Split out all SPF records in a domain's TXT record
27 27
 
28
-### News
29
-
30
--   Version 0.2.0.9000 SPF stuff
31
--   Version 0.1.0.9000 released
32
-
33 28
 ### Installation
34 29
 
35 30
 ``` r
@@ -44,20 +39,6 @@ library(gdns)
44 39
 # current verison
45 40
 packageVersion("gdns")
46 41
 #> [1] '0.2.0.9000'
47
-```
48
-
49
-### Test Results
50
-
51
-``` r
52
-library(gdns)
53
-library(testthat)
54
-
55
-date()
56
-#> [1] "Sun Apr 10 14:51:46 2016"
57
-
58
-test_dir("tests/")
59
-#> testthat results ========================================================================================================
60
-#> OK: 2 SKIPPED: 0 FAILED: 0
61 42
 
62 43
 query("rud.is")
63 44
 #> $Status
@@ -93,7 +74,81 @@ query("rud.is")
93 74
 #> [1] "0.0.0.0/0"
94 75
 #> 
95 76
 #> $Comment
96
-#> [1] "Response from dns.mwebdns.net.(84.246.121.10)"
77
+#> [1] "Response from dns.mwebdns.net.(84.246.124.75)"
78
+
79
+query("example.com", "255") # "ANY" query
80
+#> $Status
81
+#> [1] 0
82
+#> 
83
+#> $TC
84
+#> [1] FALSE
85
+#> 
86
+#> $RD
87
+#> [1] TRUE
88
+#> 
89
+#> $RA
90
+#> [1] TRUE
91
+#> 
92
+#> $AD
93
+#> [1] TRUE
94
+#> 
95
+#> $CD
96
+#> [1] FALSE
97
+#> 
98
+#> $Question
99
+#>           name type
100
+#> 1 example.com.  255
101
+#> 
102
+#> $Answer
103
+#>            name type   TTL
104
+#> 1  example.com.    6  3599
105
+#> 2  example.com.   46 21599
106
+#> 3  example.com.   46 21599
107
+#> 4  example.com.   46  3599
108
+#> 5  example.com.   46    59
109
+#> 6  example.com.   46 21599
110
+#> 7  example.com.   46  3599
111
+#> 8  example.com.   46  3599
112
+#> 9  example.com.   46  3599
113
+#> 10 example.com.   47  3599
114
+#> 11 example.com.    2 21599
115
+#> 12 example.com.    2 21599
116
+#> 13 example.com.   28 21599
117
+#> 14 example.com.    1 21599
118
+#> 15 example.com.   16    59
119
+#> 16 example.com.   16    59
120
+#> 17 example.com.   48  3599
121
+#> 18 example.com.   48  3599
122
+#> 19 example.com.   48  3599
123
+#>                                                                                                                                                                                                                                                                                                                                                                                                                 data
124
+#> 1                                                                                                                                                                                                                                                                                                                                            sns.dns.icann.org. noc.dns.icann.org. 2015082662 7200 3600 1209600 3600
125
+#> 2                                                                                                                                                                               a 8 2 86400 1476095331 1474297785 1704 example.com. OnhJa3/aHkvePBvBME3nlZrkU/rdenyaquFgSYI/wKPq2/ZJVZGhv0TVBMJ5l6GZujqnyBfq9cvvb88//koi17oNjR5JEv2cv4rLT5pud3VhQdVrHD7fU8BV/YnCpP3ikXJMgjf6sAhgL7FZKLtpv7cFXnqznfRCTZ3HKkpBtAB0ZZw=
126
+#> 3                                                                                                                                                                              ns 8 2 86400 1476218628 1474362585 1704 example.com. dxPw4KtqLRMR/P1MB7umTClO/Tgf5X2ukJApKd133OMPhsy7c2N3QIxW4TLxZnCezUewDE1D86HBnGi1kGw4pN4W83lI37L6pTjIkDUtrc1acISOwg9Q9JM74On9/qKTGpTi7aSGVA5t4biLKqPm00a1Yu/VNPOxeLQPyYNjUYspNZ8=
127
+#> 4                                                                                                                                                                              soa 8 2 3600 1476508736 1474722585 1704 example.com. rHojLwiWn5xVU8noy1se7gRjiNI6GJdDcxwO1GU1qUs3Un4y7LyENjrK8qOv2z6EhblBOhPnrgnNMzEPPH3w+5azpU6xAH+jJHO4tExj4Pc3zzQ1sfFx1k8xWPfJjiWnUtUsk19y8vVqHvLXltvVItXlCClzljA0XyNUi1fvYjHbQxI=
128
+#> 5                                                                                                                                                                                txt 8 2 60 1476051975 1474218584 1704 example.com. FBZiE56Ux4VY5AMVtgitLIBWi+UteNSFh4BWwJksVRRt/7OoH7iD6h4UDqP8rNbk9qvXmRo4Ce2vROCbNkdTy/IDEoKo+Urfm69TuI2UTbl/nnQ2UtfMIEC83yywYRWdra5BPkt67SQhHSc4N7QHblABFbm2jPuu2+uOqaRCpfeoWYo=
129
+#> 6                                                                                                                                                                            aaaa 8 2 86400 1475967038 1474146584 1704 example.com. ZQgPaEBxSxHCPhOES76xksqOVYSRtNIieIwTwIo4Oceq0NGzjOyI+8wrgs79QHqs4e5SRe67hVX2rSaJ9Q167+TuQz57ZtyqeOZ+x+cgULyT1Q+8N0ZJlHpZS4i2VfR1xT+quG+0m9wtye8wA3Hl2mWPyTjtsH7mjoS7/U/ZQMJwi44=
130
+#> 7                                                                                                                                                                             nsec 8 2 3600 1475694918 1473887384 1704 example.com. XTCfotH8+cSDgNrFnCNWt4lx64yTnVzwOMZsFgynNSGS5LzY0VfRl7UvTH2WDVzdsIHgKpPBOUwv/DvjNhAMzUgHFlaK/A+U1aFa16/YQkqkIqqfnCA4EgBdhIK4FM3dSIVcpaj3PhGFKvMG4RBvoMAWLRXE3gKf3306CJzX1sfKdsA=
131
+#> 8  dnskey 8 2 3600 1476561735 1474722585 31406 example.com. Oup7snCR/5iUmTuGyHfCfFCisTeqaJ8RHD6aE9wZQR2CCkKZHXO9dzfUL1gA6T35p4T0XeM+TMlv1uZhX157RnanPwyZluancmm5cNz5ub0vG7G/O4DxnSoLmATYoBJ7Ub9Ul4iWFUE7nvyJ23X2MhX6XTiplXYPnztiem6rJLV84JiemoKtvapWchRhFi4w4Y+BdjHfY7IRERjQYNhVuaus5+EeppIoot9srsj2suXePGC7dE0R8z9K/BTYvQi76kBlJzzF9fNNy5JvyZPEUpXATuRD7KfxBsWHaFajOnYOb1eDAL/C0H3hhjVBov2Pexp7YDIsJzIa2g8850LruQ==
132
+#> 9  dnskey 8 2 3600 1476561735 1474722585 45620 example.com. f+aO6V+QKA4XgTC0Vqow59jBP/NlX6f7EEbaoXts0lp7Vaj/DBrhnS/sT4BbJb3VK1MvuPmNre5t0eyOeNCjbjrwIM2uf41GFuBI0AFxQx7o2PIdf1vrXsDnUGsZrMkYMv4gr802S7MXsvMdMN5cM0AA5Zol888sLP1yrHIcfNxG8hoUn3dS0L6nd/OxkL70+NjHBTjBQLqkLsK92ryJ0CWrzcJElszBRqfQfYGV/sJ84Ko4tjnBqRuki/rmTW5KQYdE7NI+MvERtGnep7RHb02Luk7BFPPD3uh353EYSAOVHrMH4fte6mJGcj3vxErfSWakRUXQpovLNcqYZNxoGQ==
133
+#> 10                                                                                                                                                                                                                                                                                                                                                              www.example.com. A NS SOA TXT AAAA RRSIG NSEC DNSKEY
134
+#> 11                                                                                                                                                                                                                                                                                                                                                                                               a.iana-servers.net.
135
+#> 12                                                                                                                                                                                                                                                                                                                                                                                               b.iana-servers.net.
136
+#> 13                                                                                                                                                                                                                                                                                                                                                                                2606:2800:220:1:248:1893:25c8:1946
137
+#> 14                                                                                                                                                                                                                                                                                                                                                                                                     93.184.216.34
138
+#> 15                                                                                                                                                                                                                                                                                                                                                                                                     "v=spf1 -all"
139
+#> 16                                                                                                                                                                                                                                                                                                                                                             "$Id: example.com 4415 2015-08-24 20:12:23Z davids $"
140
+#> 17                                                                                                                                                                                                                      256 3 8 AwEAAa3d68DfyIs03nGYpi3a9YX+f/wln3g6dhWWzjUUqp6CGXuaOdEHfS8zI/5JdGKi8Xoc4YmjPGfiCJIkCiQnMKn/QFygpZs41ANLdPp2jJlJhFA6IHE/xxTCxJfNhsdEAOGlMORN9Zu1XLUBo/IuCDUvUzZPgalivd/m9L+Jr4kxbg3v
141
+#> 18                                              257 3 8 AwEAAZ0aqu1rJ6orJynrRfNpPmayJZoAx9Ic2/Rl9VQWLMHyjxxem3VUSoNUIFXERQbj0A9Ogp0zDM9YIccKLRd6LmWiDCt7UJQxVdD+heb5Ec4qlqGmyX9MDabkvX2NvMwsUecbYBq8oXeTT9LRmCUt9KUt/WOi6DKECxoG/bWTykrXyBR8elD+SQY43OAVjlWrVltHxgp4/rhBCvRbmdflunaPIgu27eE2U4myDSLT8a4A0rB5uHG4PkOa9dIRs9y00M2mWf4lyPee7vi5few2dbayHXmieGcaAHrx76NGAABeY393xjlmDNcUkF1gpNWUla4fWZbbaYQzA93mLdrng+M=
142
+#> 19                                              257 3 8 AwEAAbOFAxl+Lkt0UMglZizKEC1AxUu8zlj65KYatR5wBWMrh18TYzK/ig6Y1t5YTWCO68bynorpNu9fqNFALX7bVl9/gybA0v0EhF+dgXmoUfRX7ksMGgBvtfa2/Y9a3klXNLqkTszIQ4PEMVCjtryl19Be9/PkFeC9ITjgMRQsQhmB39eyMYnal+f3bUxKk4fq7cuEU0dbRpue4H/N6jPucXWOwiMAkTJhghqgy+o9FfIp+tR/emKao94/wpVXDcPf5B18j7xz2SvTTxiuqCzCMtsxnikZHcoh1j4g+Y1B8zIMIvrEM+pZGhh/Yuf4RwCBgaYCi9hpiMWVvS4WBzx0/lU=
143
+#> 
144
+#> $Additional
145
+#> list()
146
+#> 
147
+#> $edns_client_subnet
148
+#> [1] "0.0.0.0/0"
149
+#> 
150
+#> $Comment
151
+#> [1] "Response from 199.43.135.53"
97 152
 
98 153
 query("microsoft.com", "MX")
99 154
 #> $Status
@@ -120,7 +175,7 @@ query("microsoft.com", "MX")
120 175
 #> 
121 176
 #> $Answer
122 177
 #>             name type  TTL                                          data
123
-#> 1 microsoft.com.   15 2054 10 microsoft-com.mail.protection.outlook.com.
178
+#> 1 microsoft.com.   15 1509 10 microsoft-com.mail.protection.outlook.com.
124 179
 #> 
125 180
 #> $Additional
126 181
 #> list()
@@ -162,7 +217,7 @@ query("google-public-dns-a.google.com", "TXT")
162 217
 #> [1] "0.0.0.0/0"
163 218
 #> 
164 219
 #> $Comment
165
-#> [1] "Response from 216.239.38.10"
220
+#> [1] "Response from 216.239.36.10"
166 221
 
167 222
 query("apple.com")
168 223
 #> $Status
@@ -189,9 +244,9 @@ query("apple.com")
189 244
 #> 
190 245
 #> $Answer
191 246
 #>         name type  TTL          data
192
-#> 1 apple.com.    1 1119 17.172.224.47
193
-#> 2 apple.com.    1 1119  17.178.96.59
194
-#> 3 apple.com.    1 1119 17.142.160.59
247
+#> 1 apple.com.    1 3413 17.172.224.47
248
+#> 2 apple.com.    1 3413  17.178.96.59
249
+#> 3 apple.com.    1 3413 17.142.160.59
195 250
 #> 
196 251
 #> $Additional
197 252
 #> list()
@@ -224,45 +279,45 @@ query("17.142.160.59", "PTR")
224 279
 #> 
225 280
 #> $Answer
226 281
 #>                           name type  TTL                           data
227
-#> 1  59.160.142.17.in-addr.arpa.   12 1134              alchemysynth.com.
228
-#> 2  59.160.142.17.in-addr.arpa.   12 1134                    openni.org.
229
-#> 3  59.160.142.17.in-addr.arpa.   12 1134                      swell.am.
230
-#> 4  59.160.142.17.in-addr.arpa.   12 1134                  appleweb.net.
231
-#> 5  59.160.142.17.in-addr.arpa.   12 1134                     apple.com.
232
-#> 6  59.160.142.17.in-addr.arpa.   12 1134        pv-apple-com.apple.com.
233
-#> 7  59.160.142.17.in-addr.arpa.   12 1134                      apple.by.
234
-#> 8  59.160.142.17.in-addr.arpa.   12 1134                 airtunes.info.
235
-#> 9  59.160.142.17.in-addr.arpa.   12 1134              applecentre.info.
236
-#> 10 59.160.142.17.in-addr.arpa.   12 1134         applecomputerinc.info.
237
-#> 11 59.160.142.17.in-addr.arpa.   12 1134                appleexpo.info.
238
-#> 12 59.160.142.17.in-addr.arpa.   12 1134             applemasters.info.
239
-#> 13 59.160.142.17.in-addr.arpa.   12 1134                 applepay.info.
240
-#> 14 59.160.142.17.in-addr.arpa.   12 1134 applepaymerchantsupplies.info.
241
-#> 15 59.160.142.17.in-addr.arpa.   12 1134         applepaysupplies.info.
242
-#> 16 59.160.142.17.in-addr.arpa.   12 1134              applescript.info.
243
-#> 17 59.160.142.17.in-addr.arpa.   12 1134               appleshare.info.
244
-#> 18 59.160.142.17.in-addr.arpa.   12 1134                   macosx.info.
245
-#> 19 59.160.142.17.in-addr.arpa.   12 1134                powerbook.info.
246
-#> 20 59.160.142.17.in-addr.arpa.   12 1134                 powermac.info.
247
-#> 21 59.160.142.17.in-addr.arpa.   12 1134            quicktimelive.info.
248
-#> 22 59.160.142.17.in-addr.arpa.   12 1134              quicktimetv.info.
249
-#> 23 59.160.142.17.in-addr.arpa.   12 1134                 sherlock.info.
250
-#> 24 59.160.142.17.in-addr.arpa.   12 1134            shopdifferent.info.
251
-#> 25 59.160.142.17.in-addr.arpa.   12 1134                 skyvines.info.
252
-#> 26 59.160.142.17.in-addr.arpa.   12 1134                     ubnw.info.
253
-#> 27 59.160.142.17.in-addr.arpa.   12 1134               webobjects.info.
254
-#> 28 59.160.142.17.in-addr.arpa.   12 1134                   yessql.info.
255
-#> 29 59.160.142.17.in-addr.arpa.   12 1134                ripmixburn.com.
256
-#> 30 59.160.142.17.in-addr.arpa.   12 1134                 apples-msk.ru.
257
-#> 31 59.160.142.17.in-addr.arpa.   12 1134                     icloud.se.
258
-#> 32 59.160.142.17.in-addr.arpa.   12 1134                     icloud.es.
259
-#> 33 59.160.142.17.in-addr.arpa.   12 1134                     icloud.om.
260
-#> 34 59.160.142.17.in-addr.arpa.   12 1134                   icloudo.com.
261
-#> 35 59.160.142.17.in-addr.arpa.   12 1134                     icloud.ch.
262
-#> 36 59.160.142.17.in-addr.arpa.   12 1134                     icloud.fr.
263
-#> 37 59.160.142.17.in-addr.arpa.   12 1134                   icloude.com.
264
-#> 38 59.160.142.17.in-addr.arpa.   12 1134          camelspaceeffect.com.
265
-#> 39 59.160.142.17.in-addr.arpa.   12 1134                 camelphat.com.
282
+#> 1  59.160.142.17.in-addr.arpa.   12 3025                 apples-msk.ru.
283
+#> 2  59.160.142.17.in-addr.arpa.   12 3025                     icloud.se.
284
+#> 3  59.160.142.17.in-addr.arpa.   12 3025                     icloud.es.
285
+#> 4  59.160.142.17.in-addr.arpa.   12 3025                     icloud.om.
286
+#> 5  59.160.142.17.in-addr.arpa.   12 3025                   icloudo.com.
287
+#> 6  59.160.142.17.in-addr.arpa.   12 3025                     icloud.ch.
288
+#> 7  59.160.142.17.in-addr.arpa.   12 3025                     icloud.fr.
289
+#> 8  59.160.142.17.in-addr.arpa.   12 3025                   icloude.com.
290
+#> 9  59.160.142.17.in-addr.arpa.   12 3025          camelspaceeffect.com.
291
+#> 10 59.160.142.17.in-addr.arpa.   12 3025                 camelphat.com.
292
+#> 11 59.160.142.17.in-addr.arpa.   12 3025              alchemysynth.com.
293
+#> 12 59.160.142.17.in-addr.arpa.   12 3025                    openni.org.
294
+#> 13 59.160.142.17.in-addr.arpa.   12 3025                      swell.am.
295
+#> 14 59.160.142.17.in-addr.arpa.   12 3025                  appleweb.net.
296
+#> 15 59.160.142.17.in-addr.arpa.   12 3025                     apple.com.
297
+#> 16 59.160.142.17.in-addr.arpa.   12 3025        pv-apple-com.apple.com.
298
+#> 17 59.160.142.17.in-addr.arpa.   12 3025                ripmixburn.com.
299
+#> 18 59.160.142.17.in-addr.arpa.   12 3025                   yessql.info.
300
+#> 19 59.160.142.17.in-addr.arpa.   12 3025               webobjects.info.
301
+#> 20 59.160.142.17.in-addr.arpa.   12 3025                     ubnw.info.
302
+#> 21 59.160.142.17.in-addr.arpa.   12 3025                 skyvines.info.
303
+#> 22 59.160.142.17.in-addr.arpa.   12 3025            shopdifferent.info.
304
+#> 23 59.160.142.17.in-addr.arpa.   12 3025                 sherlock.info.
305
+#> 24 59.160.142.17.in-addr.arpa.   12 3025              quicktimetv.info.
306
+#> 25 59.160.142.17.in-addr.arpa.   12 3025            quicktimelive.info.
307
+#> 26 59.160.142.17.in-addr.arpa.   12 3025                 powermac.info.
308
+#> 27 59.160.142.17.in-addr.arpa.   12 3025                powerbook.info.
309
+#> 28 59.160.142.17.in-addr.arpa.   12 3025                   macosx.info.
310
+#> 29 59.160.142.17.in-addr.arpa.   12 3025               appleshare.info.
311
+#> 30 59.160.142.17.in-addr.arpa.   12 3025              applescript.info.
312
+#> 31 59.160.142.17.in-addr.arpa.   12 3025         applepaysupplies.info.
313
+#> 32 59.160.142.17.in-addr.arpa.   12 3025 applepaymerchantsupplies.info.
314
+#> 33 59.160.142.17.in-addr.arpa.   12 3025                 applepay.info.
315
+#> 34 59.160.142.17.in-addr.arpa.   12 3025             applemasters.info.
316
+#> 35 59.160.142.17.in-addr.arpa.   12 3025                appleexpo.info.
317
+#> 36 59.160.142.17.in-addr.arpa.   12 3025         applecomputerinc.info.
318
+#> 37 59.160.142.17.in-addr.arpa.   12 3025              applecentre.info.
319
+#> 38 59.160.142.17.in-addr.arpa.   12 3025                 airtunes.info.
320
+#> 39 59.160.142.17.in-addr.arpa.   12 3025                      apple.by.
266 321
 #> 
267 322
 #> $Additional
268 323
 #> list()
@@ -272,17 +327,30 @@ query("17.142.160.59", "PTR")
272 327
 
273 328
 hosts <- c("rud.is", "dds.ec", "r-project.org", "rstudio.com", "apple.com")
274 329
 gdns::bulk_query(hosts)
275
-#> Source: local data frame [7 x 4]
276
-#> 
277
-#>             name  type   TTL            data
278
-#>            (chr) (int) (int)           (chr)
279
-#> 1        rud.is.     1  3598 104.236.112.222
280
-#> 2        dds.ec.     1   299   162.243.111.4
281
-#> 3 r-project.org.     1  7177   137.208.57.37
282
-#> 4   rstudio.com.     1  3599    45.79.156.36
283
-#> 5     apple.com.     1  1102   17.172.224.47
284
-#> 6     apple.com.     1  1102    17.178.96.59
285
-#> 7     apple.com.     1  1102   17.142.160.59
330
+#>             name type  TTL            data
331
+#> 1        rud.is.    1 3598 104.236.112.222
332
+#> 2        dds.ec.    1  299   162.243.111.4
333
+#> 3 r-project.org.    1 3072   137.208.57.37
334
+#> 4   rstudio.com.    1 3599    45.79.156.36
335
+#> 5     apple.com.    1 3415   17.172.224.47
336
+#> 6     apple.com.    1 3415    17.178.96.59
337
+#> 7     apple.com.    1 3415   17.142.160.59
338
+```
339
+
340
+### Test Results
341
+
342
+``` r
343
+library(gdns)
344
+library(testthat)
345
+
346
+date()
347
+#> [1] "Thu Sep 29 09:44:11 2016"
348
+
349
+test_dir("tests/")
350
+#> testthat results ========================================================================================================
351
+#> OK: 2 SKIPPED: 0 FAILED: 0
352
+#> 
353
+#> DONE ===================================================================================================================
286 354
 ```
287 355
 
288 356
 ### Code of Conduct

+ 3
- 1
man/query.Rd View File

@@ -16,7 +16,8 @@ a proper format for reverse lookups.}
16 16
 
17 17
 \item{type}{RR type can be represented as a number in [1, 65535] or canonical
18 18
 string (A, aaaa, etc). More information on RR types can be
19
-found \href{http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4}{here}.}
19
+found \href{http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4}{here}.
20
+You can use \code{255} for an \code{ANY} query.}
20 21
 
21 22
 \item{edns_client_subnet}{The edns0-client-subnet option. Format is an IP
22 23
 address with a subnet mask. Examples: \code{1.2.3.4/24},
@@ -50,6 +51,7 @@ To perform vectorized queries with only answers (and no metadata) use
50 51
 }
51 52
 \examples{
52 53
 query("rud.is")
54
+query("example.com", "255") # ANY query
53 55
 query("microsoft.com", "MX")
54 56
 query("google-public-dns-a.google.com", "TXT")
55 57
 query("apple.com")

Loading…
Cancel
Save