summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-01 09:09:49 +0100
committerGitHub <noreply@github.com>2024-03-01 09:09:49 +0100
commit191205a15b7c35a897ee88b0ac0d274991b60bed (patch)
tree5ba902d66ca7d26d34a909678480cb934a202fe1
parent11f8efe7ab411a2ef5467b1471e9d5c0d83bd0d2 (diff)
parent3700c7250c4372114235bac12687d628f898a1a0 (diff)
downloadvyos-1x-191205a15b7c35a897ee88b0ac0d274991b60bed.tar.gz
vyos-1x-191205a15b7c35a897ee88b0ac0d274991b60bed.zip
Merge pull request #3067 from vyos/mergify/bp/sagitta/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.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/data/templates/vyos-hostsd/hosts.j2 b/data/templates/vyos-hostsd/hosts.j2
index 71fa335da..62ecf3ad0 100644
--- a/data/templates/vyos-hostsd/hosts.j2
+++ b/data/templates/vyos-hostsd/hosts.j2
@@ -4,6 +4,7 @@
# Local host
127.0.0.1 localhost
+127.0.1.1 {{ host_name }}
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback