summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzsdc <taras@sentrium.io>2019-08-13 12:27:36 +0300
committerzsdc <taras@sentrium.io>2019-08-13 12:27:36 +0300
commitb6ef81d2667cb875130225c7faabdf34e44fc17c (patch)
treee01da82f31d9c28216e73632821d21775a846a8a /src
parent02408b253845b005a2b4a7cfb517e156cd0310c2 (diff)
downloadvyos-1x-b6ef81d2667cb875130225c7faabdf34e44fc17c.tar.gz
vyos-1x-b6ef81d2667cb875130225c7faabdf34e44fc17c.zip
[hostname] T1531: Added hostname alias to 127.0.1.1 (Debian way)
This change makes "dnsdomainname" and "hostname -f" operable
Diffstat (limited to 'src')
-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