summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-02-02 10:50:37 +0200
committerGitHub <noreply@github.com>2024-02-02 10:50:37 +0200
commita092d507aefcf2c3588a7bcb7496c1c0cbfa7fe8 (patch)
tree2a8b5001b812725b7de895d951643ffbe2145f57 /data
parent5a9a4d5d34ac04d498e62e2537f3618d88ba08f3 (diff)
parent5802d14e08f87a6706e02c54133d1db9e7426b5b (diff)
downloadvyos-1x-a092d507aefcf2c3588a7bcb7496c1c0cbfa7fe8.tar.gz
vyos-1x-a092d507aefcf2c3588a7bcb7496c1c0cbfa7fe8.zip
Merge pull request #2921 from vyos/mergify/bp/sagitta/pr-2903
dns forwarding: T5687: Implement ECS settings for PowerDNS recursor (backport #2903)
Diffstat (limited to 'data')
-rw-r--r--data/templates/dns-forwarding/recursor.conf.j214
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 %}
+