summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2019-06-20 10:33:56 +0200
committerKim Hagen <kim.sidney@gmail.com>2019-06-20 10:33:56 +0200
commit06e6ae3bac7cd39341c0b19b570020649d725344 (patch)
tree92efe267a8c65709109cf5f7113176dfab009de3
parent2ee0eff1bd04ef02b0769341eee22543f8011b68 (diff)
downloadvyos-1x-06e6ae3bac7cd39341c0b19b570020649d725344.tar.gz
vyos-1x-06e6ae3bac7cd39341c0b19b570020649d725344.zip
T1458: Regression in 1.2.1-S2 hostname & logging
-rwxr-xr-xsrc/conf_mode/host_name.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py
index 13b2b98ae..b0a4648c7 100755
--- a/src/conf_mode/host_name.py
+++ b/src/conf_mode/host_name.py
@@ -42,7 +42,8 @@ config_file_resolv = '/etc/resolv.conf'
config_tmpl_hosts = """
### Autogenerated by host_name.py ###
-127.0.0.1 localhost {{ hostname }}{% if domain_name %}.{{ domain_name }}{% endif %}
+127.0.0.1 localhost
+127.0.1.1 {{ hostname }}{% if domain_name %}.{{ domain_name }}{% endif %}
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback