summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-05-06 19:22:19 +0200
committerChristian Poessinger <christian@poessinger.com>2018-05-06 19:22:19 +0200
commitb50430e30aa4c5c387e7aaaaa893dfe1410c9be3 (patch)
tree6cb898fe4bb3e7a1d2c839e9fa3ace98ba166b75
parent58926683be1a74ef0b6142505eba16576b6a0b15 (diff)
downloadvyos-1x-b50430e30aa4c5c387e7aaaaa893dfe1410c9be3.tar.gz
vyos-1x-b50430e30aa4c5c387e7aaaaa893dfe1410c9be3.zip
T622: PDNS does not export /etc/hosts entries
-rwxr-xr-xsrc/conf-mode/vyos-config-dns-forwarding.py2
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'])))