summaryrefslogtreecommitdiff
path: root/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl
diff options
context:
space:
mode:
authorJACK <jack9603301@163.com>2020-07-13 21:17:35 +0800
committerGitHub <noreply@github.com>2020-07-13 21:17:35 +0800
commite87e39ae599f5de227c05e208d55461eb9dec2dd (patch)
tree5463bfc058b6bae77e8c40b698b4d4295d4172eb /data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl
parentd736643099570f6a945ee46956f849e545ccc187 (diff)
downloadvyos-1x-e87e39ae599f5de227c05e208d55461eb9dec2dd.tar.gz
vyos-1x-e87e39ae599f5de227c05e208d55461eb9dec2dd.zip
dns: T2675: fix recursor.vyos-hostsd.conf.lua
When users use the standard fully qualified domain name writing method, there will be an extra point after the actual domain name. In order to ensure that the standard writing method is supported, it should not be mandatory to add this point in Lua script
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.tmpl2
1 files changed, 1 insertions, 1 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 6d1760199..b0d99d9ae 100644
--- a/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl
+++ b/data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl
@@ -17,7 +17,7 @@ addNTA("{{ a }}.", "{{ tag }} alias")
-- from 'service dns forwarding domain'
{%- for zone, zonedata in forward_zones.items() %}
{%- if zonedata['addNTA'] %}
-addNTA("{{ zone }}.", "static")
+addNTA("{{ zone }}", "static")
{%- endif %}
{%- endfor %}
{%- endif %}