summaryrefslogtreecommitdiff
path: root/data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl
diff options
context:
space:
mode:
authorNEOMorphey <neomorphey@gmail.com>2020-12-09 21:16:04 +0200
committerGitHub <noreply@github.com>2020-12-09 20:16:04 +0100
commit2f5de3cfadec3b708b4b332d154b3b619f4d873e (patch)
treea01240b41d08c8dfe66ad434fa3910ef11945c7c /data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl
parent9f5f31ed15d6187694ecb29f51919151d9817ec4 (diff)
downloadvyos-1x-2f5de3cfadec3b708b4b332d154b3b619f4d873e.tar.gz
vyos-1x-2f5de3cfadec3b708b4b332d154b3b619f4d873e.zip
dns: T3121: recursion zone bugfix
Diffstat (limited to 'data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl')
-rw-r--r--data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl b/data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl
index 90f35ae1c..3ab0c804d 100644
--- a/data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl
+++ b/data/templates/dns-forwarding/recursor.forward-zones.conf.tmpl
@@ -22,7 +22,7 @@
{% if forward_zones is defined %}
# zones added via 'service dns forwarding domain'
{% for zone, zonedata in forward_zones.items() %}
-{{ "+" if zonedata['recursion_desired'] is defined }}{{ zone }}={{ zonedata['server']|join(', ') }}
+{{ "+" if zonedata['recursion_desired'] is defined }}{{ zone | replace('_', '-') }}={{ zonedata['server']|join(', ') }}
{% endfor %}
{% endif %}