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.

index.html 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. <!-- Generated by pkgdown: do not edit by hand -->
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <title>Home. gdns</title>
  9. <!-- jquery -->
  10. <script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha384-nrOSfDHtoPMzJHjVTdCopGqIqeYETSXhZDFyniQ8ZHcVy08QesyHcnOUpMpqnmWq" crossorigin="anonymous"></script>
  11. <!-- Bootstrap -->
  12. <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  13. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  14. <!-- Font Awesome icons -->
  15. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
  16. <!-- pkgdown -->
  17. <link href="pkgdown.css" rel="stylesheet">
  18. <script src="pkgdown.js"></script>
  19. <!-- mathjax -->
  20. <script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
  21. <!--[if lt IE 9]>
  22. <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  23. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  24. <![endif]-->
  25. </head>
  26. <body>
  27. <div class="container">
  28. <header>
  29. <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  30. <div class="container">
  31. <div class="navbar-header">
  32. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
  33. <span class="icon-bar"></span>
  34. <span class="icon-bar"></span>
  35. <span class="icon-bar"></span>
  36. </button>
  37. <a class="navbar-brand" href="index.html">gdns</a>
  38. </div>
  39. <div id="navbar" class="navbar-collapse collapse">
  40. <ul class="nav navbar-nav">
  41. <li>
  42. <a href="index.html">Home</a>
  43. </li>
  44. <li>
  45. <a href="reference/index.html">Reference</a>
  46. </li>
  47. <li>
  48. <a href="news/index.html">News</a>
  49. </li>
  50. </ul>
  51. <ul class="nav navbar-nav navbar-right">
  52. </ul>
  53. </div><!--/.nav-collapse -->
  54. </div><!--/.container -->
  55. </div><!--/.navbar -->
  56. </header>
  57. <div class="row">
  58. <div class="col-md-9">
  59. <p><a href="https://travis-ci.org/hrbrmstr/gdns"><img src="https://travis-ci.org/hrbrmstr/gdns.svg?branch=master" alt="Travis-CI Build Status"></a></p>
  60. <p><code>gdns</code> : Tools to work with the Google DNS over HTTPS API</p>
  61. <p>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.</p>
  62. <p>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.</p>
  63. <p>More info at <a href="https://developers.google.com/speed/public-dns/docs/dns-over-https" class="uri">https://developers.google.com/speed/public-dns/docs/dns-over-https</a>.</p>
  64. <p>The following functions are implemented:</p>
  65. <ul>
  66. <li>
  67. <code>bulk_query</code>: Vectorized query, returning only answers in a data frame</li>
  68. <li>
  69. <code>has_spf</code>: Test for whether a DNS TXT record is an SPF record</li>
  70. <li>
  71. <code>is_hard_fail</code>: SPF &ldquo;all&rdquo; type test</li>
  72. <li>
  73. <code>is_soft_fail</code>: SPF &ldquo;all&rdquo; type test</li>
  74. <li>
  75. <code>passes_all</code>: SPF &ldquo;all&rdquo; type test</li>
  76. <li>
  77. <code>query</code>: Perform DNS over HTTPS queries using Google</li>
  78. <li>
  79. <code>spf_exists</code>: SPF field extraction functions</li>
  80. <li>
  81. <code>spf_includes</code>: SPF field extraction functions</li>
  82. <li>
  83. <code>spf_ipv4s</code>: SPF field extraction functions</li>
  84. <li>
  85. <code>spf_ipv6s</code>: SPF field extraction functions</li>
  86. <li>
  87. <code>spf_ptrs</code>: SPF field extraction functions</li>
  88. <li>
  89. <code>split_spf</code>: Split out all SPF records in a domain&rsquo;s TXT record</li>
  90. </ul>
  91. <h3 id="installation">Installation</h3>
  92. <div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">devtools::<span class="kw">install_github</span>(<span class="st">"hrbrmstr/gdns"</span>)</code></pre></div>
  93. <h3 id="usage">Usage</h3>
  94. <div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(gdns)
  95. <span class="co"># current verison</span>
  96. <span class="kw">packageVersion</span>(<span class="st">"gdns"</span>)
  97. <span class="co">#&gt; [1] '0.2.0.9000'</span>
  98. <span class="kw"><a href="reference/query.html">query</a></span>(<span class="st">"rud.is"</span>)
  99. <span class="co">#&gt; $Status</span>
  100. <span class="co">#&gt; [1] 0</span>
  101. <span class="co">#&gt; </span>
  102. <span class="co">#&gt; $TC</span>
  103. <span class="co">#&gt; [1] FALSE</span>
  104. <span class="co">#&gt; </span>
  105. <span class="co">#&gt; $RD</span>
  106. <span class="co">#&gt; [1] TRUE</span>
  107. <span class="co">#&gt; </span>
  108. <span class="co">#&gt; $RA</span>
  109. <span class="co">#&gt; [1] TRUE</span>
  110. <span class="co">#&gt; </span>
  111. <span class="co">#&gt; $AD</span>
  112. <span class="co">#&gt; [1] FALSE</span>
  113. <span class="co">#&gt; </span>
  114. <span class="co">#&gt; $CD</span>
  115. <span class="co">#&gt; [1] FALSE</span>
  116. <span class="co">#&gt; </span>
  117. <span class="co">#&gt; $Question</span>
  118. <span class="co">#&gt; name type</span>
  119. <span class="co">#&gt; 1 rud.is. 1</span>
  120. <span class="co">#&gt; </span>
  121. <span class="co">#&gt; $Answer</span>
  122. <span class="co">#&gt; name type TTL data</span>
  123. <span class="co">#&gt; 1 rud.is. 1 3599 104.236.112.222</span>
  124. <span class="co">#&gt; </span>
  125. <span class="co">#&gt; $Additional</span>
  126. <span class="co">#&gt; list()</span>
  127. <span class="co">#&gt; </span>
  128. <span class="co">#&gt; $edns_client_subnet</span>
  129. <span class="co">#&gt; [1] "0.0.0.0/0"</span>
  130. <span class="co">#&gt; </span>
  131. <span class="co">#&gt; $Comment</span>
  132. <span class="co">#&gt; [1] "Response from dns.mwebdns.net.(84.246.124.75)"</span>
  133. <span class="kw"><a href="reference/query.html">query</a></span>(<span class="st">"example.com"</span>, <span class="st">"255"</span>) <span class="co"># "ANY" query</span>
  134. <span class="co">#&gt; $Status</span>
  135. <span class="co">#&gt; [1] 0</span>
  136. <span class="co">#&gt; </span>
  137. <span class="co">#&gt; $TC</span>
  138. <span class="co">#&gt; [1] FALSE</span>
  139. <span class="co">#&gt; </span>
  140. <span class="co">#&gt; $RD</span>
  141. <span class="co">#&gt; [1] TRUE</span>
  142. <span class="co">#&gt; </span>
  143. <span class="co">#&gt; $RA</span>
  144. <span class="co">#&gt; [1] TRUE</span>
  145. <span class="co">#&gt; </span>
  146. <span class="co">#&gt; $AD</span>
  147. <span class="co">#&gt; [1] TRUE</span>
  148. <span class="co">#&gt; </span>
  149. <span class="co">#&gt; $CD</span>
  150. <span class="co">#&gt; [1] FALSE</span>
  151. <span class="co">#&gt; </span>
  152. <span class="co">#&gt; $Question</span>
  153. <span class="co">#&gt; name type</span>
  154. <span class="co">#&gt; 1 example.com. 255</span>
  155. <span class="co">#&gt; </span>
  156. <span class="co">#&gt; $Answer</span>
  157. <span class="co">#&gt; name type TTL</span>
  158. <span class="co">#&gt; 1 example.com. 6 3599</span>
  159. <span class="co">#&gt; 2 example.com. 46 21599</span>
  160. <span class="co">#&gt; 3 example.com. 46 21599</span>
  161. <span class="co">#&gt; 4 example.com. 46 3599</span>
  162. <span class="co">#&gt; 5 example.com. 46 59</span>
  163. <span class="co">#&gt; 6 example.com. 46 21599</span>
  164. <span class="co">#&gt; 7 example.com. 46 3599</span>
  165. <span class="co">#&gt; 8 example.com. 46 3599</span>
  166. <span class="co">#&gt; 9 example.com. 46 3599</span>
  167. <span class="co">#&gt; 10 example.com. 47 3599</span>
  168. <span class="co">#&gt; 11 example.com. 2 21599</span>
  169. <span class="co">#&gt; 12 example.com. 2 21599</span>
  170. <span class="co">#&gt; 13 example.com. 28 21599</span>
  171. <span class="co">#&gt; 14 example.com. 1 21599</span>
  172. <span class="co">#&gt; 15 example.com. 16 59</span>
  173. <span class="co">#&gt; 16 example.com. 16 59</span>
  174. <span class="co">#&gt; 17 example.com. 48 3599</span>
  175. <span class="co">#&gt; 18 example.com. 48 3599</span>
  176. <span class="co">#&gt; 19 example.com. 48 3599</span>
  177. <span class="co">#&gt; data</span>
  178. <span class="co">#&gt; 1 sns.dns.icann.org. noc.dns.icann.org. 2015082662 7200 3600 1209600 3600</span>
  179. <span class="co">#&gt; 2 a 8 2 86400 1476095331 1474297785 1704 example.com. OnhJa3/aHkvePBvBME3nlZrkU/rdenyaquFgSYI/wKPq2/ZJVZGhv0TVBMJ5l6GZujqnyBfq9cvvb88//koi17oNjR5JEv2cv4rLT5pud3VhQdVrHD7fU8BV/YnCpP3ikXJMgjf6sAhgL7FZKLtpv7cFXnqznfRCTZ3HKkpBtAB0ZZw=</span>
  180. <span class="co">#&gt; 3 ns 8 2 86400 1476218628 1474362585 1704 example.com. dxPw4KtqLRMR/P1MB7umTClO/Tgf5X2ukJApKd133OMPhsy7c2N3QIxW4TLxZnCezUewDE1D86HBnGi1kGw4pN4W83lI37L6pTjIkDUtrc1acISOwg9Q9JM74On9/qKTGpTi7aSGVA5t4biLKqPm00a1Yu/VNPOxeLQPyYNjUYspNZ8=</span>
  181. <span class="co">#&gt; 4 soa 8 2 3600 1476508736 1474722585 1704 example.com. rHojLwiWn5xVU8noy1se7gRjiNI6GJdDcxwO1GU1qUs3Un4y7LyENjrK8qOv2z6EhblBOhPnrgnNMzEPPH3w+5azpU6xAH+jJHO4tExj4Pc3zzQ1sfFx1k8xWPfJjiWnUtUsk19y8vVqHvLXltvVItXlCClzljA0XyNUi1fvYjHbQxI=</span>
  182. <span class="co">#&gt; 5 txt 8 2 60 1476051975 1474218584 1704 example.com. FBZiE56Ux4VY5AMVtgitLIBWi+UteNSFh4BWwJksVRRt/7OoH7iD6h4UDqP8rNbk9qvXmRo4Ce2vROCbNkdTy/IDEoKo+Urfm69TuI2UTbl/nnQ2UtfMIEC83yywYRWdra5BPkt67SQhHSc4N7QHblABFbm2jPuu2+uOqaRCpfeoWYo=</span>
  183. <span class="co">#&gt; 6 aaaa 8 2 86400 1475967038 1474146584 1704 example.com. ZQgPaEBxSxHCPhOES76xksqOVYSRtNIieIwTwIo4Oceq0NGzjOyI+8wrgs79QHqs4e5SRe67hVX2rSaJ9Q167+TuQz57ZtyqeOZ+x+cgULyT1Q+8N0ZJlHpZS4i2VfR1xT+quG+0m9wtye8wA3Hl2mWPyTjtsH7mjoS7/U/ZQMJwi44=</span>
  184. <span class="co">#&gt; 7 nsec 8 2 3600 1475694918 1473887384 1704 example.com. XTCfotH8+cSDgNrFnCNWt4lx64yTnVzwOMZsFgynNSGS5LzY0VfRl7UvTH2WDVzdsIHgKpPBOUwv/DvjNhAMzUgHFlaK/A+U1aFa16/YQkqkIqqfnCA4EgBdhIK4FM3dSIVcpaj3PhGFKvMG4RBvoMAWLRXE3gKf3306CJzX1sfKdsA=</span>
  185. <span class="co">#&gt; 8 dnskey 8 2 3600 1476561735 1474722585 31406 example.com. Oup7snCR/5iUmTuGyHfCfFCisTeqaJ8RHD6aE9wZQR2CCkKZHXO9dzfUL1gA6T35p4T0XeM+TMlv1uZhX157RnanPwyZluancmm5cNz5ub0vG7G/O4DxnSoLmATYoBJ7Ub9Ul4iWFUE7nvyJ23X2MhX6XTiplXYPnztiem6rJLV84JiemoKtvapWchRhFi4w4Y+BdjHfY7IRERjQYNhVuaus5+EeppIoot9srsj2suXePGC7dE0R8z9K/BTYvQi76kBlJzzF9fNNy5JvyZPEUpXATuRD7KfxBsWHaFajOnYOb1eDAL/C0H3hhjVBov2Pexp7YDIsJzIa2g8850LruQ==</span>
  186. <span class="co">#&gt; 9 dnskey 8 2 3600 1476561735 1474722585 45620 example.com. f+aO6V+QKA4XgTC0Vqow59jBP/NlX6f7EEbaoXts0lp7Vaj/DBrhnS/sT4BbJb3VK1MvuPmNre5t0eyOeNCjbjrwIM2uf41GFuBI0AFxQx7o2PIdf1vrXsDnUGsZrMkYMv4gr802S7MXsvMdMN5cM0AA5Zol888sLP1yrHIcfNxG8hoUn3dS0L6nd/OxkL70+NjHBTjBQLqkLsK92ryJ0CWrzcJElszBRqfQfYGV/sJ84Ko4tjnBqRuki/rmTW5KQYdE7NI+MvERtGnep7RHb02Luk7BFPPD3uh353EYSAOVHrMH4fte6mJGcj3vxErfSWakRUXQpovLNcqYZNxoGQ==</span>
  187. <span class="co">#&gt; 10 www.example.com. A NS SOA TXT AAAA RRSIG NSEC DNSKEY</span>
  188. <span class="co">#&gt; 11 a.iana-servers.net.</span>
  189. <span class="co">#&gt; 12 b.iana-servers.net.</span>
  190. <span class="co">#&gt; 13 2606:2800:220:1:248:1893:25c8:1946</span>
  191. <span class="co">#&gt; 14 93.184.216.34</span>
  192. <span class="co">#&gt; 15 "v=spf1 -all"</span>
  193. <span class="co">#&gt; 16 "$Id: example.com 4415 2015-08-24 20:12:23Z davids $"</span>
  194. <span class="co">#&gt; 17 256 3 8 AwEAAa3d68DfyIs03nGYpi3a9YX+f/wln3g6dhWWzjUUqp6CGXuaOdEHfS8zI/5JdGKi8Xoc4YmjPGfiCJIkCiQnMKn/QFygpZs41ANLdPp2jJlJhFA6IHE/xxTCxJfNhsdEAOGlMORN9Zu1XLUBo/IuCDUvUzZPgalivd/m9L+Jr4kxbg3v</span>
  195. <span class="co">#&gt; 18 257 3 8 AwEAAZ0aqu1rJ6orJynrRfNpPmayJZoAx9Ic2/Rl9VQWLMHyjxxem3VUSoNUIFXERQbj0A9Ogp0zDM9YIccKLRd6LmWiDCt7UJQxVdD+heb5Ec4qlqGmyX9MDabkvX2NvMwsUecbYBq8oXeTT9LRmCUt9KUt/WOi6DKECxoG/bWTykrXyBR8elD+SQY43OAVjlWrVltHxgp4/rhBCvRbmdflunaPIgu27eE2U4myDSLT8a4A0rB5uHG4PkOa9dIRs9y00M2mWf4lyPee7vi5few2dbayHXmieGcaAHrx76NGAABeY393xjlmDNcUkF1gpNWUla4fWZbbaYQzA93mLdrng+M=</span>
  196. <span class="co">#&gt; 19 257 3 8 AwEAAbOFAxl+Lkt0UMglZizKEC1AxUu8zlj65KYatR5wBWMrh18TYzK/ig6Y1t5YTWCO68bynorpNu9fqNFALX7bVl9/gybA0v0EhF+dgXmoUfRX7ksMGgBvtfa2/Y9a3klXNLqkTszIQ4PEMVCjtryl19Be9/PkFeC9ITjgMRQsQhmB39eyMYnal+f3bUxKk4fq7cuEU0dbRpue4H/N6jPucXWOwiMAkTJhghqgy+o9FfIp+tR/emKao94/wpVXDcPf5B18j7xz2SvTTxiuqCzCMtsxnikZHcoh1j4g+Y1B8zIMIvrEM+pZGhh/Yuf4RwCBgaYCi9hpiMWVvS4WBzx0/lU=</span>
  197. <span class="co">#&gt; </span>
  198. <span class="co">#&gt; $Additional</span>
  199. <span class="co">#&gt; list()</span>
  200. <span class="co">#&gt; </span>
  201. <span class="co">#&gt; $edns_client_subnet</span>
  202. <span class="co">#&gt; [1] "0.0.0.0/0"</span>
  203. <span class="co">#&gt; </span>
  204. <span class="co">#&gt; $Comment</span>
  205. <span class="co">#&gt; [1] "Response from 199.43.135.53"</span>
  206. <span class="kw"><a href="reference/query.html">query</a></span>(<span class="st">"microsoft.com"</span>, <span class="st">"MX"</span>)
  207. <span class="co">#&gt; $Status</span>
  208. <span class="co">#&gt; [1] 0</span>
  209. <span class="co">#&gt; </span>
  210. <span class="co">#&gt; $TC</span>
  211. <span class="co">#&gt; [1] FALSE</span>
  212. <span class="co">#&gt; </span>
  213. <span class="co">#&gt; $RD</span>
  214. <span class="co">#&gt; [1] TRUE</span>
  215. <span class="co">#&gt; </span>
  216. <span class="co">#&gt; $RA</span>
  217. <span class="co">#&gt; [1] TRUE</span>
  218. <span class="co">#&gt; </span>
  219. <span class="co">#&gt; $AD</span>
  220. <span class="co">#&gt; [1] FALSE</span>
  221. <span class="co">#&gt; </span>
  222. <span class="co">#&gt; $CD</span>
  223. <span class="co">#&gt; [1] FALSE</span>
  224. <span class="co">#&gt; </span>
  225. <span class="co">#&gt; $Question</span>
  226. <span class="co">#&gt; name type</span>
  227. <span class="co">#&gt; 1 microsoft.com. 15</span>
  228. <span class="co">#&gt; </span>
  229. <span class="co">#&gt; $Answer</span>
  230. <span class="co">#&gt; name type TTL data</span>
  231. <span class="co">#&gt; 1 microsoft.com. 15 1509 10 microsoft-com.mail.protection.outlook.com.</span>
  232. <span class="co">#&gt; </span>
  233. <span class="co">#&gt; $Additional</span>
  234. <span class="co">#&gt; list()</span>
  235. <span class="co">#&gt; </span>
  236. <span class="co">#&gt; $edns_client_subnet</span>
  237. <span class="co">#&gt; [1] "0.0.0.0/0"</span>
  238. <span class="kw"><a href="reference/query.html">query</a></span>(<span class="st">"google-public-dns-a.google.com"</span>, <span class="st">"TXT"</span>)
  239. <span class="co">#&gt; $Status</span>
  240. <span class="co">#&gt; [1] 0</span>
  241. <span class="co">#&gt; </span>
  242. <span class="co">#&gt; $TC</span>
  243. <span class="co">#&gt; [1] FALSE</span>
  244. <span class="co">#&gt; </span>
  245. <span class="co">#&gt; $RD</span>
  246. <span class="co">#&gt; [1] TRUE</span>
  247. <span class="co">#&gt; </span>
  248. <span class="co">#&gt; $RA</span>
  249. <span class="co">#&gt; [1] TRUE</span>
  250. <span class="co">#&gt; </span>
  251. <span class="co">#&gt; $AD</span>
  252. <span class="co">#&gt; [1] FALSE</span>
  253. <span class="co">#&gt; </span>
  254. <span class="co">#&gt; $CD</span>
  255. <span class="co">#&gt; [1] FALSE</span>
  256. <span class="co">#&gt; </span>
  257. <span class="co">#&gt; $Question</span>
  258. <span class="co">#&gt; name type</span>
  259. <span class="co">#&gt; 1 google-public-dns-a.google.com. 16</span>
  260. <span class="co">#&gt; </span>
  261. <span class="co">#&gt; $Answer</span>
  262. <span class="co">#&gt; name type TTL data</span>
  263. <span class="co">#&gt; 1 google-public-dns-a.google.com. 16 21599 "http://xkcd.com/1361/"</span>
  264. <span class="co">#&gt; </span>
  265. <span class="co">#&gt; $Additional</span>
  266. <span class="co">#&gt; list()</span>
  267. <span class="co">#&gt; </span>
  268. <span class="co">#&gt; $edns_client_subnet</span>
  269. <span class="co">#&gt; [1] "0.0.0.0/0"</span>
  270. <span class="co">#&gt; </span>
  271. <span class="co">#&gt; $Comment</span>
  272. <span class="co">#&gt; [1] "Response from 216.239.36.10"</span>
  273. <span class="kw"><a href="reference/query.html">query</a></span>(<span class="st">"apple.com"</span>)
  274. <span class="co">#&gt; $Status</span>
  275. <span class="co">#&gt; [1] 0</span>
  276. <span class="co">#&gt; </span>
  277. <span class="co">#&gt; $TC</span>
  278. <span class="co">#&gt; [1] FALSE</span>
  279. <span class="co">#&gt; </span>
  280. <span class="co">#&gt; $RD</span>
  281. <span class="co">#&gt; [1] TRUE</span>
  282. <span class="co">#&gt; </span>
  283. <span class="co">#&gt; $RA</span>
  284. <span class="co">#&gt; [1] TRUE</span>
  285. <span class="co">#&gt; </span>
  286. <span class="co">#&gt; $AD</span>
  287. <span class="co">#&gt; [1] FALSE</span>
  288. <span class="co">#&gt; </span>
  289. <span class="co">#&gt; $CD</span>
  290. <span class="co">#&gt; [1] FALSE</span>
  291. <span class="co">#&gt; </span>
  292. <span class="co">#&gt; $Question</span>
  293. <span class="co">#&gt; name type</span>
  294. <span class="co">#&gt; 1 apple.com. 1</span>
  295. <span class="co">#&gt; </span>
  296. <span class="co">#&gt; $Answer</span>
  297. <span class="co">#&gt; name type TTL data</span>
  298. <span class="co">#&gt; 1 apple.com. 1 3413 17.172.224.47</span>
  299. <span class="co">#&gt; 2 apple.com. 1 3413 17.178.96.59</span>
  300. <span class="co">#&gt; 3 apple.com. 1 3413 17.142.160.59</span>
  301. <span class="co">#&gt; </span>
  302. <span class="co">#&gt; $Additional</span>
  303. <span class="co">#&gt; list()</span>
  304. <span class="co">#&gt; </span>
  305. <span class="co">#&gt; $edns_client_subnet</span>
  306. <span class="co">#&gt; [1] "0.0.0.0/0"</span>
  307. <span class="kw"><a href="reference/query.html">query</a></span>(<span class="st">"17.142.160.59"</span>, <span class="st">"PTR"</span>)
  308. <span class="co">#&gt; $Status</span>
  309. <span class="co">#&gt; [1] 0</span>
  310. <span class="co">#&gt; </span>
  311. <span class="co">#&gt; $TC</span>
  312. <span class="co">#&gt; [1] FALSE</span>
  313. <span class="co">#&gt; </span>
  314. <span class="co">#&gt; $RD</span>
  315. <span class="co">#&gt; [1] TRUE</span>
  316. <span class="co">#&gt; </span>
  317. <span class="co">#&gt; $RA</span>
  318. <span class="co">#&gt; [1] TRUE</span>
  319. <span class="co">#&gt; </span>
  320. <span class="co">#&gt; $AD</span>
  321. <span class="co">#&gt; [1] FALSE</span>
  322. <span class="co">#&gt; </span>
  323. <span class="co">#&gt; $CD</span>
  324. <span class="co">#&gt; [1] FALSE</span>
  325. <span class="co">#&gt; </span>
  326. <span class="co">#&gt; $Question</span>
  327. <span class="co">#&gt; name type</span>
  328. <span class="co">#&gt; 1 59.160.142.17.in-addr.arpa. 12</span>
  329. <span class="co">#&gt; </span>
  330. <span class="co">#&gt; $Answer</span>
  331. <span class="co">#&gt; name type TTL data</span>
  332. <span class="co">#&gt; 1 59.160.142.17.in-addr.arpa. 12 3025 apples-msk.ru.</span>
  333. <span class="co">#&gt; 2 59.160.142.17.in-addr.arpa. 12 3025 icloud.se.</span>
  334. <span class="co">#&gt; 3 59.160.142.17.in-addr.arpa. 12 3025 icloud.es.</span>
  335. <span class="co">#&gt; 4 59.160.142.17.in-addr.arpa. 12 3025 icloud.om.</span>
  336. <span class="co">#&gt; 5 59.160.142.17.in-addr.arpa. 12 3025 icloudo.com.</span>
  337. <span class="co">#&gt; 6 59.160.142.17.in-addr.arpa. 12 3025 icloud.ch.</span>
  338. <span class="co">#&gt; 7 59.160.142.17.in-addr.arpa. 12 3025 icloud.fr.</span>
  339. <span class="co">#&gt; 8 59.160.142.17.in-addr.arpa. 12 3025 icloude.com.</span>
  340. <span class="co">#&gt; 9 59.160.142.17.in-addr.arpa. 12 3025 camelspaceeffect.com.</span>
  341. <span class="co">#&gt; 10 59.160.142.17.in-addr.arpa. 12 3025 camelphat.com.</span>
  342. <span class="co">#&gt; 11 59.160.142.17.in-addr.arpa. 12 3025 alchemysynth.com.</span>
  343. <span class="co">#&gt; 12 59.160.142.17.in-addr.arpa. 12 3025 openni.org.</span>
  344. <span class="co">#&gt; 13 59.160.142.17.in-addr.arpa. 12 3025 swell.am.</span>
  345. <span class="co">#&gt; 14 59.160.142.17.in-addr.arpa. 12 3025 appleweb.net.</span>
  346. <span class="co">#&gt; 15 59.160.142.17.in-addr.arpa. 12 3025 apple.com.</span>
  347. <span class="co">#&gt; 16 59.160.142.17.in-addr.arpa. 12 3025 pv-apple-com.apple.com.</span>
  348. <span class="co">#&gt; 17 59.160.142.17.in-addr.arpa. 12 3025 ripmixburn.com.</span>
  349. <span class="co">#&gt; 18 59.160.142.17.in-addr.arpa. 12 3025 yessql.info.</span>
  350. <span class="co">#&gt; 19 59.160.142.17.in-addr.arpa. 12 3025 webobjects.info.</span>
  351. <span class="co">#&gt; 20 59.160.142.17.in-addr.arpa. 12 3025 ubnw.info.</span>
  352. <span class="co">#&gt; 21 59.160.142.17.in-addr.arpa. 12 3025 skyvines.info.</span>
  353. <span class="co">#&gt; 22 59.160.142.17.in-addr.arpa. 12 3025 shopdifferent.info.</span>
  354. <span class="co">#&gt; 23 59.160.142.17.in-addr.arpa. 12 3025 sherlock.info.</span>
  355. <span class="co">#&gt; 24 59.160.142.17.in-addr.arpa. 12 3025 quicktimetv.info.</span>
  356. <span class="co">#&gt; 25 59.160.142.17.in-addr.arpa. 12 3025 quicktimelive.info.</span>
  357. <span class="co">#&gt; 26 59.160.142.17.in-addr.arpa. 12 3025 powermac.info.</span>
  358. <span class="co">#&gt; 27 59.160.142.17.in-addr.arpa. 12 3025 powerbook.info.</span>
  359. <span class="co">#&gt; 28 59.160.142.17.in-addr.arpa. 12 3025 macosx.info.</span>
  360. <span class="co">#&gt; 29 59.160.142.17.in-addr.arpa. 12 3025 appleshare.info.</span>
  361. <span class="co">#&gt; 30 59.160.142.17.in-addr.arpa. 12 3025 applescript.info.</span>
  362. <span class="co">#&gt; 31 59.160.142.17.in-addr.arpa. 12 3025 applepaysupplies.info.</span>
  363. <span class="co">#&gt; 32 59.160.142.17.in-addr.arpa. 12 3025 applepaymerchantsupplies.info.</span>
  364. <span class="co">#&gt; 33 59.160.142.17.in-addr.arpa. 12 3025 applepay.info.</span>
  365. <span class="co">#&gt; 34 59.160.142.17.in-addr.arpa. 12 3025 applemasters.info.</span>
  366. <span class="co">#&gt; 35 59.160.142.17.in-addr.arpa. 12 3025 appleexpo.info.</span>
  367. <span class="co">#&gt; 36 59.160.142.17.in-addr.arpa. 12 3025 applecomputerinc.info.</span>
  368. <span class="co">#&gt; 37 59.160.142.17.in-addr.arpa. 12 3025 applecentre.info.</span>
  369. <span class="co">#&gt; 38 59.160.142.17.in-addr.arpa. 12 3025 airtunes.info.</span>
  370. <span class="co">#&gt; 39 59.160.142.17.in-addr.arpa. 12 3025 apple.by.</span>
  371. <span class="co">#&gt; </span>
  372. <span class="co">#&gt; $Additional</span>
  373. <span class="co">#&gt; list()</span>
  374. <span class="co">#&gt; </span>
  375. <span class="co">#&gt; $edns_client_subnet</span>
  376. <span class="co">#&gt; [1] "0.0.0.0/0"</span>
  377. hosts &lt;-<span class="st"> </span><span class="kw">c</span>(<span class="st">"rud.is"</span>, <span class="st">"dds.ec"</span>, <span class="st">"r-project.org"</span>, <span class="st">"rstudio.com"</span>, <span class="st">"apple.com"</span>)
  378. gdns::<span class="kw"><a href="reference/bulk_query.html">bulk_query</a></span>(hosts)
  379. <span class="co">#&gt; name type TTL data</span>
  380. <span class="co">#&gt; 1 rud.is. 1 3598 104.236.112.222</span>
  381. <span class="co">#&gt; 2 dds.ec. 1 299 162.243.111.4</span>
  382. <span class="co">#&gt; 3 r-project.org. 1 3072 137.208.57.37</span>
  383. <span class="co">#&gt; 4 rstudio.com. 1 3599 45.79.156.36</span>
  384. <span class="co">#&gt; 5 apple.com. 1 3415 17.172.224.47</span>
  385. <span class="co">#&gt; 6 apple.com. 1 3415 17.178.96.59</span>
  386. <span class="co">#&gt; 7 apple.com. 1 3415 17.142.160.59</span></code></pre></div>
  387. <h3 id="test-results">Test Results</h3>
  388. <div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(gdns)
  389. <span class="kw">library</span>(testthat)
  390. <span class="kw">date</span>()
  391. <span class="co">#&gt; [1] "Thu Sep 29 09:44:11 2016"</span>
  392. <span class="kw">test_dir</span>(<span class="st">"tests/"</span>)
  393. <span class="co">#&gt; testthat results ========================================================================================================</span>
  394. <span class="co">#&gt; OK: 2 SKIPPED: 0 FAILED: 0</span>
  395. <span class="co">#&gt; </span>
  396. <span class="co">#&gt; DONE ===================================================================================================================</span></code></pre></div>
  397. <h3 id="code-of-conduct">Code of Conduct</h3>
  398. <p>Please note that this project is released with a <a href="CONDUCT.md">Contributor Code of Conduct</a>. By participating in this project you agree to abide by its terms.</p>
  399. </div>
  400. </div>
  401. <footer>
  402. <p>Built by <a href="http://hadley.github.io/pkgdown/">pkgdown</a>. Styled with <a href="http://getbootstrap.com">Bootstrap 3</a>.</p>
  403. </footer>
  404. </div>
  405. </body>
  406. </html>