diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-09-25 19:21:36 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-09-25 19:21:36 +0200 |
commit | f39f5dde342aa5e14d1fb4155920c61ac5fd11b1 (patch) | |
tree | b6282ff86de6e8e40281d73e6d4f5b8d1140083c /data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl | |
parent | 7f09beeac924b1bc9bf61f8153870bd4cb939b96 (diff) | |
download | vyos-1x-f39f5dde342aa5e14d1fb4155920c61ac5fd11b1.tar.gz vyos-1x-f39f5dde342aa5e14d1fb4155920c61ac5fd11b1.zip |
dns: forwarding: T2921: migrate to get_config_dict()
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.tmpl | 4 |
1 files changed, 2 insertions, 2 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 8fefae0b2..784d5c360 100644 --- a/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl +++ b/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl @@ -13,10 +13,10 @@ addNTA("{{ a }}.", "{{ tag }} alias") {% endfor %} {% endif %} -{% if forward_zones %} +{% if forward_zones is defined %} -- from 'service dns forwarding domain' {% for zone, zonedata in forward_zones.items() %} -{% if zonedata['addNTA'] %} +{% if zonedata['addnta'] is defined %} addNTA("{{ zone }}", "static") {% endif %} {% endfor %} |