diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-01 20:45:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 20:45:16 +0100 |
commit | a93491acfca90ac910a235d03ca8e93830c98c12 (patch) | |
tree | 56ac5a02de9b39c303d0e92ea31a78104d2716c6 /data/templates | |
parent | b026961edd6b732f4c57ff0c68099930bf6162e3 (diff) | |
parent | 112376a4ccb96ceee647a4cba5c4f131597b0ea4 (diff) | |
download | vyos-1x-a93491acfca90ac910a235d03ca8e93830c98c12.tar.gz vyos-1x-a93491acfca90ac910a235d03ca8e93830c98c12.zip |
Merge pull request #2903 from HollyGurza/T5687
dns forwarding: T5687: Implement ECS settings for PowerDNS recursor
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/dns-forwarding/recursor.conf.j2 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/data/templates/dns-forwarding/recursor.conf.j2 b/data/templates/dns-forwarding/recursor.conf.j2 index e4e8e7044..5ac872f19 100644 --- a/data/templates/dns-forwarding/recursor.conf.j2 +++ b/data/templates/dns-forwarding/recursor.conf.j2 @@ -57,3 +57,17 @@ serve-rfc1918={{ 'no' if no_serve_rfc1918 is vyos_defined else 'yes' }} auth-zones={% for z in authoritative_zones %}{{ z.name }}={{ z.file }}{{- "," if not loop.last -}}{% endfor %} forward-zones-file={{ config_dir }}/recursor.forward-zones.conf + +#ecs +{% if options.ecs_add_for is vyos_defined %} +ecs-add-for={{ options.ecs_add_for | join(',') }} +{% endif %} + +{% if options.ecs_ipv4_bits is vyos_defined %} +ecs-ipv4-bits={{ options.ecs_ipv4_bits }} +{% endif %} + +{% if options.edns_subnet_allow_list is vyos_defined %} +edns-subnet-allow-list={{ options.edns_subnet_allow_list | join(',') }} +{% endif %} + |