[hassio-addon] pi-hole dns not running, dnsmasq: address in use

My hassio is running in docker on Ubuntu 18.04. I installed the pi-hole add-on, however the DNS is not running. I’m getting this notification in the log: dnsmasq: failed to create listening socket for port 53: Address in use

I did a netstat search and came up with this:
sudo netstat -tulpn | grep ":53 "
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 703/systemd-resolve
udp 0 0 127.0.0.53:53 0.0.0.0:* 703/systemd-resolve

Not sure where to go from here, any help? Should I change the port?

Thanks!

I believe you need to stop systemd-resolved, which is providing a local DNS and therefore already using the port. You can stop it with:

sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-resolved
5 Likes

Michael, thanks so much, that did it! Pi-hole is now active.

@michaelblight: Dude that is awesome… It worked…

Are there any side effects of disabling systemd-resolved?

I understand systemd-resolved is used as a DNS cache. If you’re using pihole, you have a DNS server “nearby”, so I wouldn’t expect any side effects.