summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkroy <kroy@kroy.io>2019-09-19 19:28:24 -0500
committerkroy <kroy@kroy.io>2019-09-19 19:28:24 -0500
commitfec6e5b5dbd6282518cf9835f0e8b334b52b6839 (patch)
tree4a7e0e0e69fc64aa1005e9d39419e6003eb2134e
parent4cc3cda1fac559578add593a14a2fa04bd7167a3 (diff)
downloadvyos-1x-fec6e5b5dbd6282518cf9835f0e8b334b52b6839.tar.gz
vyos-1x-fec6e5b5dbd6282518cf9835f0e8b334b52b6839.zip
T1638: generated hosts file fix for proper FQDN resolution
-rwxr-xr-xsrc/services/vyos-hostsd2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/vyos-hostsd b/src/services/vyos-hostsd
index 8f70eb4e9..e7ecd8573 100755
--- a/src/services/vyos-hostsd
+++ b/src/services/vyos-hostsd
@@ -43,7 +43,7 @@ hosts_tmpl_source = """
# Local host
127.0.0.1 localhost
-127.0.1.1 {{ host_name }}{% if domain_name %}.{{ domain_name }}{% endif %}
+127.0.1.1 {{ host_name }}{% if domain_name %}.{{ domain_name }} {{ host_name }}{% endif %}
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback