diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-05-15 20:46:38 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-05-15 20:46:38 +0200 |
commit | 17bce754270301b951d0af9c80bfbf08872ec5af (patch) | |
tree | f638f8309226edbb3df6d5f16042c95ad1c414b3 | |
parent | 860b229fe00998d2dd2d020d7dc847f99e709c26 (diff) | |
download | vyos-1x-17bce754270301b951d0af9c80bfbf08872ec5af.tar.gz vyos-1x-17bce754270301b951d0af9c80bfbf08872ec5af.zip |
bugfix: remove whitespaces in generated 'powerdns/recursor.conf'
-rwxr-xr-x | src/conf-mode/vyos-config-dns-forwarding.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/conf-mode/vyos-config-dns-forwarding.py b/src/conf-mode/vyos-config-dns-forwarding.py index df273b321..5556c1693 100755 --- a/src/conf-mode/vyos-config-dns-forwarding.py +++ b/src/conf-mode/vyos-config-dns-forwarding.py @@ -31,7 +31,6 @@ config_file = r'/etc/powerdns/recursor.conf' # especially in the semicolon-separated lists of name servers. # Please be careful if you edit the template. config_tmpl = """ - ### Autogenerated by vyos-config-dns-forwarding.py ### # Non-configurable defaults @@ -47,19 +46,19 @@ max-cache-entries={{ cache_size }} export-etc-hosts={{ export_hosts_file }} # listen-on -local-address= {{ listen_on | join(',') }} +local-address={{ listen_on | join(',') }} # domain ... server ... {% if domains -%} {% for d in domains -%} -forward-zones = {{ d.name }} = {{ d.servers | join(";") }} +forward-zones={{ d.name }} = {{ d.servers | join(";") }} {% endfor -%} {% endif %} # name-server -forward-zones-recurse=.= {{ name_servers | join(';') }} +forward-zones-recurse=.={{ name_servers | join(';') }} """ |