summaryrefslogtreecommitdiff
path: root/src/conf_mode/host_name.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-08-19 12:04:56 -0400
committerDaniil Baturin <daniil@baturin.org>2019-08-19 12:04:56 -0400
commit212348145838e8791474b987efc624cba3fb8b00 (patch)
treec4914439531f177fd24fb083b785446f0c35c910 /src/conf_mode/host_name.py
parent589952faadcf7700702b24390c1d654706f3a857 (diff)
parentdc8cfa6dfd1d95890b3e14c928e3d2064451a851 (diff)
downloadvyos-1x-212348145838e8791474b987efc624cba3fb8b00.tar.gz
vyos-1x-212348145838e8791474b987efc624cba3fb8b00.zip
Merge branch 'current' into equuleus
Diffstat (limited to 'src/conf_mode/host_name.py')
-rwxr-xr-xsrc/conf_mode/host_name.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py
index 16467c8df..2fad57db6 100755
--- a/src/conf_mode/host_name.py
+++ b/src/conf_mode/host_name.py
@@ -45,7 +45,7 @@ config_file_resolv = '/etc/resolv.conf'
config_tmpl_hosts = """
### Autogenerated by host_name.py ###
127.0.0.1 localhost
-127.0.1.1 {{ hostname }}{% if domain_name %}.{{ domain_name }}{% endif %}
+127.0.1.1 {{ hostname }}{% if domain_name %}.{{ domain_name }} {{ hostname }}{% endif %}
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback