summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-01-30 14:12:01 +0700
committerkhramshinr <khramshinr@gmail.com>2024-01-30 16:45:54 +0700
commiteb76729d63245e2e8f06f4d6d52d2fd4aab4fb1f (patch)
tree7c2a6ec264cf05f65c774fcce99fbedd8247fa6c /data/templates
parent801359c2ebc724bd3dd1d4352502747d813f2d17 (diff)
downloadvyos-1x-eb76729d63245e2e8f06f4d6d52d2fd4aab4fb1f.tar.gz
vyos-1x-eb76729d63245e2e8f06f4d6d52d2fd4aab4fb1f.zip
dns forwarding: T5687: Implement ECS settings for PowerDNS recursor
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 %}
+