summaryrefslogtreecommitdiff
path: root/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.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.vyos-hostsd.conf.lua.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.vyos-hostsd.conf.lua.tmpl')
-rw-r--r--data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl b/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl
index 7f29c387e..04fb72121 100644
--- a/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl
+++ b/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl
@@ -13,16 +13,16 @@ addNTA("{{ a }}.", "{{ tag }} alias")
{% endfor %}
{% endif %}
-{% if forward_zones is defined %}
+{% if forward_zones is vyos_defined %}
-- from 'service dns forwarding domain'
{% for zone, zonedata in forward_zones.items() %}
-{% if zonedata['addnta'] is defined %}
+{% if zonedata.addnta is vyos_defined %}
addNTA("{{ zone }}", "static")
{% endif %}
{% endfor %}
{% endif %}
-{% if authoritative_zones is defined %}
+{% if authoritative_zones is vyos_defined %}
-- from 'service dns forwarding authoritative-domain'
{% for zone in authoritative_zones %}
addNTA("{{ zone }}", "static")