Adding AdGuard to Home Assistant on Hassio on Ubuntu 18.04

So you will run into a bit of a problem where the Ubuntu 18.04 underneath Hassio is already listening to port 53, so you cannot have a Hassio plugin also listening to port 53. The error I saw in the AdGuard log was:

[fatal] Couldn’t start forwarding DNS server, cause: couldn’t listen to UDP socket, cause: listen udp bind: address already in use

This method I found seems to work…

Disable and stop system-resolved service:
sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-resolved

Then put the following line in the [main] section of /etc/NetworkManager/NetworkManager.conf:

Delete the symlink /etc/resolv.conf:
rm /etc/resolv.conf

Restart network-manager:
sudo service network-manager restart

This may break VPN for some users.

Leave a Reply

Line and paragraph breaks automatic.
XHTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Comments Protected by WP-SpamShield Spam Filter