summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorIgor Melnyk <igor_melnyk@ukr.net>2021-05-04 10:44:29 +0300
committerIgor Melnyk <igor_melnyk@ukr.net>2021-05-04 10:44:29 +0300
commit8fcff3112b235307b78eb23833c1d646f0e7f9f4 (patch)
tree7d7c9528a7c2178f27e884ea7a58caf6375f148b /data
parent0191c089f94455f53f3f234c094891353583f64c (diff)
downloadvyos-1x-8fcff3112b235307b78eb23833c1d646f0e7f9f4.tar.gz
vyos-1x-8fcff3112b235307b78eb23833c1d646f0e7f9f4.zip
dns: T3277: DNS Forwarding - reverse zones for RFC1918 addresses (v2)
Diffstat (limited to 'data')
-rw-r--r--data/templates/dns-forwarding/recursor.conf.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/templates/dns-forwarding/recursor.conf.tmpl b/data/templates/dns-forwarding/recursor.conf.tmpl
index cc9612ca8..672080d63 100644
--- a/data/templates/dns-forwarding/recursor.conf.tmpl
+++ b/data/templates/dns-forwarding/recursor.conf.tmpl
@@ -30,9 +30,12 @@ local-address={{ listen_address | join(',') }}
dnssec={{ dnssec }}
{# dns: T3277: #}
-{% if serve_rfc1918 is defined and serve_rfc1918 == 'no' %}
+{% if no_serve_rfc1918 is defined %}
# serve-rfc1918
serve-rfc1918=no
+{% else %}
+# serve-rfc1918
+serve-rfc1918=yes
{% endif %}
forward-zones-file=recursor.forward-zones.conf