Skip to content

Commit d06869e

Browse files
authored
Make it easier to use NextDNS or other private DNS server (#14288)
1 parent 4e739b5 commit d06869e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

config.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,15 @@ dnscrypt_servers:
8888
ipv4:
8989
- cloudflare
9090
# - google
91+
# - <YourCustomServer> # E.g., if using NextDNS, this will be something like NextDNS-abc123.
92+
# You must also fill in custom_server_stamps below. You may specify
93+
# multiple custom servers.
9194
ipv6:
9295
- cloudflare-ipv6
9396

97+
custom_server_stamps:
98+
# YourCustomServer: 'sdns://...'
99+
94100
# DNS servers which will be used if 'dns_encryption' is 'false'.
95101
# Fallback resolvers for systemd-resolved
96102
# The default is to use Cloudflare.

roles/dns/templates/dnscrypt-proxy.toml.j2

+5
Original file line numberDiff line numberDiff line change
@@ -551,5 +551,10 @@ cache_neg_max_ttl = 600
551551

552552
[static]
553553

554+
{% if custom_server_stamps %}{% for name, stamp in custom_server_stamps.items() %}
555+
[static.'{{ name }}']
556+
stamp = '{{ stamp }}'
557+
{%- endfor %}{% endif %}
558+
554559
# [static.'myserver']
555560
# stamp = 'sdns:AQcAAAAAAAAAAAAQMi5kbnNjcnlwdC1jZXJ0Lg'

0 commit comments

Comments
 (0)