summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-27 22:28:30 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-28 16:11:39 +0000
commitc63cae4f75bdd118c0aee5b502ba3eccdc23c86c (patch)
tree660df0857a1ff0854dd1b698bd3682c158ed7811 /data/templates
parent0be3d1f64bea6e3b52f58a1da056179f88baff9d (diff)
downloadvyos-1x-c63cae4f75bdd118c0aee5b502ba3eccdc23c86c.tar.gz
vyos-1x-c63cae4f75bdd118c0aee5b502ba3eccdc23c86c.zip
vyos-hostsd: T4270: do not resolve local router FQDN to 127.0.1.1
Clients using VyOS as their DNS server and trying to resolve the FQDN of the router will receive 127.0.1.1 as answer. set service dns forwarding allow-from '172.16.0.0/12' set service dns forwarding listen-address '172.31.0.254' set service dns forwarding negative-ttl '60' set system domain-name 'vyos.net' set system host-name 'R1' Will return: $ host R1.vyos.net 172.31.0.254 Using domain server: Name: 172.31.0.254 Address: 172.31.0.254#53 Aliases: R1.vyos.net has address 127.0.1.1 When it should rather return the real IP address assigned via DNS. (cherry picked from commit 665ae5072911fbb1373c393d9b57212552957888)
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/vyos-hostsd/hosts.j21
1 files changed, 0 insertions, 1 deletions
diff --git a/data/templates/vyos-hostsd/hosts.j2 b/data/templates/vyos-hostsd/hosts.j2
index 5cad983b4..71fa335da 100644
--- a/data/templates/vyos-hostsd/hosts.j2
+++ b/data/templates/vyos-hostsd/hosts.j2
@@ -4,7 +4,6 @@
# Local host
127.0.0.1 localhost
-127.0.1.1 {{ host_name }}{% if domain_name %}.{{ domain_name }} {{ host_name }}{% endif %}
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback