diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-05-15 20:58:29 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-05-15 20:58:29 +0200 |
commit | 86771ef232f45058f8cf8c5848ef2e805afadd1b (patch) | |
tree | 2cb9646cd09ebc97e2d6d77f6b2af7a1d67e435b /src | |
parent | 17bce754270301b951d0af9c80bfbf08872ec5af (diff) | |
download | vyos-1x-86771ef232f45058f8cf8c5848ef2e805afadd1b.tar.gz vyos-1x-86771ef232f45058f8cf8c5848ef2e805afadd1b.zip |
bugfix: vyos-config-dns-forwarding.py: adding name-server into dictionary
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf-mode/vyos-config-dns-forwarding.py | 4 |
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') |