Skip to content

Commit

Permalink
Make it easier to use NextDNS or other private DNS server (#14288)
Browse files Browse the repository at this point in the history
  • Loading branch information
d5h authored Oct 31, 2021
1 parent 4e739b5 commit d06869e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,15 @@ dnscrypt_servers:
ipv4:
- cloudflare
# - google
# - <YourCustomServer> # E.g., if using NextDNS, this will be something like NextDNS-abc123.
# You must also fill in custom_server_stamps below. You may specify
# multiple custom servers.
ipv6:
- cloudflare-ipv6

custom_server_stamps:
# YourCustomServer: 'sdns://...'

# DNS servers which will be used if 'dns_encryption' is 'false'.
# Fallback resolvers for systemd-resolved
# The default is to use Cloudflare.
Expand Down
5 changes: 5 additions & 0 deletions roles/dns/templates/dnscrypt-proxy.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -551,5 +551,10 @@ cache_neg_max_ttl = 600

[static]

{% if custom_server_stamps %}{% for name, stamp in custom_server_stamps.items() %}
[static.'{{ name }}']
stamp = '{{ stamp }}'
{%- endfor %}{% endif %}

# [static.'myserver']
# stamp = 'sdns:AQcAAAAAAAAAAAAQMi5kbnNjcnlwdC1jZXJ0Lg'

0 comments on commit d06869e

Please sign in to comment.