Hassio-Access-Point icon indicating copy to clipboard operation
Hassio-Access-Point copied to clipboard

No host DNS Server - failed startup

Open mclordo opened this issue 11 months ago • 2 comments

I had problems when starting the access point in standalone mode without an active Ethernet connection on a USB dongle. After a bit of investigation, I found that the DNS server cannot be set. The reason for this is that there is no actual entry for the DNS server. You are check for this in run.sh (image below), but somehow it didn't get triggered in my case, even though nmcli device show | grep IP4.DNS returns nothing. I'm not really familiar with bash, but I don't see anything wrong with it. So I'm a bit confused, but I can't debug it any further.

image

The Option client_dns_override solved the Problem for me, though the warning (like implemented) would have been nice.

mclordo avatar Mar 25 '24 20:03 mclordo

Hiya, thanks for raising this.

Seems like the script had some bash-fu that I'm not familiar with 😂

I've reworked this in my in-progress networking refactor, so hopefully the issue will be fixed, but I'll be sure to test for this before pushing.

I've also started using shellcheck in the project to hopefully pick up any other unexpected bash behaviours

ROBOT0-VT avatar Mar 26 '24 14:03 ROBOT0-VT

For reference, the working fix I've applied is to use HA itself as the built-in DNS, instead of trying to pull HA's DNS servers. Still WIP though

ROBOT0-VT avatar Mar 26 '24 14:03 ROBOT0-VT