summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf-mode/vyos-config-dns-forwarding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf-mode/vyos-config-dns-forwarding.py b/src/conf-mode/vyos-config-dns-forwarding.py
index 5556c1693..9f3bb7aee 100755
--- a/src/conf-mode/vyos-config-dns-forwarding.py
+++ b/src/conf-mode/vyos-config-dns-forwarding.py
@@ -52,7 +52,7 @@ local-address={{ listen_on | join(',') }}
{% if domains -%}
{% for d in domains -%}
-forward-zones={{ d.name }} = {{ d.servers | join(";") }}
+forward-zones={{ d.name }}={{ d.servers | join(";") }}
{% endfor -%}
{% endif %}
@@ -112,7 +112,7 @@ def get_config():
if conf.exists('name-server'):
name_servers = conf.return_values('name-server')
- dns.setdefault('name_servers', name_servers)
+ dns['name_servers'] = dns['name_servers'] + name_servers
if conf.exists('system'):
conf.set_level('system')