Advertisement
Guest User

Untitled

a guest
Aug 15th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.73 KB | None | 0 0
  1.  
  2. ##############################################
  3. # #
  4. # dnscrypt-proxy configuration #
  5. # #
  6. ##############################################
  7.  
  8. ## This is an example configuration file.
  9. ## You should adjust it to your needs, and save it as "dnscrypt-proxy.toml"
  10. ##
  11. ## Online documentation is available here: https://dnscrypt.info/doc
  12.  
  13.  
  14.  
  15. ##################################
  16. # Global settings #
  17. ##################################
  18.  
  19. ## List of servers to use
  20. ##
  21. ## Servers from the "public-resolvers" source (see down below) can
  22. ## be viewed here: https://dnscrypt.info/public-servers
  23. ##
  24. ## The proxy will automatically pick working servers from this list.
  25. ## Note that the require_* filters do NOT apply when using this setting.
  26. ##
  27. ## By default, this list is empty and all registered servers matching the
  28. ## require_* filters will be used instead.
  29. ##
  30. ## Remove the leading # first to enable this; lines starting with # are ignored.
  31.  
  32. # server_names = ['scaleway-fr', 'google', 'yandex', 'cloudflare']
  33.  
  34.  
  35. ## List of local addresses and ports to listen to. Can be IPv4 and/or IPv6.
  36. ## Example with both IPv4 and IPv6:
  37. ## listen_addresses = ['127.0.0.1:53', '[::1]:53']
  38.  
  39. listen_addresses = ['127.0.0.1:53']
  40.  
  41.  
  42. ## Maximum number of simultaneous client connections to accept
  43.  
  44. max_clients = 250
  45.  
  46.  
  47. ## Switch to a different system user after listening sockets have been created.
  48. ## Note (1): this feature is currently unsupported on Windows.
  49. ## Note (2): this feature is not compatible with systemd socket activation.
  50. ## Note (3): when using -pidfile, the PID file directory must be writable by the new user
  51.  
  52. # user_name = 'nobody'
  53.  
  54.  
  55. ## Require servers (from static + remote sources) to satisfy specific properties
  56.  
  57. # Use servers reachable over IPv4
  58. ipv4_servers = true
  59.  
  60. # Use servers reachable over IPv6 -- Do not enable if you don't have IPv6 connectivity
  61. ipv6_servers = true
  62.  
  63. # Use servers implementing the DNSCrypt protocol
  64. dnscrypt_servers = true
  65.  
  66. # Use servers implementing the DNS-over-HTTPS protocol
  67. doh_servers = true
  68.  
  69.  
  70. ## Require servers defined by remote sources to satisfy specific properties
  71.  
  72. # Server must support DNS security extensions (DNSSEC)
  73. require_dnssec = false
  74.  
  75. # Server must not log user queries (declarative)
  76. require_nolog = true
  77.  
  78. # Server must not enforce its own blacklist (for parental control, ads blocking...)
  79. require_nofilter = true
  80.  
  81. # Server names to avoid even if they match all criteria
  82. disabled_server_names = []
  83.  
  84.  
  85. ## Always use TCP to connect to upstream servers.
  86. ## This can be useful if you need to route everything through Tor.
  87. ## Otherwise, leave this to `false`, as it doesn't improve security
  88. ## (dnscrypt-proxy will always encrypt everything even using UDP), and can
  89. ## only increase latency.
  90.  
  91. force_tcp = false
  92.  
  93.  
  94. ## SOCKS proxy
  95. ## Uncomment the following line to route all TCP connections to a local Tor node
  96. ## Tor doesn't support UDP, so set `force_tcp` to `true` as well.
  97.  
  98. # proxy = 'socks5://127.0.0.1:9050'
  99.  
  100.  
  101. ## HTTP/HTTPS proxy
  102. ## Only for DoH servers
  103.  
  104. # http_proxy = 'http://127.0.0.1:8888'
  105.  
  106.  
  107. ## How long a DNS query will wait for a response, in milliseconds.
  108. ## If you have a network with *a lot* of latency, you may need to
  109. ## increase this. Startup may be slower if you do so.
  110. ## Don't increase it too much. 10000 is the highest reasonable value.
  111.  
  112. timeout = 5000
  113.  
  114.  
  115. ## Keepalive for HTTP (HTTPS, HTTP/2) queries, in seconds
  116.  
  117. keepalive = 30
  118.  
  119.  
  120. ## Response for blocked queries. Options are `refused`, `hinfo` (default) or
  121. ## an IP response. To give an IP response, use the format `a:<IPv4>,aaaa:<IPv6>`.
  122. ## Using the `hinfo` option means that some responses will be lies.
  123. ## Unfortunately, the `hinfo` option appears to be required for Android 8+
  124.  
  125. # blocked_query_response = 'refused'
  126.  
  127.  
  128. ## Load-balancing strategy: 'p2' (default), 'ph', 'first' or 'random'
  129.  
  130. lb_strategy = 'first'
  131.  
  132. ## Set to `true` to constantly try to estimate the latency of all the resolvers
  133. ## and adjust the load-balancing parameters accordingly, or to `false` to disable.
  134.  
  135. # lb_estimator = true
  136.  
  137.  
  138. ## Log level (0-6, default: 2 - 0 is very verbose, 6 only contains fatal errors)
  139.  
  140. # log_level = 2
  141.  
  142.  
  143. ## Log file for the application, as an alternative to sending logs to
  144. ## the standard system logging service (syslog/Windows event log).
  145. ##
  146. ## This file is different from other log files, and will not be
  147. ## automatically rotated by the application.
  148.  
  149. # log_file = 'dnscrypt-proxy.log'
  150.  
  151.  
  152. ## When using a log file, only keep logs from the most recent launch.
  153.  
  154. # log_file_latest = true
  155.  
  156.  
  157. ## Use the system logger (syslog on Unix, Event Log on Windows)
  158.  
  159. # use_syslog = true
  160.  
  161.  
  162. ## Delay, in minutes, after which certificates are reloaded
  163.  
  164. cert_refresh_delay = 240
  165.  
  166.  
  167. ## DNSCrypt: Create a new, unique key for every single DNS query
  168. ## This may improve privacy but can also have a significant impact on CPU usage
  169. ## Only enable if you don't have a lot of network load
  170.  
  171. # dnscrypt_ephemeral_keys = false
  172.  
  173.  
  174. ## DoH: Disable TLS session tickets - increases privacy but also latency
  175.  
  176. # tls_disable_session_tickets = false
  177.  
  178.  
  179. ## DoH: Use a specific cipher suite instead of the server preference
  180. ## 49199 = TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  181. ## 49195 = TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
  182. ## 52392 = TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305
  183. ## 52393 = TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
  184. ## 4865 = TLS_AES_128_GCM_SHA256
  185. ## 4867 = TLS_CHACHA20_POLY1305_SHA256
  186. ##
  187. ## On non-Intel CPUs such as MIPS routers and ARM systems (Android, Raspberry Pi...),
  188. ## the following suite improves performance.
  189. ## This may also help on Intel CPUs running 32-bit operating systems.
  190. ##
  191. ## Keep tls_cipher_suite empty if you have issues fetching sources or
  192. ## connecting to some DoH servers. Google and Cloudflare are fine with it.
  193.  
  194. # tls_cipher_suite = [52392, 49199]
  195.  
  196.  
  197. ## Fallback resolvers
  198. ## These are normal, non-encrypted DNS resolvers, that will be only used
  199. ## for one-shot queries when retrieving the initial resolvers list, and
  200. ## only if the system DNS configuration doesn't work.
  201. ## No user application queries will ever be leaked through these resolvers,
  202. ## and they will not be used after IP addresses of resolvers URLs have been found.
  203. ## They will never be used if lists have already been cached, and if stamps
  204. ## don't include host names without IP addresses.
  205. ## They will not be used if the configured system DNS works.
  206. ## Resolvers supporting DNSSEC are recommended.
  207. ##
  208. ## People in China may need to use 114.114.114.114:53 here.
  209. ## Other popular options include 8.8.8.8 and 1.1.1.1.
  210. ##
  211. ## If more than one resolver is specified, they will be tried in sequence.
  212.  
  213. fallback_resolvers = ['9.9.9.9:53', '8.8.8.8:53']
  214.  
  215.  
  216. ## Always use the fallback resolver before the system DNS settings.
  217.  
  218. ignore_system_dns = true
  219.  
  220.  
  221. ## Maximum time (in seconds) to wait for network connectivity before
  222. ## initializing the proxy.
  223. ## Useful if the proxy is automatically started at boot, and network
  224. ## connectivity is not guaranteed to be immediately available.
  225. ## Use 0 to not test for connectivity at all (not recommended),
  226. ## and -1 to wait as much as possible.
  227.  
  228. netprobe_timeout = 60
  229.  
  230. ## Address and port to try initializing a connection to, just to check
  231. ## if the network is up. It can be any address and any port, even if
  232. ## there is nothing answering these on the other side. Just don't use
  233. ## a local address, as the goal is to check for Internet connectivity.
  234. ## On Windows, a datagram with a single, nul byte will be sent, only
  235. ## when the system starts.
  236. ## On other operating systems, the connection will be initialized
  237. ## but nothing will be sent at all.
  238.  
  239. netprobe_address = '9.9.9.9:53'
  240.  
  241.  
  242. ## Offline mode - Do not use any remote encrypted servers.
  243. ## The proxy will remain fully functional to respond to queries that
  244. ## plugins can handle directly (forwarding, cloaking, ...)
  245.  
  246. # offline_mode = false
  247.  
  248.  
  249. ## Additional data to attach to outgoing queries.
  250. ## These strings will be added as TXT records to queries.
  251. ## Do not use, except on servers explicitly asking for extra data
  252. ## to be present.
  253. ## encrypted-dns-server can be configured to use this for access control
  254. ## in the [access_control] section
  255.  
  256. # query_meta = ["key1:value1", "key2:value2", "token:MySecretToken"]
  257.  
  258.  
  259. ## Automatic log files rotation
  260.  
  261. # Maximum log files size in MB - Set to 0 for unlimited.
  262. log_files_max_size = 10
  263.  
  264. # How long to keep backup files, in days
  265. log_files_max_age = 7
  266.  
  267. # Maximum log files backups to keep (or 0 to keep all backups)
  268. log_files_max_backups = 1
  269.  
  270.  
  271.  
  272. #########################
  273. # Filters #
  274. #########################
  275.  
  276. ## Note: if you are using dnsmasq, disable the `dnssec` option in dnsmasq if you
  277. ## configure dnscrypt-proxy to do any kind of filtering (including the filters
  278. ## below and blacklists).
  279. ## You can still choose resolvers that do DNSSEC validation.
  280.  
  281.  
  282. ## Immediately respond to IPv6-related queries with an empty response
  283. ## This makes things faster when there is no IPv6 connectivity, but can
  284. ## also cause reliability issues with some stub resolvers.
  285.  
  286. block_ipv6 = false
  287.  
  288.  
  289. ## Immediately respond to A and AAAA queries for host names without a domain name
  290.  
  291. block_unqualified = true
  292.  
  293.  
  294. ## Immediately respond to queries for local zones instead of leaking them to
  295. ## upstream resolvers (always causing errors or timeouts).
  296.  
  297. block_undelegated = true
  298.  
  299.  
  300. ## TTL for synthetic responses sent when a request has been blocked (due to
  301. ## IPv6 or blacklists).
  302.  
  303. reject_ttl = 600
  304.  
  305.  
  306.  
  307. ##################################################################################
  308. # Route queries for specific domains to a dedicated set of servers #
  309. ##################################################################################
  310.  
  311. ## See the `example-forwarding-rules.txt` file for an example
  312.  
  313. # forwarding_rules = 'forwarding-rules.txt'
  314.  
  315.  
  316.  
  317. ###############################
  318. # Cloaking rules #
  319. ###############################
  320.  
  321. ## Cloaking returns a predefined address for a specific name.
  322. ## In addition to acting as a HOSTS file, it can also return the IP address
  323. ## of a different name. It will also do CNAME flattening.
  324. ##
  325. ## See the `example-cloaking-rules.txt` file for an example
  326.  
  327. # cloaking_rules = 'cloaking-rules.txt'
  328.  
  329. ## TTL used when serving entries in cloaking-rules.txt
  330.  
  331. # cloak_ttl = 600
  332.  
  333.  
  334. ###########################
  335. # DNS cache #
  336. ###########################
  337.  
  338. ## Enable a DNS cache to reduce latency and outgoing traffic
  339.  
  340. cache = true
  341.  
  342.  
  343. ## Cache size
  344.  
  345. cache_size = 4096
  346.  
  347.  
  348. ## Minimum TTL for cached entries
  349.  
  350. cache_min_ttl = 2400
  351.  
  352.  
  353. ## Maximum TTL for cached entries
  354.  
  355. cache_max_ttl = 86400
  356.  
  357.  
  358. ## Minimum TTL for negatively cached entries
  359.  
  360. cache_neg_min_ttl = 60
  361.  
  362.  
  363. ## Maximum TTL for negatively cached entries
  364.  
  365. cache_neg_max_ttl = 600
  366.  
  367.  
  368.  
  369. ##################################
  370. # Local DoH server #
  371. ##################################
  372.  
  373. [local_doh]
  374.  
  375. ## dnscrypt-proxy can act as a local DoH server. By doing so, web browsers
  376. ## requiring a direct connection to a DoH server in order to enable some
  377. ## features will enable these, without bypassing your DNS proxy.
  378.  
  379. ## Addresses that the local DoH server should listen to
  380.  
  381. listen_addresses = ['127.0.0.1:3000']
  382.  
  383.  
  384. ## Path of the DoH URL. This is not a file, but the part after the hostname
  385. ## in the URL. By convention, `/dns-query` is frequently chosen.
  386. ## For each `listen_address` the complete URL to access the server will be:
  387. ## `https://<listen_address><path>` (ex: `https://127.0.0.1/dns-query`)
  388.  
  389. path = "/dns-query"
  390.  
  391.  
  392. ## Certificate file and key - Note that the certificate has to be trusted.
  393. ## See the documentation (wiki) for more information.
  394.  
  395. cert_file = "localhost.pem"
  396. cert_key_file = "localhost.pem"
  397.  
  398.  
  399.  
  400. ###############################
  401. # Query logging #
  402. ###############################
  403.  
  404. ## Log client queries to a file
  405.  
  406. [query_log]
  407.  
  408. ## Path to the query log file (absolute, or relative to the same directory as the config file)
  409. ## On non-Windows systems, can be /dev/stdout to log to the standard output (also set log_files_max_size to 0)
  410.  
  411. # file = 'query.log'
  412.  
  413.  
  414. ## Query log format (currently supported: tsv and ltsv)
  415.  
  416. format = 'tsv'
  417.  
  418.  
  419. ## Do not log these query types, to reduce verbosity. Keep empty to log everything.
  420.  
  421. # ignored_qtypes = ['DNSKEY', 'NS']
  422.  
  423.  
  424.  
  425. ############################################
  426. # Suspicious queries logging #
  427. ############################################
  428.  
  429. ## Log queries for nonexistent zones
  430. ## These queries can reveal the presence of malware, broken/obsolete applications,
  431. ## and devices signaling their presence to 3rd parties.
  432.  
  433. [nx_log]
  434.  
  435. ## Path to the query log file (absolute, or relative to the same directory as the config file)
  436.  
  437. # file = 'nx.log'
  438.  
  439.  
  440. ## Query log format (currently supported: tsv and ltsv)
  441.  
  442. format = 'tsv'
  443.  
  444.  
  445.  
  446. ######################################################
  447. # Pattern-based blocking (blacklists) #
  448. ######################################################
  449.  
  450. ## Blacklists are made of one pattern per line. Example of valid patterns:
  451. ##
  452. ## example.com
  453. ## =example.com
  454. ## *sex*
  455. ## ads.*
  456. ## ads*.example.*
  457. ## ads*.example[0-9]*.com
  458. ##
  459. ## Example blacklist files can be found at https://download.dnscrypt.info/blacklists/
  460. ## A script to build blacklists from public feeds can be found in the
  461. ## `utils/generate-domains-blacklists` directory of the dnscrypt-proxy source code.
  462.  
  463. [blacklist]
  464.  
  465. ## Path to the file of blocking rules (absolute, or relative to the same directory as the config file)
  466.  
  467. # blacklist_file = 'blacklist.txt'
  468.  
  469.  
  470. ## Optional path to a file logging blocked queries
  471.  
  472. # log_file = 'blocked.log'
  473.  
  474.  
  475. ## Optional log format: tsv or ltsv (default: tsv)
  476.  
  477. # log_format = 'tsv'
  478.  
  479.  
  480.  
  481. ###########################################################
  482. # Pattern-based IP blocking (IP blacklists) #
  483. ###########################################################
  484.  
  485. ## IP blacklists are made of one pattern per line. Example of valid patterns:
  486. ##
  487. ## 127.*
  488. ## fe80:abcd:*
  489. ## 192.168.1.4
  490.  
  491. [ip_blacklist]
  492.  
  493. ## Path to the file of blocking rules (absolute, or relative to the same directory as the config file)
  494.  
  495. # blacklist_file = 'ip-blacklist.txt'
  496.  
  497.  
  498. ## Optional path to a file logging blocked queries
  499.  
  500. # log_file = 'ip-blocked.log'
  501.  
  502.  
  503. ## Optional log format: tsv or ltsv (default: tsv)
  504.  
  505. # log_format = 'tsv'
  506.  
  507.  
  508.  
  509. ######################################################
  510. # Pattern-based whitelisting (blacklists bypass) #
  511. ######################################################
  512.  
  513. ## Whitelists support the same patterns as blacklists
  514. ## If a name matches a whitelist entry, the corresponding session
  515. ## will bypass names and IP filters.
  516. ##
  517. ## Time-based rules are also supported to make some websites only accessible at specific times of the day.
  518.  
  519. [whitelist]
  520.  
  521. ## Path to the file of whitelisting rules (absolute, or relative to the same directory as the config file)
  522.  
  523. # whitelist_file = 'whitelist.txt'
  524.  
  525.  
  526. ## Optional path to a file logging whitelisted queries
  527.  
  528. # log_file = 'whitelisted.log'
  529.  
  530.  
  531. ## Optional log format: tsv or ltsv (default: tsv)
  532.  
  533. # log_format = 'tsv'
  534.  
  535.  
  536.  
  537. ##########################################
  538. # Time access restrictions #
  539. ##########################################
  540.  
  541. ## One or more weekly schedules can be defined here.
  542. ## Patterns in the name-based blocklist can optionally be followed with @schedule_name
  543. ## to apply the pattern 'schedule_name' only when it matches a time range of that schedule.
  544. ##
  545. ## For example, the following rule in a blacklist file:
  546. ## *.youtube.* @time-to-sleep
  547. ## would block access to YouTube during the times defined by the 'time-to-sleep' schedule.
  548. ##
  549. ## {after='21:00', before= '7:00'} matches 0:00-7:00 and 21:00-0:00
  550. ## {after= '9:00', before='18:00'} matches 9:00-18:00
  551.  
  552. [schedules]
  553.  
  554. # [schedules.'time-to-sleep']
  555. # mon = [{after='21:00', before='7:00'}]
  556. # tue = [{after='21:00', before='7:00'}]
  557. # wed = [{after='21:00', before='7:00'}]
  558. # thu = [{after='21:00', before='7:00'}]
  559. # fri = [{after='23:00', before='7:00'}]
  560. # sat = [{after='23:00', before='7:00'}]
  561. # sun = [{after='21:00', before='7:00'}]
  562.  
  563. # [schedules.'work']
  564. # mon = [{after='9:00', before='18:00'}]
  565. # tue = [{after='9:00', before='18:00'}]
  566. # wed = [{after='9:00', before='18:00'}]
  567. # thu = [{after='9:00', before='18:00'}]
  568. # fri = [{after='9:00', before='17:00'}]
  569.  
  570.  
  571.  
  572. #########################
  573. # Servers #
  574. #########################
  575.  
  576. ## Remote lists of available servers
  577. ## Multiple sources can be used simultaneously, but every source
  578. ## requires a dedicated cache file.
  579. ##
  580. ## Refer to the documentation for URLs of public sources.
  581. ##
  582. ## A prefix can be prepended to server names in order to
  583. ## avoid collisions if different sources share the same for
  584. ## different servers. In that case, names listed in `server_names`
  585. ## must include the prefixes.
  586. ##
  587. ## If the `urls` property is missing, cache files and valid signatures
  588. ## must already be present. This doesn't prevent these cache files from
  589. ## expiring after `refresh_delay` hours.
  590.  
  591. [sources]
  592.  
  593. ## An example of a remote source from https://github.com/DNSCrypt/dnscrypt-resolvers
  594.  
  595. [sources.'public-resolvers']
  596. urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v2/public-resolvers.md', 'https://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md']
  597. cache_file = 'public-resolvers.md'
  598. minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
  599. prefix = ''
  600.  
  601. ## Anonymized DNS relays
  602.  
  603. [sources.'relays']
  604. urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v2/relays.md', 'https://download.dnscrypt.info/resolvers-list/v2/relays.md']
  605. cache_file = 'relays.md'
  606. minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
  607. refresh_delay = 72
  608. prefix = ''
  609.  
  610. ## Quad9 over DNSCrypt - https://quad9.net/
  611.  
  612. # [sources.quad9-resolvers]
  613. # urls = ['https://www.quad9.net/quad9-resolvers.md']
  614. # minisign_key = 'RWQBphd2+f6eiAqBsvDZEBXBGHQBJfeG6G+wJPPKxCZMoEQYpmoysKUN'
  615. # cache_file = 'quad9-resolvers.md'
  616. # prefix = 'quad9-'
  617.  
  618. ## Another example source, with resolvers censoring some websites not appropriate for children
  619. ## This is a subset of the `public-resolvers` list, so enabling both is useless
  620.  
  621. # [sources.'parental-control']
  622. # urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v2/parental-control.md', 'https://download.dnscrypt.info/resolvers-list/v2/parental-control.md']
  623. # cache_file = 'parental-control.md'
  624. # minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
  625.  
  626.  
  627.  
  628. #########################################
  629. # Servers with known bugs #
  630. #########################################
  631.  
  632. [broken_implementations]
  633.  
  634. # Cisco servers currently cannot handle queries larger than 1472 bytes, and don't
  635. # truncate reponses larger than questions as expected by the DNSCrypt protocol.
  636. # This prevents large responses from being received over UDP and over relays.
  637. #
  638. # The `dnsdist` server software drops client queries larger than 1500 bytes.
  639. # They are aware of it and are working on a fix.
  640. #
  641. # The list below enables workarounds to make non-relayed usage more reliable
  642. # until the servers are fixed.
  643.  
  644. fragments_blocked = ['cisco', 'cisco-ipv6', 'cisco-familyshield', 'cisco-familyshield-ipv6', 'quad9-dnscrypt-ip4-filter-alt', 'quad9-dnscrypt-ip4-filter-pri', 'quad9-dnscrypt-ip4-nofilter-alt', 'quad9-dnscrypt-ip4-nofilter-pri', 'quad9-dnscrypt-ip6-filter-alt', 'quad9-dnscrypt-ip6-filter-pri', 'quad9-dnscrypt-ip6-nofilter-alt', 'quad9-dnscrypt-ip6-nofilter-pri', 'cleanbrowsing-adult', 'cleanbrowsing-family-ipv6', 'cleanbrowsing-family', 'cleanbrowsing-security']
  645.  
  646.  
  647.  
  648. #################################################################
  649. # Certificate-based client authentication for DoH #
  650. #################################################################
  651.  
  652. # Use a X509 certificate to authenticate yourself when connecting to DoH servers.
  653. # This is only useful if you are operating your own, private DoH server(s).
  654. # 'creds' maps servers to certificates, and supports multiple entries.
  655. # If you are not using the standard root CA, an optional "root_ca"
  656. # property set to the path to a root CRT file can be added to a server entry.
  657.  
  658. # [doh_client_x509_auth]
  659. #
  660. # creds = [
  661. # { server_name='myserver', client_cert='client.crt', client_key='client.key' }
  662. # ]
  663.  
  664.  
  665.  
  666. ################################
  667. # Anonymized DNS #
  668. ################################
  669.  
  670. [anonymized_dns]
  671.  
  672. ## Routes are indirect ways to reach DNSCrypt servers.
  673. ##
  674. ## A route maps a server name ("server_name") to one or more relays that will be
  675. ## used to connect to that server.
  676. ##
  677. ## A relay can be specified as a DNS Stamp (either a relay stamp, or a
  678. ## DNSCrypt stamp), an IP:port, a hostname:port, or a server name.
  679. ##
  680. ## The following example routes "example-server-1" via `anon-example-1` or `anon-example-2`,
  681. ## and "example-server-2" via the relay whose relay DNS stamp
  682. ## is "sdns://gRIxMzcuNzQuMjIzLjIzNDo0NDM".
  683. ##
  684. ## !!! THESE ARE JUST EXAMPLES !!!
  685. ##
  686. ## Review the list of available relays from the "relays.md" file, and, for each
  687. ## server you want to use, define the relays you want connections to go through.
  688. ##
  689. ## Carefully choose relays and servers so that they are run by different entities.
  690. ##
  691. ## "server_name" can also be set to "*" to define a default route, but this is not
  692. ## recommended. If you do so, keep "server_names" short and distinct from relays.
  693.  
  694. # routes = [
  695. # { server_name='example-server-1', via=['anon-example-1', 'anon-example-2'] },
  696. # { server_name='example-server-2', via=['sdns://gRIxMzcuNzQuMjIzLjIzNDo0NDM'] }
  697. # ]
  698.  
  699.  
  700. # skip resolvers incompatible with anonymization instead of using them directly
  701.  
  702. skip_incompatible = false
  703.  
  704.  
  705.  
  706. ###############################
  707. # DNS64 #
  708. ###############################
  709.  
  710. ## DNS64 is a mechanism for synthesizing AAAA records from A records.
  711. ## It is used with an IPv6/IPv4 translator to enable client-server
  712. ## communication between an IPv6-only client and an IPv4-only server,
  713. ## without requiring any changes to either the IPv6 or the IPv4 node,
  714. ## for the class of applications that work through NATs.
  715. ##
  716. ## There are two options to synthesize such records:
  717. ## Option 1: Using a set of static IPv6 prefixes;
  718. ## Option 2: By discovering the IPv6 prefix from DNS64-enabled resolver.
  719. ##
  720. ## If both options are configured - only static prefixes are used.
  721. ## (Ref. RFC6147, RFC6052, RFC7050)
  722. ##
  723. ## Do not enable unless you know what DNS64 is and why you need it, or else
  724. ## you won't be able to connect to anything at all.
  725.  
  726. # [dns64]
  727.  
  728. ## (Option 1) Static prefix(es) as Pref64::/n CIDRs.
  729. # prefix = ["64:ff9b::/96"]
  730.  
  731. ## (Option 2) DNS64-enabled resolver(s) to discover Pref64::/n CIDRs.
  732. ## These resolvers are used to query for Well-Known IPv4-only Name (WKN) "ipv4only.arpa." to discover only.
  733. ## Set with your ISP's resolvers in case of custom prefixes (other than Well-Known Prefix 64:ff9b::/96).
  734. ## IMPORTANT: Default resolvers listed below support Well-Known Prefix 64:ff9b::/96 only.
  735. # resolver = ["[2606:4700:4700::64]:53", "[2001:4860:4860::64]:53"]
  736.  
  737.  
  738.  
  739. ########################################
  740. # Static entries #
  741. ########################################
  742.  
  743. ## Optional, local, static list of additional servers
  744. ## Mostly useful for testing your own servers.
  745.  
  746. [static]
  747.  
  748. # [static.'myserver']
  749. # stamp = 'sdns:AQcAAAAAAAAAAAAQMi5kbnNjcnlwdC1jZXJ0Lg'
  750.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement