summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authormrpops2ko <34683587+mrpops2ko@users.noreply.github.com>2026-06-18 15:17:06 +0100
committerGitHub <noreply@github.com>2026-06-18 16:17:06 +0200
commite64100195d16744db173d3217e6ec1e596c34ff1 (patch)
tree553f6ae7d32f0320834b864185b5c246315ed7c3 /data
parent38e2293e046e88f4773f67d2084fdaf101c3fd6a (diff)
downloadvyos-1x-e64100195d16744db173d3217e6ec1e596c34ff1.tar.gz
vyos-1x-e64100195d16744db173d3217e6ec1e596c34ff1.zip
T8881: dns: expose PowerDNS recursor cache tuning options (#5209)
Add refresh-on-ttl-perc, nothing-below-nxdomain, and minimum-ttl-override under service dns forwarding with recursor template and smoketest coverage. Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Daniil Baturin <daniil@baturin.org>
Diffstat (limited to 'data')
-rw-r--r--data/templates/dns-forwarding/recursor.conf.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/dns-forwarding/recursor.conf.j2 b/data/templates/dns-forwarding/recursor.conf.j2
index 5ac872f19..b089d8b4d 100644
--- a/data/templates/dns-forwarding/recursor.conf.j2
+++ b/data/templates/dns-forwarding/recursor.conf.j2
@@ -20,6 +20,15 @@ max-cache-entries={{ cache_size }}
# negative TTL for NXDOMAIN
max-negative-ttl={{ negative_ttl }}
+# TTL refresh percentage
+refresh-on-ttl-perc={{ ttl_percent }}
+
+# nothing-below-nxdomain
+nothing-below-nxdomain={{ nothing_below_nxdomain }}
+
+# minimum-ttl-override
+minimum-ttl-override={{ minimum_ttl_override }}
+
# timeout
network-timeout={{ timeout }}