diff --git a/config.cfg b/config.cfg index 66808119..a1c31564 100644 --- a/config.cfg +++ b/config.cfg @@ -88,9 +88,15 @@ dnscrypt_servers: ipv4: - cloudflare # - google +# - # 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. diff --git a/roles/dns/templates/dnscrypt-proxy.toml.j2 b/roles/dns/templates/dnscrypt-proxy.toml.j2 index 86c05ae3..0317001c 100644 --- a/roles/dns/templates/dnscrypt-proxy.toml.j2 +++ b/roles/dns/templates/dnscrypt-proxy.toml.j2 @@ -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'