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.

bulk_query.html 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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>bulk_query. 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="page-header">
  58. <h1>Vectorized query, returning only answers in a data frame</h1>
  59. </div>
  60. <div class="row">
  61. <div class="col-md-9">
  62. <p>Vectorized query, returning only answers in a data frame</p>
  63. <pre><span class='fu'>bulk_query</span>(<span class='no'>entities</span>, <span class='kw'>type</span> <span class='kw'>=</span> <span class='fl'>1</span>, <span class='kw'>edns_client_subnet</span> <span class='kw'>=</span> <span class='st'>"0.0.0.0/0"</span>)</pre>
  64. <h2>Arguments</h2>
  65. <dl class="dl-horizontal">
  66. <dt>entities</dt>
  67. <dd>character vector of entities to query</dd>
  68. <dt>type</dt>
  69. <dd>RR type can be represented as a number in [1, 65535] or canonical
  70. string (A, aaaa, etc). More information on RR types can be
  71. found <a href = 'here'>http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4</a>.</dd>
  72. <dt>edns_client_subnet</dt>
  73. <dd>The edns0-client-subnet option. Format is an IP
  74. address with a subnet mask. Examples: <code>1.2.3.4/24</code>,
  75. <code>2001:700:300::/48</code>.
  76. If you are using DNS-over-HTTPS because of privacy concerns, and do
  77. not want any part of your IP address to be sent to authoritative
  78. nameservers for geographic location accuracy, use
  79. <code>edns_client_subnet=0.0.0.0/0</code>. Google Public DNS normally sends
  80. approximate network information (usually replacing the last part of
  81. your IPv4 address with zeroes). <code>0.0.0.0/0</code> is the default.</dd>
  82. </dl>
  83. <div class="Value">
  84. <h2>Value</h2>
  85. <p><code>data.frame</code> of only answers (use <code>query()</code> for detailed responses)</p>
  86. </div>
  87. <div class="Note">
  88. <h2>Note</h2>
  89. <p>this is a fairly naive function. It expects <code>Answer</code> to be one of the
  90. return value list slots. The intent for it was to make it easier
  91. to do bulk forward queries. It will get smarter in future versions.</p>
  92. </div>
  93. <div class="References">
  94. <h2>References</h2>
  95. <p><a href = 'https://developers.google.com/speed/public-dns/docs/dns-over-https'>https://developers.google.com/speed/public-dns/docs/dns-over-https</a></p>
  96. </div>
  97. <h2 id="examples">Examples</h2>
  98. <pre class="examples"><div class='input'><span class='no'>hosts</span> <span class='kw'>&lt;-</span> <span class='fu'>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>)
  99. <span class='kw'>gdns</span><span class='kw'>::</span><span class='fu'>bulk_query</span>(<span class='no'>hosts</span>)</div><div class='output co'>#&gt; name type TTL data
  100. #&gt; 1 rud.is. 1 3599 104.236.112.222
  101. #&gt; 2 dds.ec. 1 299 162.243.111.4
  102. #&gt; 3 r-project.org. 1 7199 137.208.57.37
  103. #&gt; 4 rstudio.com. 1 3599 45.79.156.36
  104. #&gt; 5 apple.com. 1 1006 17.172.224.47
  105. #&gt; 6 apple.com. 1 1006 17.178.96.59
  106. #&gt; 7 apple.com. 1 1006 17.142.160.59
  107. #&gt; </div></pre>
  108. </div>
  109. <div class="col-md-3">
  110. </div>
  111. </div>
  112. <footer>
  113. <p>Built by <a href="http://hadley.github.io/pkgdown/">pkgdown</a>. Styled with <a href="http://getbootstrap.com">Bootstrap 3</a>.</p>
  114. </footer>
  115. </div>
  116. </body>
  117. </html>