diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-05-06 19:22:19 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-05-06 19:22:19 +0200 |
commit | b50430e30aa4c5c387e7aaaaa893dfe1410c9be3 (patch) | |
tree | 6cb898fe4bb3e7a1d2c839e9fa3ace98ba166b75 /src/conf-mode | |
parent | 58926683be1a74ef0b6142505eba16576b6a0b15 (diff) | |
download | vyos-1x-b50430e30aa4c5c387e7aaaaa893dfe1410c9be3.tar.gz vyos-1x-b50430e30aa4c5c387e7aaaaa893dfe1410c9be3.zip |
T622: PDNS does not export /etc/hosts entries
Diffstat (limited to 'src/conf-mode')
-rwxr-xr-x | src/conf-mode/vyos-config-dns-forwarding.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf-mode/vyos-config-dns-forwarding.py b/src/conf-mode/vyos-config-dns-forwarding.py index 537e47d85..3b5142ea4 100755 --- a/src/conf-mode/vyos-config-dns-forwarding.py +++ b/src/conf-mode/vyos-config-dns-forwarding.py @@ -161,6 +161,8 @@ def generate(dns): if 'ignore-hosts-file' in dns.keys(): f.write("export-etc-hosts=no\n") + else: + f.write("export-etc-hosts=yes\n") if 'name-server' in dns.keys(): fwds_src.append('statically configured: {0}'.format(', '.join(str(ns) for ns in dns['name-server']))) |