Bug 1182107

Summary: NetworkManager dns resolv.conf
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ruslan Bocharov <rb04ar0v+suse.com>
Component: NetworkAssignee: Andreas Schwab <schwab>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P1 - Urgent CC: dead_mozay, email, fabian, ianmepham, opensuseforum
Version: Current   
Target Milestone: Current   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ruslan Bocharov 2021-02-11 08:44:36 UTC
When I switch to yast on NetworkManager then after reboot the dns setting disappears., When I switch to yast on NetworkManager, then disappears after you restart the setup dns.
Comment 1 Dead Mozay 2021-02-17 04:19:37 UTC
I confirm the problem, immediately after updating glibc 2.33, resolve DNS stops working
Comment 2 Dead Mozay 2021-02-17 08:07:34 UTC
I've edited /etc/nsswitch.conf

passwd:         files nis
group:          files nis
shadow:         files nis

hosts:          files dns myhostname

After rebooting, DNS started working
Comment 3 JuPing Chan 2021-02-18 17:51:31 UTC
I can confirm this problem emerged on my desktop after I upgraded from 5.10.12-1 to 5.10.16-1.

Solution at https://bugzilla.opensuse.org/show_bug.cgi?id=1182107#c2 works. Thanks!

Furthermore, when I chose to boot kernel 5.10.12-1 after the upgrade, the DNS settings in resolv.conf was ignored completely.

However, loading the readonly snapshot of 5.10.12-1 and rolling back to it returned the DNS resolver to its functional state. Running zypper dup to 5.10.16-1 again resulted in the DNS resolution error occurring again.
Comment 4 Ian Mepham 2021-02-20 04:46:25 UTC
I was hit by this too. No DNS name resolution worked in any application for LAN or the internet. DHCP is served from Pi-hole on a Pi 4b running Raspberry Pi OS. I did reboot after updating Tumbleweed (using zypper dup). I could still ping/ssh using IP addresses.

I also noticed that the postfix service failed to start. If you want to see the output from the system journal I've put it here https://susepaste.org/56830665

I tried the solution shown at https://bugzilla.opensuse.org/show_bug.cgi?id=1182107#c2 rebooted and everything works fine now.

I'm not using NetworkManager, I'm using wicked configured through yast.
DHCP and DNS are all set to the default auto settings. I've only set the hostname manually and disable IPV6.

Please let me know if you need any more information.
Comment 5 Scott Wells 2021-02-20 04:53:32 UTC
The solution from JuPing Chan 2021-02-18 17:51:31 UTC worked for me!  Thanks!
Comment 6 Andreas Schwab 2021-02-22 10:49:53 UTC
dup

*** This bug has been marked as a duplicate of bug 1182323 ***