Hass.io networking changes since 0.58 exposed DNS misconfiguration on hassio host

I think I have tracked down the issue.
I had a bit of a shonky DNS config on my home network.
My router was resolving local hostnames and I use opendns to resolve internet hosts.
Hence I had my router and opendns IPs served as pri and sec DNS by my DHCP server.

It seems that docker internal DNS only used the pri DNS server, hence no external hosts resolved.

Now I set up DNS correctly so that DNS forwarding is configured on my router.
This means there is only one/pri DNS server on my hassio host…

It seems that resolution from the supervisor now works:

james@hassio:~$ docker exec -i -t hassio_supervisor /bin/bash
bash-4.3# cat /etc/resolv.conf
search local
nameserver 127.0.0.11
options ndots:0
bash-4.3#
bash-4.3#
bash-4.3#
bash-4.3# ping github.com
PING github.com (192.30.253.112): 56 data bytes
64 bytes from 192.30.253.112: seq=0 ttl=51 time=78.873 ms
64 bytes from 192.30.253.112: seq=1 ttl=51 time=78.875 ms
^C
--- github.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 78.873/78.874/78.875 ms

Thanks for the help @pvizeli and @mak

I’ll rename the topic and mark solved.

I’m getting the same issue with a NUC.

17-11-26 03:13:34 INFO (MainThread) [main] Initialize Hassio setup
17-11-26 03:13:34 INFO (MainThread) [main] Setup HassIO
17-11-26 03:13:34 INFO (SyncWorker_0) [hassio.dock.supervisor] Attach to supervisor homeassistant/amd64-hassio-supervisor with version 0.74
17-11-26 03:13:34 INFO (MainThread) [hassio.host_control] Send ‘info’ to HostControl.
17-11-26 03:13:34 INFO (MainThread) [hassio.host_control] Receive from HostControl: { “type”: “resinos”, “version”: “1.1”, “last_version”: “”, “hostname”: “hassio”, “features”: [“shutdown”, “reboot”, “update”, “hostname”], “os”: “GNU/Linux” }.
17-11-26 03:13:34 INFO (SyncWorker_0) [hassio.dock.interface] Attach to image homeassistant/intel-nuc-homeassistant with version 0.57.3
17-11-26 03:13:34 INFO (MainThread) [hassio.addons.git] Load addon /data/addons/core repository
17-11-26 03:13:34 INFO (MainThread) [hassio.addons] Load addons: 17 all - 17 new - 0 remove
17-11-26 03:13:34 INFO (SyncWorker_1) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-configurator with version 0.2.3
17-11-26 03:13:34 INFO (SyncWorker_6) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-ssh with version 2.9
17-11-26 03:13:34 INFO (SyncWorker_3) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-check_config with version 0.7
17-11-26 03:13:34 INFO (SyncWorker_2) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-mosquitto with version 1.0
17-11-26 03:13:34 INFO (SyncWorker_4) [hassio.dock.interface] Attach to image homeassistant/amd64-addon-samba with version 2.0
17-11-26 03:13:34 INFO (MainThread) [hassio.addons] Startup initialize run 0 addons
17-11-26 03:13:34 INFO (MainThread) [hassio.snapshots] Found 1 snapshot files
17-11-26 03:13:34 INFO (MainThread) [main] Run HassIO
17-11-26 03:13:34 INFO (MainThread) [hassio.addons.git] Pull addon https://github.com/home-assistant/hassio-addons repository
17-11-26 03:13:34 INFO (MainThread) [hassio.dns] Start DNS port forwarding for host add-ons
17-11-26 03:13:34 INFO (MainThread) [hassio.updater] Fetch update data from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json
17-11-26 03:13:39 WARNING (MainThread) [hassio.updater] Can’t fetch versions from https://raw.githubusercontent.com/home-assistant/hassio/master/version.json -> Cannot connect to host raw.githubusercontent.com:443 ssl:True [Try again]
17-11-26 03:13:39 INFO (MainThread) [hassio.core] Start hassio api on 172.30.32.2
17-11-26 03:13:39 INFO (MainThread) [hassio.addons] Startup system run 1 addons
17-11-26 03:13:39 ERROR (MainThread) [hassio.addons.git] Can’t pull https://github.com/home-assistant/hassio-addons repo: Cmd(‘git’) failed due to: exit code(1)
cmdline: git pull -v origin
stderr: ‘fatal: unable to access ‘https://github.com/home-assistant/hassio-addons/’: Couldn’t resolve host ‘github.com’’.
17-11-26 03:13:39 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove
17-11-26 03:13:39 INFO (SyncWorker_13) [hassio.dock.addon] Start docker addon homeassistant/amd64-addon-mosquitto with version 1.0
17-11-26 03:13:39 INFO (MainThread) [hassio.addons] Startup services run 2 addons
17-11-26 03:13:39 INFO (SyncWorker_1) [hassio.dock.interface] Clean homeassistant/amd64-addon-samba docker application
17-11-26 03:13:39 INFO (SyncWorker_9) [hassio.dock.interface] Clean homeassistant/amd64-addon-ssh docker application
17-11-26 03:13:39 INFO (SyncWorker_1) [hassio.dock.addon] Start docker addon homeassistant/amd64-addon-samba with version 2.0
17-11-26 03:13:39 INFO (SyncWorker_9) [hassio.dock.addon] Start docker addon homeassistant/amd64-addon-ssh with version 2.9
17-11-26 03:13:39 INFO (SyncWorker_6) [hassio.dock.interface] Clean homeassistant/intel-nuc-homeassistant docker application
17-11-26 03:13:40 INFO (SyncWorker_6) [hassio.dock.homeassistant] Start homeassistant homeassistant/intel-nuc-homeassistant with version 0.57.3
17-11-26 03:13:40 INFO (MainThread) [hassio.addons] Startup application run 1 addons
17-11-26 03:13:40 INFO (SyncWorker_3) [hassio.dock.interface] Clean homeassistant/amd64-addon-configurator docker application
17-11-26 03:13:41 INFO (SyncWorker_3) [hassio.dock.addon] Start docker addon homeassistant/amd64-addon-configurator with version 0.2.3
17-11-26 03:15:15 INFO (SyncWorker_10) [hassio.dock.interface] Restart homeassistant/intel-nuc-homeassistant
17-11-26 03:19:24 INFO (MainThread) [hassio.addons.git] Clone addon https://github.com/notoriousbdg/hassio-addons repository
17-11-26 03:19:29 ERROR (MainThread) [hassio.addons.git] Can’t clone https://github.com/notoriousbdg/hassio-addons repo: Cmd(‘git’) failed due to: exit code(128)
cmdline: git clone --recursive -v https://github.com/notoriousbdg/hassio-addons /data/addons/git/27e642c6
stderr: 'Cloning into ‘/data/addons/git/27e642c6’…
fatal: unable to access ‘https://github.com/notoriousbdg/hassio-addons/’: Couldn’t resolve host ‘github.com
'.
17-11-26 03:19:29 ERROR (MainThread) [hassio.addons] Can’t load from repository https://github.com/notoriousbdg/hassio-addons
17-11-26 03:19:29 INFO (MainThread) [hassio.addons] Load addons: 17 all - 0 new - 0 remove

Here’s my version information.

Supervisor
Version 0.74
Beta channel false
Latest available version 0.74
Host OS
Hostname hassio
Type resinos
OS GNU/Linux
Host Control version 1.1
Latest available version
Home Assistant
Current version 0.57.3
Latest version 0.57.3

Just an FYI. I ended up reinstalling hassio and this time around it seems to be working correctly. Not really sure what happened the first time. Does the installer access some kind of weird non standard web ports for the install? I’m thinking maybe the firewall blocked it.

Little addition – perhaps this will help someone with the same problem. I had the same issues as above (supervisor cannot resolve hostnames). I’m also using the hass.io Pi-hole addon. Under the DNS settings there I had set it to listen only on the external interface – changed it to listen on all interfaces and it works now.

1 Like

All of a sudden I have this problem, and don’t know what caused it

1 Like