ha dns info and Nslookup on homeassistant:
➜ ~ ha dns info
fallback: false
host: 172.30.32.3
llmnr: true
locals:
- dns://192.168.30.1
mdns: true
servers:
- dns://192.168.30.1
- dns://192.168.15.1
update_available: false
version: 2022.04.1
version_latest: 2022.04.1
➜ ~ nslookup <SECRET>.duckdns.org
Server: 172.30.32.3
Address: 172.30.32.3#53
Non-authoritative answer:
Name: <SECRET>.duckdns.org
Address: 77.<SECRET>.<WAN>.<IP>
➜ ~ nslookup <SECRET>.duckdns.org 192.168.30.1
Server: 192.168.30.1
Address: 192.168.30.1#53
Non-authoritative answer:
Name: <SECRET>.duckdns.org
Address: 77.<SECRET>.<WAN>.<IP>
➜ ~ nslookup <SECRET>.duckdns.org 192.168.15.1
Server: 192.168.15.1
Address: 192.168.15.1#53
Non-authoritative answer:
Name: <SECRET>.duckdns.org
Address: 77.<SECRET>.<WAN>.<IP>
FQDN gets resolved to WAN-IP. Note that no entries in the query log appear on the local dns-server. So my guess is, that despite homeassistant is telling me its asking the local DNS in doesn’t.
Nslookup on another box in my LAN resolves to the local IP:
┌──(ubuntu🌍unimatrixzero)-[~]
└─$ nslookup <SECRET>.duckdns.org 192.168.30.1
Server: 192.168.30.1
Address: 192.168.30.1#53
Name: <SECRET>.duckdns.org
Address: 192.168.30.190
┌──(ubuntu🌍unimatrixzero)-[~]
└─$ nslookup <SECRET>.duckdns.org 192.168.15.1
Server: 192.168.15.1
Address: 192.168.15.1#53
Name: <SECRET>.duckdns.org
Address: 192.168.30.190
This is why i’m trying to understand the namelookup process within homeassistant.
Why is the behaviour of homeassistant different here?
Writing the FQDN to the hosts-file of the “hassio_dns”-container works but it doesn’t survive a container restart.
Is there a possibility to make permanent entries to the hosts-file, so that they survive container restarts, system reboots and updates?