DNS server detected by Network not written to resolv.conf

Hi,

Backgroud: Previously a 42.3 installation, then installation of a fresh Leap 15.1, and (in /etc/) I migrated only NetworkManager - to reuse the existing connections) and cups.

The Network manager detects the DNS server correctly, according to it’s log/journal and:


nmcli -f IP4.DNS connection show Kabelnetzverbindung
IP4.DNS[1]:                                10.0.0.138

But /etc/resolv.conf does not show an entry, and consequently name resolution does not work.
After manually adjusting the file, I always run netconfig update -f afterwards, which always leads to an empty file again.

Does anyone have an idea why NetworkManager does not pass on the DNS server information?

I don’t remember the details, but


sudo netconfig -f update

should fix this.

Well, I wrote that I did this already.

Post:

ls -al /etc/resolv.conf

# ls -la /etc/resolv.conf
lrwxrwxrwx 1 root root 30 Jul  8 12:56 /etc/resolv.conf -> /var/run/netconfig/resolv.conf

netconfig itself is writing that file without the nameserver, so I suspect that netconfig and NetworkManager are not working properly together.

Pls clafiry and verify that your system is set up using Network Manager and that your network connection is configured entirely as a DHCP client without any settings that might over-ride the DHCP provided DNS servers.

TSU

I didn’t know how to do that, because as NW already handled everything according to the logs and to the applet. I went to YAST and it’s network connection section and applied the “handle by NW” setting again and now it works \o/

Thanks assistance :slight_smile:

all’s well that ends well…

TSU