summaryrefslogtreecommitdiff
path: root/data/templates/dns-forwarding/recursor.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-10 10:08:05 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-10 10:08:05 +0200
commitaa4cb50bdf9932ff54776ee222f3caecb4a26b28 (patch)
tree9777a998d7c5324d7bd00acf8484f059f95109d7 /data/templates/dns-forwarding/recursor.conf.tmpl
parent17586e0f0698d65f4910ebb480997d768118311c (diff)
downloadvyos-1x-aa4cb50bdf9932ff54776ee222f3caecb4a26b28.tar.gz
vyos-1x-aa4cb50bdf9932ff54776ee222f3caecb4a26b28.zip
dns: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/dns-forwarding/recursor.conf.tmpl')
-rw-r--r--data/templates/dns-forwarding/recursor.conf.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/dns-forwarding/recursor.conf.tmpl b/data/templates/dns-forwarding/recursor.conf.tmpl
index d4ec80a3a..385bef94b 100644
--- a/data/templates/dns-forwarding/recursor.conf.tmpl
+++ b/data/templates/dns-forwarding/recursor.conf.tmpl
@@ -23,7 +23,7 @@ max-negative-ttl={{ negative_ttl }}
network-timeout={{ timeout }}
# ignore-hosts-file
-export-etc-hosts={{ 'no' if ignore_hosts_file is defined else 'yes' }}
+export-etc-hosts={{ 'no' if ignore_hosts_file is vyos_defined else 'yes' }}
# listen-address
local-address={{ listen_address | join(',') }}
@@ -32,7 +32,7 @@ local-address={{ listen_address | join(',') }}
dnssec={{ dnssec }}
# serve rfc1918 records
-serve-rfc1918={{ 'no' if no_serve_rfc1918 is defined else 'yes' }}
+serve-rfc1918={{ 'no' if no_serve_rfc1918 is vyos_defined else 'yes' }}
# zones
auth-zones={% for z in authoritative_zones %}{{ z.name }}={{ z.file }}{{- "," if not loop.last -}}{% endfor %}