Bug 323995 - DNS settings are lost after laptop resumes from sleep
Summary: DNS settings are lost after laptop resumes from sleep
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: Network Management
Classification: Unmaintained
Component: Control Module (show other bugs)
Version: 0.9
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Lamarque V. Souza
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-25 05:56 UTC by Ruchir Brahmbhatt
Modified: 2017-04-28 17:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.