summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'])))