summaryrefslogtreecommitdiff
path: root/src/services/vyos-hostsd
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-09-20 07:40:01 +0700
committerGitHub <noreply@github.com>2019-09-20 07:40:01 +0700
commitb7a09eabd6ea3a5291bece9a015e14e20310bc67 (patch)
tree4a7e0e0e69fc64aa1005e9d39419e6003eb2134e /src/services/vyos-hostsd
parent4cc3cda1fac559578add593a14a2fa04bd7167a3 (diff)
parentfec6e5b5dbd6282518cf9835f0e8b334b52b6839 (diff)
downloadvyos-1x-b7a09eabd6ea3a5291bece9a015e14e20310bc67.tar.gz
vyos-1x-b7a09eabd6ea3a5291bece9a015e14e20310bc67.zip
Merge pull request #132 from kroy-the-rabbit/current
T1638: generated hosts file fix for proper FQDN resolution
Diffstat (limited to 'src/services/vyos-hostsd')
-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