When installing a Pi-Hole on an Ubuntu server I found that once install the Ubuntu server itself was no longer able to resolve DNS.
I wasn’t sure how to resolve this until I was researching LAN Cache and they highlight a similar issue and how to “resolve” it.
This issue definitely effects Pi-Hole docker container but unsure if also effects standard install.
Below is the fix from lancache.net for reference
Disabling systemd-resolved DNSStubListener
If your cache host is running a recent Linux distribution, it is likely running
systemd-resolved, which listens on port
53. If you want your cache host to bind to
0.0.0.0:53 (INADDR_ANY, all IPv4 addresses), you will first need to disable
systemd-resolved’s stub listener.
sudo -e /etc/systemd/resolved.confand change the line starting with
DNSStubListener=no– removing the
sudo rm /etc/resolv.conf
sudo ln -s /var/run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo service systemd-resolved restart
- Check that you can still resolve DNS on the cache server by running
nslookupfor a domain of your choice (e.g.