summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-29 22:18:18 +0100
committerGitHub <noreply@github.com>2024-02-29 22:18:18 +0100
commitc095867d873a9a7dde038bb751ba26edc66b99f7 (patch)
tree81930f586c20b782d7fbf21408b0b107af54a5a7
parenta2e1c850c4ea40056b80b11f2e3d06b49b2a6f71 (diff)
parent3712f28025a5bc99e941b5212091a2732b9f6d6c (diff)
downloadvyos-1x-c095867d873a9a7dde038bb751ba26edc66b99f7.tar.gz
vyos-1x-c095867d873a9a7dde038bb751ba26edc66b99f7.zip
Merge pull request #3066 from c-po/T4270
vyos-hostsd: T4270: resolve only hostname without domain name to 127.0.1.1
-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