summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-05 21:37:45 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-05 21:37:45 +0200
commitd4998fcc4705a3003f673818c18d621673f7cd3d (patch)
tree1da053400ffb7e790751e02d9b519631989aefc5 /data
parent259d0cd0d0296726d02f4613de20cadb5505ea7c (diff)
downloadvyos-1x-d4998fcc4705a3003f673818c18d621673f7cd3d.tar.gz
vyos-1x-d4998fcc4705a3003f673818c18d621673f7cd3d.zip
dns: T3277: improve Jinja2 templating code for serve-rfc1918 yes/no
Diffstat (limited to 'data')
-rw-r--r--data/templates/dns-forwarding/recursor.conf.tmpl10
1 files changed, 2 insertions, 8 deletions
diff --git a/data/templates/dns-forwarding/recursor.conf.tmpl b/data/templates/dns-forwarding/recursor.conf.tmpl
index 672080d63..9e0ad5d17 100644
--- a/data/templates/dns-forwarding/recursor.conf.tmpl
+++ b/data/templates/dns-forwarding/recursor.conf.tmpl
@@ -29,14 +29,8 @@ local-address={{ listen_address | join(',') }}
# dnssec
dnssec={{ dnssec }}
-{# dns: T3277: #}
-{% if no_serve_rfc1918 is defined %}
-# serve-rfc1918
-serve-rfc1918=no
-{% else %}
-# serve-rfc1918
-serve-rfc1918=yes
-{% endif %}
+# serve rfc1918 records
+serve-rfc1918={{ 'no' if no_serve_rfc1918 is defined else 'yes' }}
forward-zones-file=recursor.forward-zones.conf