I do not quite understand how the DNS-Setup is supposed to work.
Updates work
Integrations with need for internet-access have issues
DNS in the console only works if i mod /etc/resolv.conf
#normal lookup from cli fails
[core-ssh ~]$ nslookup get.hacs.xyz
;; connection timed out; no servers could be reached
#if i specify 1.1.1.1 or my own dns it works
[core-ssh ~]$ nslookup get.hacs.xyz 1.1.1.1
Server: 1.1.1.1
Address: 1.1.1.1#53
Non-authoritative answer:
Name: get.hacs.xyz
Address: 104.21.39.42
Name: get.hacs.xyz
Address: 172.67.143.44
Name: get.hacs.xyz
Address: 2606:4700:3031::ac43:8f2c
Name: get.hacs.xyz
Address: 2606:4700:3034::6815:272a
#weird ip pointing to the same server in resolv.conf
[core-ssh ~]$ cat /etc/resolv.conf
search local.hass.io
nameserver 127.0.0.11
options ndots:0
#no idea what this is supposed to do
[core-ssh ~]$ ha dns info
fallback: false
host: 172.30.32.3
llmnr: true
locals:
- dns://1.1.1.1
mdns: true
servers:
- dns://the.dns.i.actually.want.to.use
update_available: false
version: 2022.04.1
version_latest: 2022.04.1
radio browser broken:
Logger: homeassistant.config_entries
Source: components/radio_browser/__init__.py:25
First occurred: 10:30:44 AM (1 occurrences)
Last logged: 10:30:44 AM
Error setting up entry Radio Browser for radio_browser
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/radio_browser/__init__.py", line 25, in async_setup_entry
await radios.stats()
File "/usr/local/lib/python3.10/site-packages/radios/radio_browser.py", line 124, in stats
response = await self._request("stats")
File "/usr/local/lib/python3.10/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/radios/radio_browser.py", line 73, in _request
result = await resolver.query("_api._tcp.radio-browser.info", "SRV")
aiodns.error.DNSError: (11, 'Could not contact DNS servers')
dwd can’t seem to contact its source
Logger: homeassistant.components.sensor
Source: runner.py:179
Integration: Sensor (documentation, issues)
First occurred: 10:30:51 AM (1 occurrences)
Last logged: 10:30:51 AM
Setup of sensor platform dwd_weather_warnings is taking over 10 seconds.
i tried switching from dhcp to static with 1.1.1.1 in gui network conf already. that did not help
please tell me how this system is supposed to be set up
which kind of installation you running: Hasos, Docker or supervised ?
i ask because i run into the same problems the last days of configuration-attempts.
only Docker works for me without issues, the rest generating the same error as you get.
i actually have the same installed on a RPI4 and an new ODROID m1 (with the actual supported image) - get the same issues as you described and followed the mostly loose ends on this forum so far with “DNS related” issues.
With the hasos release you can alter the dns settings via the ha dns commands a bit - you you did already it works for the HOST if you set a server manually but the process in homeassistant uses the internal hassio_dns container in docker which seems not working but insights are limited.
You can check if there is a entry on your supervisor logs which states dbus (systemd_resolved) can not be started and somewhere in the logs is than a “running on a unsupported os version”. so far the most suggestions came up with check dns settings in the internal network and restart or reinstall. (so far for me no suggestions work). on hasos you can also not alter the systemd_resolved service.
if you not need the addon section for HA you can try a docker install.
Did someone actually fixed this? I just installed home assistant for the first time, and the DNS does not work. I’ve seen other posts and everyone comes to the conclusion that “this is how the OS works and if you don’t like it, use a docker install” which seems ridiculous. I have bought a inuc only to run home assistant, I’ll do whatever to configure it, but I just want it to… you know… work. How are we supposed to setup the DNS?
Помогло echo nameserver 8.8.8.8 > /etc/resolv.conf
Хотя из консоли SSH все домены пинговались (что значит, что DNS резолвился).
У меня установка HA supervised.
В логах HA было много ошибок у всяких программ. Все ошибки ссылались на проблемы с резолвом DNS.
Странно, что из консоли всё нормально резолвилось.
В общем команда echo nameserver 8.8.8.8 > /etc/resolv.conf помогла.
Но, на сколько я знаю, потом файл /etc/resolv.conf обратно вернётся в своё состояние. Я не знаю как устроен resolv.conf и какая программа его изменяет