Hi,
I’m using Home Assistant Green.
I’ve updated it completely.
But since I plugged it for the first time, it breaks something in my router which makes DNS to stop working.
I can ping public IP addresses, and can browse websites (because the web browser can resolve domains using DNS over HTTPS protocol), but if I try to ping a public website, it doesn’t work because it can’t resolve the domain.
And any computer in my home network that needs to resolve a domain, won’t be able to do it.
To solve this, I have to switch off Home Assistant Green and reboot my router.
I’ve looked at HA host logs and I get lots of errors like this:
2024-08-12 20:17:56.107 homeassistant dockerd[491]: time="2024-08-12T20:17:56.107179841Z" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.30.232.2:35067" dns-server="udp:80.58.61.250:53" error="read udp 172.30.232.2:35067->80.58.61.250:53: i/o timeout" question=";checkonline.home-assistant.io.\tIN\t A" spanID=10c4d75ded91975f traceID=5cb528c9af94a3dcabf83498f68fdc9e
2024-08-12 20:17:56.108 homeassistant dockerd[491]: time="2024-08-12T20:17:56.108655756Z" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.30.232.2:34151" dns-server="udp:80.58.61.250:53" error="read udp 172.30.232.2:34151->80.58.61.250:53: i/o timeout" question=";checkonline.home-assistant.io.\tIN\t AAAA" spanID=b3d4b68da3d2db7a traceID=646c4e64d90cf15738de07968f084231
2024-08-12 20:18:00.109 homeassistant dockerd[491]: time="2024-08-12T20:18:00.108782844Z" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.30.232.2:47303" dns-server="udp:80.58.61.254:53" error="read udp 172.30.232.2:47303->80.58.61.254:53: i/o timeout" question=";checkonline.home-assistant.io.\tIN\t A" spanID=74a6b7a996dcc3a6 traceID=5cb528c9af94a3dcabf83498f68fdc9e
Don’t know if this is related, but in those same logs I have lots of messages like this one too:
2024-08-12 20:29:00.006 homeassistant systemd-resolved[380]: Clock change detected. Flushing caches.
2024-08-12 20:29:33.003 homeassistant systemd-resolved[380]: Clock change detected. Flushing caches.
2024-08-12 20:30:38.001 homeassistant systemd-resolved[380]: Clock change detected. Flushing caches.
2024-08-12 20:31:42.009 homeassistant systemd-resolved[380]: Clock change detected. Flushing caches.
2024-08-12 20:32:15.001 homeassistant systemd-resolved[380]: Clock change detected. Flushing caches.
2024-08-12 20:33:19.003 homeassistant systemd-resolved[380]: Clock change detected. Flushing caches.
I don’t know if that’s related, but doesn’t seem fine to check the time every time and find changes in the clock.
Thank you for any help.
ltgcc
(ltgcc)
February 13, 2025, 8:36pm
2
Was this ever resolved? if so, what’s the magic?
thx
Floriszz
(Florisz)
May 7, 2025, 6:12pm
3
I have the same trying to use my own dns…
Found 2 github issues, both stale ‘not planned’…
I feel there is really something wrong in config. Get the feeling it is somehow host related.
I run Home Assistant on Raspberry PI. I know there is an add-in to see and easily change host configs, but can’t remember the name, while the name is not that obvious to me. That is ‘Chrony’, but is specifically for NTP setting.
opened 09:49PM - 07 Aug 24 UTC
closed 10:03PM - 13 Sep 24 UTC
bug
stale
### Describe the issue you are experiencing
In my network for *reasons port 53 … access to 8.8.8.8 or 8.8.4.4 is blocked at the firewall. In fact this is somewhat due to running the HA wearOS app but there were other reasons.
I will explicitly set dns fallback false on any home assistant instances I setup..
```ha dns options --fallback=false```
For some time - don't ask me when it started - I see log messages reporting failed attempts to reach the 2 google DNS IPs above and I get a little more annoyed until I finally came here to report this.
I was able to track it down on my main system to the docker IP of the supervisor making the request.
Thanks.
### What type of installation are you running?
Home Assistant Supervised
### Which operating system are you running on?
Debian
### Steps to reproduce the issue
1. Block port 53 access to 8.8.8.8 and 8.8.4.4 at the firewall
2. run ha dns options --fallback=false
3. watch the system log for the attempts to reach either of those IP addresses
...
### Anything in the Supervisor logs that might be useful for us?
```txt
2024-08-06T11:08:48.930850-04:00 hass dockerd[858]: time="2024-08-06T11:08:48.929954488-04:00" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.17.0.2:47915" dns-server="udp:8.8.8.8:53" error="read udp 172.17.0.2:47915->8.8.8.8:53: read: connection refused" question=";checkonline.home-assistant.io.\tIN\t AAAA"
2024-08-06T11:08:48.931853-04:00 hass dockerd[858]: time="2024-08-06T11:08:48.931346813-04:00" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.17.0.2:36966" dns-server="udp:8.8.4.4:53" error="read udp 172.17.0.2:36966->8.8.4.4:53: read: connection refused" question=";checkonline.home-assistant.io.\tIN\t A"
2024-08-06T11:08:48.932178-04:00 hass dockerd[858]: time="2024-08-06T11:08:48.931724422-04:00" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.17.0.2:49486" dns-server="udp:8.8.4.4:53" error="read udp 172.17.0.2:49486->8.8.4.4:53: read: connection refused" question=";checkonline.home-assistant.io.\tIN\t AAAA"
2024-08-06T11:11:16.166472-04:00 hass dockerd[858]: time="2024-08-06T11:11:16.165051473-04:00" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.17.0.2:53904" dns-server="udp:8.8.8.8:53" error="read udp 172.17.0.2:53904->8.8.8.8:53: read: connection refused" question=";version.home-assistant.io.\tIN\t A"
2024-08-06T11:11:16.168301-04:00 hass dockerd[858]: time="2024-08-06T11:11:16.166267059-04:00" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.17.0.2:37683" dns-server="udp:8.8.4.4:53" error="read udp 172.17.0.2:37683->8.8.4.4:53: read: connection refused" question=";version.home-assistant.io.\tIN\t A"
2024-08-06T11:11:16.168515-04:00 hass dockerd[858]: time="2024-08-06T11:11:16.166194263-04:00" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.17.0.2:48484" dns-server="udp:8.8.8.8:53" error="read udp 172.17.0.2:48484->8.8.8.8:53: read: connection refused" question=";version.home-assistant.io.\tIN\t AAAA"
A different system trying to reach the weather..? Not sure which docker container did this but honestly none should.
2024-08-07T17:17:39.467068-04:00 ott-hass dockerd[762]: time="2024-08-07T17:17:39.465502450-04:00" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.30.32.3:48368" dns-server="udp:8.8.8.8:53" error="read udp 172.30.32.3:48368->8.8.8.8:53: i/o timeout" question=";dd.weather.gc.ca.\tIN\t AAAA"
```
### System Health information
## System Information
version | core-2024.8.0
-- | --
installation_type | Home Assistant Supervised
dev | false
hassio | true
docker | true
user | root
virtualenv | false
python_version | 3.12.4
os_name | Linux
os_version | 6.6.31+rpt-rpi-v8
arch | aarch64
timezone | America/Toronto
config_dir | /config
<details><summary>Home Assistant Community Store</summary>
GitHub API | ok
-- | --
GitHub Content | ok
GitHub Web | ok
GitHub API Calls Remaining | 5000
Installed Version | 1.34.0
Stage | running
Available Repositories | 1391
Downloaded Repositories | 7
HACS Data | ok
</details>
<details><summary>Home Assistant Supervisor</summary>
host_os | Debian GNU/Linux 12 (bookworm)
-- | --
update_channel | stable
supervisor_version | supervisor-2024.08.0
agent_version | 1.6.0
docker_version | 27.1.1
disk_total | 155.6 GB
disk_used | 107.8 GB
healthy | true
supported | true
host_connectivity | true
supervisor_connectivity | true
ntp_synchronized | true
virtualization |
supervisor_api | ok
version_api | ok
installed_addons | Z-Wave JS (0.6.2), Let's Encrypt (5.0.26), ESPHome (2024.7.3), Piper (1.5.2), Whisper (2.1.2), Alsa & PulseAudio Fix (3.4.1), openWakeWord (1.10.0)
</details>
<details><summary>Dashboards</summary>
dashboards | 5
-- | --
resources | 2
views | 14
mode | storage
</details>
<details><summary>Recorder</summary>
oldest_recorder_run | 7 August 2024 at 17:23
-- | --
current_recorder_run | 7 August 2024 at 17:23
estimated_db_size | 15585.25 MiB
database_engine | mysql
database_version | 10.11.8
</details>
### Supervisor diagnostics
_No response_
### Additional information
_No response_
opened 09:26AM - 15 Nov 24 UTC
closed 11:05AM - 01 May 25 UTC
stale
### The problem
Just see this errors at logs.
At HA network settings (ipv4) i … have my own DNS serwers (Piholes)
### What version of Home Assistant Core has the issue?
core-2024.11.1
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
DNS
### Link to integration documentation on our website
_No response_
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
2024-11-15 08:52:37.433 homeassistant dockerd[469]: time="2024-11-15T08:52:37.433035378Z" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.30.33.3:38217" dns-server="udp:172.30.32.3:53" error="read udp 172.30.33.3:38217->172.30.32.3:53: i/o timeout" question=";www.duckdns.org.\tIN\t AAAA"
2024-11-15 08:52:37.435 homeassistant dockerd[469]: time="2024-11-15T08:52:37.433082639Z" level=error msg="[resolver] failed to query external DNS server" client-addr="udp:172.30.33.3:38303" dns-server="udp:172.30.32.3:53" error="read udp 172.30.33.3:38303->172.30.32.3:53: i/o timeout" question=";www.duckdns.org.\tIN\t A"
```
### Additional information
_No response_
1 Like