Bug 323995

Summary: DNS settings are lost after laptop resumes from sleep
Product: [Unmaintained] Network Management Reporter: Ruchir Brahmbhatt <ruchir.brahmbhatt>
Component: Control ModuleAssignee: Lamarque V. Souza <lamarque>
Status: RESOLVED WAITINGFORINFO    
Severity: normal CC: jgrulich
Priority: NOR    
Version First Reported In: 0.9   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ruchir Brahmbhatt 2013-08-25 05:56:32 UTC
KDE 4.11
When I close laptop lid and then open again, sometimes the internet doesn't work and when I troubleshoot it, I found that DNS settings are gone which causes domain resolutions to fail. I have to disconnect LAN cable and reconnect to make it working again. In such cases when I see /etc/resolv.conf, I see that name servers are gone.  When I unplug and plug lan cable, name servers are back in file and internet starts working.

Reproducible: Sometimes

Steps to Reproduce:
1. Close laptop lid to suspend.
2. Open laptop lid again after some times.

I'm able to reproduce around 50% times.
Actual Results:  
DNS settings are gone and domain resolution fails in system.

Expected Results:  
Network should resume normally and work flawlessly.
Comment 1 Lamarque V. Souza 2013-08-25 12:15:40 UTC
This is probably not a Plasma NM but. Plasma NM run as normal user so it cannot write to /etc/resolv.conf. Since the problem is not reliably reproducible my guess is that there may be a script in /etc/NetworkManager/dispatcher.d doing something wrong. Other alternatives are a bug in resolvconf command line tool or even a problem with your dhcp server (this is less likely to happen I must admit).

Which NetworkManager version do you use? Do you have the resolvconf command line tool installed? Do you have any script in /etc/NetworkManager/dispatcher.d? Please also send the NetworkManager log for whenthe problem happens.
Comment 2 Ruchir Brahmbhatt 2013-08-25 13:53:14 UTC
NetworkManager-0.9.6.4-5.12.2.x86_64

There is no resolvconf command.

linux-t2ce:/etc/NetworkManager/dispatcher.d # ls
.nfs.swp  autofs  nfs

I'll add log when I reproduce next time.