Skip navigation

Can't find www.google.com

5212 Views 7 Replies Latest reply: Aug 8, 2011 1:40 AM by MadMacs0 RSS
CW4PWR Calculating status...
Currently Being Moderated
Aug 7, 2011 3:16 PM

A few days ago, Safari started giving me the error message that it can't load http://www.google.com because the server www.google.com could not be found.  I searched and read about every forum dating back to 2007 on how to fix this and all of the solutions did not work on my computer.

 

I am running an iMac with Core 2 Duo 2.66 GHz. 

The problem existed in Safari, Chrome, FireFox and Opera

The problem existed after I created and logged in to a new account

Emptied all caches, histories

Reset cable modem and Time Capsel several times in various orders

Reset IP addresses and changed Proxies on and off

Tried various DNS configurations

Downloaded and installed MacKeeper and wiped out Caches and unneccessary files

Ran virus scaner and only found one infected file (an .exe that I copied over from my PC years ago - it wouldn't run anyway)

Purchased and installed Lion

 

Always the same result, I can go to any website except ones that had "www.google" in them.  Then I ran across the host lookup command in termanal so did an internet search for host files for Mac.  I found this site "http://www.mactricksandtips.com/2009/02/editing-a-macs-hosts-file.html" that explains where this file is located.  I found the file and opened it in texteditor and it contained the following.

 

##

# Host Database

#

# localhost is used to configure the loopback interface

# when the system is booting.  Do not change this entry.

##

127.0.0.1          localhost

255.255.255.255          broadcasthost

::1             localhost

fe80::1%lo0          localhost

 

91.224.160.26 google.com

91.224.160.26 google.co.uk

91.224.160.26 google.com.au

91.224.160.26 google.ca

91.224.160.26 google.us

91.224.160.26 www.google.com

91.224.160.26 www.google.co.uk

91.224.160.26 www.google.com.au

91.224.160.26 www.google.ca

91.224.160.26 www.google.us

 

When I would type in the IP address, I would get the error message above.  So now the plot thickens, I could not modify the file because it was locked.  I had to use the "Get Info" option in order to give myself permission to edit the file.  Then had to change permissions on the /ect director and the /private directory before I could edit and save the file without all the google llines.  I closed Safari and re-opend and Bam, Google was back. 

 

The Host file is a system file with only the wheel and system being able to edit it. 

 

So the big question - what modified the file and why just the google sites?

iMac, Mac OS X (10.7)
  • rkaufmann87 Level 8 Level 8 (40,635 points)
    Currently Being Moderated
    Aug 7, 2011 3:21 PM (in response to CW4PWR)

    Sounds like an issue with your ISP. Have you reset your modem and if you are using a router have you reset it too?

  • rkaufmann87 Level 8 Level 8 (40,635 points)
    Currently Being Moderated
    Aug 7, 2011 4:27 PM (in response to CW4PWR)

    I've never heard of this type of problem but one thing you can try is resetting the DNS settings. I also use Comcast and found I had an issue with the DNS settings they use that created some connectivity issues. After resetting them the problem went away. Give it a shot:

     

    1. System preferences

    2. Network

    3. Click Advanced

    4. Click DNS tab

    5. Click + sign

    6. Add 208.67.222.222

    7. Click + sign

    8. Add 208.67.220.220

    9. Click OK.

    10. Exit System Preferences

     

    If you aren't familiar with what the DNS is here is an article from MacWorld. DNS Troubleshooting

  • rkaufmann87 Level 8 Level 8 (40,635 points)
    Currently Being Moderated
    Aug 7, 2011 6:33 PM (in response to CW4PWR)

    Your welcome.

     

    Can you give detailed instructions of how you did this, it may help someone down the line.

  • MadMacs0 Level 4 Level 4 (3,330 points)
    Currently Being Moderated
    Aug 7, 2011 10:43 PM (in response to CW4PWR)

    CW4PWR wrote:

     

    ##

    # Host Database

    #

    # localhost is used to configure the loopback interface

    # when the system is booting.  Do not change this entry.

    ##

    127.0.0.1          localhost

    255.255.255.255          broadcasthost

    ::1             localhost

    fe80::1%lo0          localhost

     

    91.224.160.26 google.com

    91.224.160.26 google.co.uk

    91.224.160.26 google.com.au

    91.224.160.26 google.ca

    91.224.160.26 google.us

    91.224.160.26 www.google.com

    91.224.160.26 www.google.co.uk

    91.224.160.26 www.google.com.au

    91.224.160.26 www.google.ca

    91.224.160.26 www.google.us

    You have been infected by Trojan:BASH/QHost.WB.  I was beginning to think this wasn't an actual threat, but apparently you found it by downloading and installing a fake FlashPlayer.

     

    See http://www.f-secure.com/weblog/archives/00002206.html

     

    Deleting all the 91.224.160.26 entries may fix it, and stay away from Google until you do.  As far as I know nothing bad has happened to anybody that visits that site yet, but once it's activated anything could happen.  If you have any idea where you got it that might help us get all the AV software up-to-date.

  • MadMacs0 Level 4 Level 4 (3,330 points)
    Currently Being Moderated
    Aug 8, 2011 1:40 AM (in response to MadMacs0)

    If you downloaded the file "FlashPlayer.pkg" mentioned in the f-secure blog and still have it you can do the community a big favor by uploading it to http://www.virustotal.com/.  Assuming there is no entry in the status column next to ClamAV then also upload it to http://cgi.clamav.net/sendvirus.cgi and in the description include the keyword "macos".

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.