Question about resolving local DNS

Hi all,

I am wondering what change I would need to make (if any) to get Cahcy to resolve local DNS. I have a few servers running and for now my DHCP and DNS is provided by a UDM Pro. I was considering running an internal DNS server again but I seem to be having problems with just the current setup. So I can ping my servers at the IP no problem. But if I try to hit the DNS name of one of the units it just says it cannot find it.

I noted that it is using what looks close to a loopback address 127.0.0.53.
I am guessing that is systemd-network (think that is right). When I force nslookup to use the IP where DNS is being handled it returns expected results. I noted that while I could edit resolv.conf the network manager eventually overwrites it. So I tried looking at maybe I could give network manager the info but the files I saw mentioned in my search are not present. Other checks suggest the system knows about the UDMP resolving but just doesn’t seem to use it.

I also tried just entering the info via the network GUI (I am using KDE), this also does not seem to work. Does anyone have some suggestions on how I can change it and be sure it is going to hit the DNS server?

Thanks in advance for helping a noob.

Create /etc/NetworkManager/conf.d/dns.conf with the contents below

[main]
dns=none

and then manually edit /etc/resolv.conf

1 Like

Man that was fast. Thank you for the response. I had seen this as one of the possible options but was not sure and decided to ask. This is working.

Okay well I was half right about it working. nslookup is now definately hitting the UDMP to get local DNS but if I turn around to ping it, that does not work. So I guess I am missing something else here. Any other suggestions?

Try disabling systemd-resolved. sudo systemctl disable --now systemd-resolved

1 Like

That appeared to be the missing step. ping is hitting the DNS name now. Thanks again. :slight_smile:

1 Like

I am having an issue resolving local dns as well. I use a pfsense router with a pretty standard setup. I can resolve the pfsense dns but nothing else. Using the steps suggested dont work either.

Edit: I reset my pfsense to factory and everything pings now. Not an OS issue.