No Description
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.

globals.R 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 `GET`/`POST` requests and
  44. #' the `extra_params` element has any needed query parameters
  45. #' for `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. #' - `cleanbrowsing_security`: <https://doh.cleanbrowsing.org/doh/security-filter/>
  55. #' - `cleanbrowsing_family`: <https://doh.cleanbrowsing.org/doh/family-filter/>
  56. #' - `cleanbrowsing_adult`: <https://doh.cleanbrowsing.org/doh/adult-filter/>
  57. #' - `power_dns`: <https://doh.powerdns.org>
  58. #' - `appliedprivacy`: <https://doh.appliedprivacy.net/query>
  59. #'
  60. #' @docType data
  61. #' @export
  62. list(
  63. google = list(
  64. url = "https://dns.google.com/experimental",
  65. extra_params = list()
  66. ),
  67. cloudflare = list(
  68. url = "https://cloudflare-dns.com/dns-query",
  69. extra_params = list(
  70. cd = "false",
  71. do = "true",
  72. ct = "application/dns-json"
  73. )
  74. ),
  75. quad9 = list(
  76. url = "https://dns.quad9.net/dns-query",
  77. extra_params = list()
  78. ),
  79. securedns_eu = list(
  80. url = "https://doh.securedns.eu/dns-query",
  81. extra_params = list(
  82. edns_client_subnet = NULL
  83. )
  84. ),
  85. dnswarden_adblock = list(
  86. url = "https://doh.dnswarden.com/adblock",
  87. extra_params = list()
  88. ),
  89. dnswarden_uncensored = list(
  90. url = "https://doh.dnswarden.com/uncensored",
  91. extra_params = list()
  92. ),
  93. cleanbrowsing_security = list(
  94. url = "https://doh.cleanbrowsing.org/doh/security-filter/",
  95. extra_params = list(cd = "false")
  96. ),
  97. cleanbrowsing_family = list(
  98. url = "https://doh.cleanbrowsing.org/doh/family-filter/",
  99. extra_params = list()
  100. ),
  101. cleanbrowsing_adult = list(
  102. url = "https://doh.cleanbrowsing.org/doh/adult-filter/",
  103. extra_params = list()
  104. ),
  105. power_dns = list(
  106. url = "https://doh.powerdns.org",
  107. extra_params = list()
  108. ),
  109. appliedprivacy = list(
  110. url = "https://doh.appliedprivacy.net/query",
  111. extra_params = list()
  112. )
  113. ) -> doh_servers