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.

94 lines
2.4KB

  1. c(
  2. 'A' = 1L, 'NS' = 2L, 'CNAME' = 5L, 'SOA' = 6L, 'PTR' = 12L, 'HINFO' = 13L,
  3. 'MX' = 15L, 'TXT' = 16L, 'RP' = 17L, 'AFSDB' = 18L, 'SIG' = 24L,
  4. 'KEY' = 25L, 'AAAA' = 28L, 'LOC' = 29, 'SRV' = 33L, 'NAPTR' = 35L,
  5. 'KX' = 36L, 'CERT' = 37L, 'A6' = 38L, 'DNAME' = 39L, 'OPT' = 41,
  6. 'APL' = 42L, 'DS' = 43L, 'SSHFP' = 44L, 'IPSECKEY' = 45L, 'RRSIG' = 46L,
  7. 'NSEC' = 47L, 'DNSKEY' = 48L, 'DHCID' = 49L, 'NSEC3' = 50L,
  8. 'NSEC3PARAM' = 51L, 'TLSA' = 52L, 'HIP' = 55L, 'CDS' = 59L,
  9. 'CDNSKEY' = 60L, 'OPENPGPKEY' = 61L, 'SPF' = 99L, 'TKEY' = 249L,
  10. 'TSIG' = 250L, 'IXFR' = 251L, 'AXFR' = 252L, 'ANY' = 255L,
  11. 'URI' = 256L, 'CAA' = 257L, 'TA' = 32768L, 'DLV' = 32769L
  12. ) -> .qtype
  13. c(
  14. 'IN' = 1L,
  15. 'CS' = 2L,
  16. 'CH' = 3L,
  17. 'Hesiod' = 4L,
  18. 'None' = 254L,
  19. '*' = 255L
  20. ) -> .class
  21. .qr <- c('QUERY' = 0, 'RESPONSE' = 1)
  22. c(
  23. 'NOERROR' = 0L,
  24. 'FORMERR' = 1L,
  25. 'SERVFAIL' = 2L,
  26. 'NXDOMAIN' = 3L,
  27. 'NOTIMP' = 4L,
  28. 'REFUSED' = 5L,
  29. 'YXDOMAIN' = 6L,
  30. 'YXRRSET' = 7L,
  31. 'NXRRSET' = 8L,
  32. 'NOTAUTH' = 9L,
  33. 'NOTZONE' = 10L
  34. ) -> .rcode
  35. c(
  36. 'QUERY' = 0L,
  37. 'IQUERY' = 1L,
  38. 'STATUS' = 2L,
  39. 'UPDATE' = 5L
  40. ) -> .opcode
  41. #' Built-in list of DoH Servers
  42. #'
  43. #' The `url` element has the URL for the `GET` requests and
  44. #' the `extra_params` element has any needed query parameters
  45. #' for the `GET` requests.
  46. #'
  47. #' The list so far.
  48. #' - `google`: <https://dns.google.com/experimental>
  49. #' - `cloudflare`: <https://cloudflare-dns.com/dns-query>
  50. #' - `quad9`: <https://dns.quad9.net/dns-query>
  51. #' - `securedns_eu`: <https://doh.securedns.eu/dns-query>
  52. #' - `dnswarden_adblock`: <https://doh.dnswarden.com/adblock>
  53. #' - `dnswarden_uncensored`: <https://doh.dnswarden.com/uncensored>
  54. #'
  55. #' @docType data
  56. #' @export
  57. list(
  58. google = list(
  59. url = "https://dns.google.com/experimental",
  60. extra_params = list()
  61. ),
  62. cloudflare = list(
  63. url = "https://cloudflare-dns.com/dns-query",
  64. extra_params = list(
  65. cd = "false",
  66. do = "true",
  67. ct = "application/dns-json"
  68. )
  69. ),
  70. quad9 = list(
  71. url = "https://dns.quad9.net/dns-query",
  72. extra_params = list()
  73. ),
  74. securedns_eu = list(
  75. url = "https://doh.securedns.eu/dns-query",
  76. extra_params = list(
  77. edns_client_subnet = NULL
  78. )
  79. ),
  80. dnswarden_adblock = list(
  81. url = "https://doh.dnswarden.com/adblock",
  82. extra_params = list()
  83. ),
  84. dnswarden_uncensored = list(
  85. url = "https://doh.dnswarden.com/uncensored",
  86. extra_params = list()
  87. )
  88. ) -> doh_servers