summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-07-03 18:29:13 +0200
committerGitHub <noreply@github.com>2019-07-03 18:29:13 +0200
commit37dcfba27f62fe83c8cd25e08164b4a304ca9aee (patch)
treebaddaa985bdfe243961033b0cfa0cf68fc0eff04 /src/conf_mode
parent66ddc5c8117206dbd13b66661de49cf810f6c2a9 (diff)
parent31f2887a69eda5b630165c288b0759e3540681cd (diff)
downloadvyos-1x-37dcfba27f62fe83c8cd25e08164b4a304ca9aee.tar.gz
vyos-1x-37dcfba27f62fe83c8cd25e08164b4a304ca9aee.zip
Merge pull request #76 from qiuchengxuan/crux
[pdns-recursor] T1469 - replace forward-zones with forward-zones-recurse
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dns_forwarding.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py
index 7559a0af6..c7e362d07 100755
--- a/src/conf_mode/dns_forwarding.py
+++ b/src/conf_mode/dns_forwarding.py
@@ -60,16 +60,6 @@ export-etc-hosts={{ export_hosts_file }}
# listen-on
local-address={{ listen_on | join(',') }}
-# domain ... server ...
-{% if domains -%}
-
-forward-zones={% for d in domains %}
-{{ d.name }}={{ d.servers | join(";") }}
-{{- "," if not loop.last -}}
-{% endfor %}
-
-{% endif %}
-
# dnssec
dnssec={{ dnssec }}
@@ -80,6 +70,16 @@ forward-zones-recurse=.={{ name_servers | join(';') }}
# no name-servers specified - start full recursor
{% endif %}
+# domain ... server ...
+{% if domains -%}
+
+forward-zones-recurse={% for d in domains %}
+{{ d.name }}={{ d.servers | join(";") }}
+{{- "," if not loop.last -}}
+{% endfor %}
+
+{% endif %}
+
"""
default_config_data = {