summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorfvlaicu <19238716+fvlaicu@users.noreply.github.com>2024-01-06 14:02:11 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-06 12:02:29 +0000
commit132087a4b266deb197f86de3fc1131be7a07504c (patch)
tree9907c9c71ab63746955a49c3ff1f70e5dedc044d /data/templates
parent09dea9fc44dc19181ce24cec42b49f19a4605a3e (diff)
downloadvyos-1x-132087a4b266deb197f86de3fc1131be7a07504c.tar.gz
vyos-1x-132087a4b266deb197f86de3fc1131be7a07504c.zip
dns: T5900: add dont-throttle-netmasks and serve-stale-extensions powerdns features
(cherry picked from commit 199ceb1f0a820c838dea6862371a3121b3d9f3a9)
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/dns-forwarding/recursor.conf.j210
1 files changed, 10 insertions, 0 deletions
diff --git a/data/templates/dns-forwarding/recursor.conf.j2 b/data/templates/dns-forwarding/recursor.conf.j2
index ea700406c..deeb250f0 100644
--- a/data/templates/dns-forwarding/recursor.conf.j2
+++ b/data/templates/dns-forwarding/recursor.conf.j2
@@ -40,6 +40,16 @@ dnssec={{ dnssec }}
dns64-prefix={{ dns64_prefix }}
{% endif %}
+{% if dont_throttle_netmasks is vyos_defined %}
+# dont-throttle-netmasks
+dont-throttle-netmasks={{ exclude_throttle_address | join(',') }}
+{% endif %}
+
+{% if serve_stale_extensions is vyos_defined %}
+# serve-stale-extensions
+serve-stale-extensions={{ serve_stale_extension }}
+{% endif %}
+
# serve rfc1918 records
serve-rfc1918={{ 'no' if no_serve_rfc1918 is vyos_defined else 'yes' }}