summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-01-30 14:12:01 +0700
committerChristian Breunig <christian@breunig.cc>2024-02-01 21:39:57 +0100
commit9ac2a115a2289fc15af05b729596a6ad449c1727 (patch)
tree363acc04f2008fb8cbc931a4ce3897a0b5473c3b /data/templates
parentcd4b03898e99b7317d2cbdf614bc14caf2e9bbce (diff)
downloadvyos-1x-9ac2a115a2289fc15af05b729596a6ad449c1727.tar.gz
vyos-1x-9ac2a115a2289fc15af05b729596a6ad449c1727.zip
dns forwarding: T5687: Implement ECS settings for PowerDNS recursor
(cherry picked from commit eb76729d63245e2e8f06f4d6d52d2fd4aab4fb1f)
Diffstat (limited to 'data/templates')
-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 %}
+