From e87e39ae599f5de227c05e208d55461eb9dec2dd Mon Sep 17 00:00:00 2001 From: JACK Date: Mon, 13 Jul 2020 21:17:35 +0800 Subject: 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 --- data/templates/dns-forwarding/recursor.vyos-hostsd.conf.lua.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') 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 %} -- cgit v1.2.3