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

Mac keeps losing internet connection - Resolving Host

I've been using my current setup with no problems.

Out of the blue, my Mac Pro loses internet connection. At least, that's what it looks like. The browser keeps saying "Resolving Host" and just hangs up.

The only work-around has been to go to Network preferences and click Advanced and Renew DHCP License. This only works for a few minutes. Then it goes back to being stuck.


I've got an Airport extreme in the other room with 2 more macs running fine. This computer is a Power Mac running 10.6.8. It's hooked via ethernet into an Airport Express. I've also got an old Macbook downstairs that's working fine off the wi-fi.


Any ideas?

Mac Pro, Mac OS X (10.6.8)

Posted on Jan 18, 2014 4:47 PM

Reply
44 replies

Jan 20, 2017 3:27 PM in response to hamu7787

The only thing that works for me that is instant and doesn't require any action is this script...


#! /bin/bash


# Run as sudo!


# Adapted from https://discussions.apple.com/thread/5481194?answerId=24226685022#24226685022
# Needs root permissions for ifconfig down/up so using method from
# http://www.cyberciti.biz/faq/howto-restart-airport-wireless-from-bash-command-line-in-macosx/


while true
do
  yup=`ping -c1 -t1 -n 8.8.8.8|grep round-trip` # Relatively hacky way to check
                                                # connection. Pings Google DNS.
                                                # Greps for a line with
                                                # 'round-trip', fills yup
                                                # variable if found.
  if [[ -n $yup ]]
    then echo "wifi"                            # We have a connection.
    sleep 1                                     # Wait before trying again.
  else
    echo "DOWN at `date +%Y%m%d-%H%M-%S`"       # No connection! Log the time.
    echo "DOWN at `date +%Y%m%d-%H%M-%S`">>~/wifi_dropouts.log
    arp -da
    sleep 1                                     # Wait to give time to connect.
  fi
done


(It's adapted from my earlier post script which causes a delay, this one is instant. Just leave it running in the background.)

Jan 18, 2014 6:25 PM in response to Neal Fox

First contact your ISP. You need to confirm that the issue is not on their end.



Change your router channel. Sometimes this is all you will have to do.


Power cycling the router. Read the router's user manual or contact their tech support for instructions.


System Preferences/Internet & Network/Network

Unlock the padlock

Locations: Automatic

Highlight Airport

Click the Assist Me button

In the popup window click the Diagnostic button.


System Preferences/Network- Unlock padlock. Highlight Airport. Network Name-select your name. Click on the Advanced button. Airport/Preferred Networks-delete all that is not your network.

Place a check mark next to "Remember networks this computer has joined." Click the OK button and lock the padlock. Restart your computer.



http://support.apple.com/kb/TS1920 Mac OS: How to release and renew a DHCP lease



No internet connection (wireless)

Check to see if an extra entry is present in the DNS Tab for your wireless connection (System Preferences/Network/Airport/Advanced/DNS).

Delete all extra entries that you find.

Place a check mark next to "Remember networks this computer has joined."



Other resources to check into:

Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6


Configuring 802.1X in Mac OS X Lion and Later


Non-responsive DNS server or invalid DNS configuration can cause long delay before webpages load


Netspot


How to diagnose and resolve Wi-Fi slow-downs


Pv6 troubleshooting


Mac OS X 10.6 Help: Solving problems with connecting to the Internet


OS X Mountain Lion: Check the status of your network connections


OS X Mountain Lion: Requirements for wireless Internet access


What Affects Wireless Internet?


Solutions for connecting to the Internet, setting up a small network, and troubleshooting



If using one of Apple's Airport routers, read its user manual or post in its forum area. If using a 3rd party router, read its user manual, contact their tech support department/website or post in its forum area. Another possible solution - read mammothsuziq response https://discussions.apple.com/thread/4096745?answerId=22082360022#22082360022

















User uploaded file

Apr 11, 2014 5:40 AM in response to Neal Fox

Full disclosure: My MBP is a dual-boot machine, running OSX Mavericks on one partition, and Windows 7 Professional (64-bit) on the other partition.


Have experienced similar issues with losing internet connection, though only on certain routers. When the machine is running under Windows, it doesn't lose connection, though under Mavericks it does - though it takes a while to do so (usually later in the day).


As others stated above, turning off and on Wi-fi does help, for a while. Tried some of the recommendations listed above, and we'll see if any goodness results.

May 8, 2014 8:56 AM in response to Neal Fox

Same here. My MBP has worked perfectly with my router since August 2011. Recently it keeps dropping the internet connection, maintaining the WIFI and sometimes it loses both.


Renewing DHCP connects and then blocks. Typing the IP address manually connects to WIFI, but not the internet.


In the beginning it came back on by restarting the machine. Now it doesn't do that anymore. It seems completely random. All other devices, iphone, windows computers, G4, android phones and tablets do not have the problem.


No problems in oter networks. Just my home network. Weird.


Any suggestions?

May 25, 2014 3:02 AM in response to Neal Fox

I just talked to Apple and was told to-


1 go to System Preferences- Network- Advanced- TCP/IP- Renew DHCP license- click ok

2 switch off Imac and pull out the cylindrical plug from the back of the imac

3 put plug back in and hold down (p + r + Alt + command keys) until you hear the Imac restart for a second time


It now seems to be working perfectly. This has apparently restored system settings without changing data. Anyway it worked for me.

Feb 9, 2015 9:56 AM in response to Neal Fox

I was having the same issue, but resolved it after a few days of detective work. Here are the details:


When I upgraded to Yosemite on my MacBook (2010) and iMac (2012) I started having this issue. I also then started having it on an older iMac (2005ish) that is running 10.6 (capped at that OS). The connection worked when hardwired, but not through wifi.


What DID NOT work:

- power cycle cable modem (Comcast)

- power cycle wifi router (Cisco ValetPlus)

- change DNS to 8.8.8.8 (Google)

- cleared System Configuration file

- I also tried a couple of other things that I read about (e.g. option+command+r+p on startup) - none worked


What DID work:

- I started getting curious about my wifi router when I couldn't update the firmware (there wasn't any firmware support past 2011 or so).

- So, I upgraded my wifi router to an Apple Airport Extreme. Once I did this (and power cycled my cable modem again) things started to magically work and the "resolving host" issue went away.


Hope this helps.

Jun 26, 2015 10:47 AM in response to Neal Fox

I've got the same issue, and it has to be a Yosemite software bug.


How i know:


1. Never had this problem before and have noticed it since Yosemite.


2. Two laptops, same problem. One 6 years old, one 1 month old and new model (MB 2015).


3. New laptop can't go to sleep, and it seems like the issue is in the Wifi. When the lid is closed, it keeps getting woken up every 15min from the internet. Have gone through everything with tech and the issue is the Wifi driver. Only way to make it sleep is turn wifi off before closing lid.


4. iPhone and iPad have no issues with the router what-so-ever and the internet on them is perfect.


5. Laptops have the same issue anywhere i go.


6. All friends laptops (note, non mac) have no issues at my place.


7. I know about 20 other people personally who are having this issue with wifi.


Apple, Sort it out!

Mac keeps losing internet connection - Resolving Host

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