Derixithy

dns

I noticed in Ubuntu and Fedora that my service.docker.local domain names where not resolving by my DNS server.

I fixed it in Fedora in the past but totally forgot about it later, now that i set up an Ubuntu device for me and my wife i got the issue again.

The problem lies with how Fedora, Ubuntu (and probably much more distro's) resolve DNS. With the switch to systemd many more things began to be integrated within it, the same with DNS, which is now provided by systemd-resolved.service.

You can disable it, but you will have no working DNS, there seem to be few ways how to go about it, but the way i did it now seems to be the easiest.

First remove the current DNS config:

sudo rm -f /etc/resolv.conf

Then swap it for a config with your local DNS.

sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

#DNS, #Homelab source: notes.enovision.net