summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-17 02:17:55 +0200
committerGitHub <noreply@github.com>2019-08-17 02:17:55 +0200
commitac463fe7974eddce11d1983bf9bb1d8e020ad454 (patch)
tree71a7af975fa0274e7d5c38b21c680aef1d3bf067 /src/conf_mode
parent652cb0bb710f26afcad9babaeb9572f03c42f9cc (diff)
parentb6ef81d2667cb875130225c7faabdf34e44fc17c (diff)
downloadvyos-1x-ac463fe7974eddce11d1983bf9bb1d8e020ad454.tar.gz
vyos-1x-ac463fe7974eddce11d1983bf9bb1d8e020ad454.zip
Merge pull request #102 from zdc/T1531
[hostname] T1531: Added hostname alias to 127.0.1.1 (Debian way)
Diffstat (limited to 'src/conf_mode')
-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