You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

After Lion upgrade, having network issues after wake from sleep

After upgrading to Lion from 10.6.8 on my MacBook Pro (15-inch, Early 2011), I am unable to connect to the Internet after the computer wakes from sleep. I should rephrase this - I am able to ping IP's and DNS (DNS servers are present) however none of my apps will connect (Safari, iChat, etc) -> they all indicate the Internet is unavailable. I have two Airport Express's running 7.5.2 extending a WiFi network off an Airport Extreme running 7.5.2. This issue is specific to waking from sleep. Any thoughts or suggestions would be appriciated.

Mac OS X (10.7)

Posted on Jul 20, 2011 8:31 PM

Reply
213 replies

Aug 7, 2011 1:41 AM in response to MattfromBelgium

For what it's worth, it's beginning to look like there may be an issue where by an in-progress Time Machine backup or a DVD in the drive may cause this issue.


I'm leaning towards a priority issue whereby the code responsible for reestablishing the network connection is being prevented from running in those circumstances.


I finally have been able to reproduce this, sort of, due to an in-progress Time Machine backup and the network connection was finally restored as soon as I stopped the in-progress Time Machine backup from the Time Machine menu.

Aug 7, 2011 3:04 AM in response to Dogcow-Moof

Sorry but I do not see this as the problem. I do not have to an "in-progress" Time Machine backup for the problem to be there. It arises every time the Time Capsule is switched on, whether it's backing up, trying to backup or doing nothing. Just the mere fact of the Time Capsule being connected and powered is sufficient and the WiFi network via Airport Express is knackered. Disconnect power from the Time Capsule and it's fine. Except of course I can never put the iMac to sleep unless I unplug all USB and FireWire drives.


Anyone found a solution to the calendar problem yet? I have deleted and re-installed countless times. It does not sync. It does though on my MacBook, iPad & iPhone.

Aug 7, 2011 10:16 AM in response to philjackson

This too is happening to me. I use a wired connection with a static IP and I have found that in a terminal I can ping my lan's as well as any wan address. I can also resolve any DNS using terminal. I can type the IP address into Safari and it goes to the website and it works perfectly but Safari can not resolve the name itself. Pretty fricking weird. I am going to keep dinking with this to see if there is a simple solution.

Aug 7, 2011 11:24 AM in response to richardfromdurham

richardfromdurham wrote:


Sorry but I do not see this as the problem. I do not have to an "in-progress" Time Machine backup for the problem to be there. It arises every time the Time Capsule is switched on, whether it's backing up, trying to backup or doing nothing. Just the mere fact of the Time Capsule being connected and powered is sufficient and the WiFi network via Airport Express is knackered. Disconnect power from the Time Capsule and it's fine. Except of course I can never put the iMac to sleep unless I unplug all USB and FireWire drives.


Anyone found a solution to the calendar problem yet? I have deleted and re-installed countless times. It does not sync. It does though on my MacBook, iPad & iPhone.


Please create separate new threads for each of your issues, as they are different from this one and are worthy of investigation.


For example, your Time Capsule issue sounds like a configuration problem more than anything else.

Aug 10, 2011 3:37 AM in response to philjackson

One more data-point and workaround:


Config: Early 2009 Mac Mini (2GHz, 4GB), upgraded to Lion from SL. Using wired ethernet with fixed IP (airport is off), Time Machine backups to USB HD. Automatic sleep disabled, so only via Apple menu (or key combo if I remember). No disk in optical drive.


Symptoms: Since Lion upgrade, on wake from sleep Safari, Mail, etc have no internet connectivity (some complain about DNS issues rather than no connection), but terminal apps work fine. Doesn't happen every time, but certainly more than half the time. never had this problem under Snow Leopard.


Workaround: Restart mDNSResponder, this immediately fixes the problem for me every time. I'm doing this by running sudo killall mDNSResponder in a terminal (Applications > Utilities > Terminal), but there's probably a cleaner way.


Thoughts: Doesn't appear to be specific to Airport, DHCP or optical disks. Could be Time Machine related, but if that's running for 1-2 minutes once an hour, it seems highly unlikely that half the times I told the Mac to sleep since I upgraded to Lion happened to be whilst a backup was running...

Aug 10, 2011 1:25 PM in response to Dogcow-Moof

I found this:


http://www.makingitscale.com/2011/fix-for-broken-search-domain-resolution-in-osx -lion.html


Which makes reference to mDNSResponder.

Here they added a parameter -AlwaysAppendSearchDomains to the mDNSResponder.plist file under the ProgramArguments block, unloaded the mDNSResponder.plist and then reloaded it.


I have not had the time to try it yet, if anyone else does, let me know if it works. Don't forget to do this to a copy of the mDNSResponder.plist file.

Aug 10, 2011 1:46 PM in response to JimHughes

Also this from the Terminal:


How To Fix DNS Search Domains in OS X Lion

==========================================

Edit the mDNSResponder Config

------------------------------

sudo vim /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

Add <string>-AlwaysAppendSearchDomains</string> below <string>-launchd</string>.

Reload mDNSResponder

--------------------

sudo launchctl unload /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

sudo launchctl load -F /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

Aug 11, 2011 6:22 AM in response to Zlacker

I tried running the command in the Terminal using Vim and noticed that my com.apple.mDNSResponder.plist had not changed.

I ended up using a plist editor to modify the file. I put the iMac to sleep and have not gone back yet.


If it hasn't worked I think I will go through my time machine backups and grab an old com.apple.mDNSResponder.plist from Snow Leopard.


If that doesn't work I'll either wait for an updated OS fix or go back to Snow Leopard for a while. I cloned it to an external HD just in case with CCC.

Or I'll just deal with turning airport on and off all the time. Maybe write an Apple script to do it for me.


Apple must know of this bug though, it was happening at the golden master phase of the Lion OS.


Of course, as a last resort, I could erase and install and then migrate my user settings from a Time Machine backup.


No matter what I do, if I fix it, I'll make sure to post it here.

Aug 12, 2011 3:03 PM in response to Zlacker

Modifying the com.apple.mDNSResponder.plist did work for me, at least so far it seems to.

After several sleeps, I have activated myself, upon waking the internet works again.

Wi-Fi seems to take a second or so longer to connect but that is certainly not a problem comparatively.

I would not consider this a fix necessarily but it is, for me anyway, a work around for now.


By the way, I ended up using PlistEdit Pro to edit the com.apple.mDNSResponder.plist.

Aug 12, 2011 6:53 PM in response to Zlacker

I did a hack to get this working for me. I used SleepWatcher 2.1.2 (author Bernhard Baehr) and simply followed the first four steps of his ReadMe file. I then modified the rc.sleep and rc.wakeup files with simply the Launchctl commands:

For rc.sleep file use "launchctl unload /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist"

and to reload put "launchctl load -F /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist" in the rc.wakeup file.

It is working great so far!

After Lion upgrade, having network issues after wake from sleep

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.