diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-26 20:54:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-26 20:54:13 +0200 |
commit | bc5e7ba65b85a8e25273aad67de3da52af9ea5d2 (patch) | |
tree | 4f658f480249fc53cbdca2ad2220a4ed680d05da | |
parent | a5f847beab098f6d316f7c925509c7aa9a76e21f (diff) | |
parent | b75e0ba0a297fd64307960f98f30c27a689deab7 (diff) | |
download | vyos-1x-bc5e7ba65b85a8e25273aad67de3da52af9ea5d2.tar.gz vyos-1x-bc5e7ba65b85a8e25273aad67de3da52af9ea5d2.zip |
Merge pull request #3370 from vyos/mergify/bp/equuleus/pr-3066
vyos-hostsd: T4270: resolve only hostname without domain name to 127.0.1.1 (backport #3066)
-rw-r--r-- | data/templates/vyos-hostsd/hosts.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/vyos-hostsd/hosts.tmpl b/data/templates/vyos-hostsd/hosts.tmpl index 03662d562..0875adfd8 100644 --- a/data/templates/vyos-hostsd/hosts.tmpl +++ b/data/templates/vyos-hostsd/hosts.tmpl @@ -3,7 +3,7 @@ # Local host 127.0.0.1 localhost -127.0.1.1 {{ host_name }}{% if domain_name %}.{{ domain_name }} {{ host_name }}{% endif %} +127.0.1.1 {{ host_name }} # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback |