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

Cannot connect to Google Server

Can anyone help me figure out why I cannot connect to Google? I'm on a MacBook Pro, running 10.6.8.


I get the error messages:

  • "Unable to connect: Firefox can't establish a connection to the server at www.google.com."
  • "Safari can't connect to the server"


What's going on? YouTube is fine, Bing is fine, everything else works. Could surfing job search websites have given me some virus?


Thanks in advance, Valerie

MacBook Pro, Mac OS X (10.6.7)

Posted on Jan 16, 2012 5:51 PM

Reply
Question marked as Best reply

Posted on Jan 16, 2012 6:01 PM

Please launch the Network Utility application by entering the first few letters of its name in a Spotlight search. Select the "Lookup" tab and enter "www.google.com" (without the quotes) in the address field. Press return. Post the output -- the text, please, not a screenshot. Then select the "Ping" tab and do the same.

5 replies
Question marked as Best reply

Jan 16, 2012 6:01 PM in response to valeriefromvirginia beach

Please launch the Network Utility application by entering the first few letters of its name in a Spotlight search. Select the "Lookup" tab and enter "www.google.com" (without the quotes) in the address field. Press return. Post the output -- the text, please, not a screenshot. Then select the "Ping" tab and do the same.

Jan 16, 2012 7:47 PM in response to Linc Davis

Thanks--


here's the text from the lookup tab:


Lookup has started…



; <<>> DiG 9.6-ESV-R4-P3 <<>> www.google.com +multiline +nocomments +nocmd +noquestion +nostats +search

;; global options: +cmd

www.google.com. 344666 IN CNAME www.l.google.com.

www.l.google.com. 246 IN A 74.125.115.104

www.l.google.com. 246 IN A 74.125.115.106

www.l.google.com. 246 IN A 74.125.115.105

www.l.google.com. 246 IN A 74.125.115.103

www.l.google.com. 246 IN A 74.125.115.147

www.l.google.com. 246 IN A 74.125.115.99


Here's the response from the ping tab:


Ping has started…


PING www.l.google.com (17.172.116.37): 56 data bytes

Request timeout for icmp_seq 0

Request timeout for icmp_seq 1

Request timeout for icmp_seq 2

Request timeout for icmp_seq 3

Request timeout for icmp_seq 4

Request timeout for icmp_seq 5

Request timeout for icmp_seq 6

Request timeout for icmp_seq 7

Request timeout for icmp_seq 8


--- www.l.google.com ping statistics ---

10 packets transmitted, 0 packets received, 100.0% packet loss

Jan 16, 2012 8:02 PM in response to valeriefromvirginia beach

It looks like something or someone has modified your /etc/hosts file.


By far the easiest way to fix the hosts file is to restore it from a Time Machine (or other) backup that predates the modification. If that's not possible, then do the following.


Back up all data if you haven’t already done so. Before proceeding, you must be sure you can restore your system to the state it’s in now. If you skip this step, no one but you will be responsible for the consequences.


These instructions must be carried out in an administrator account, if you have more than one user account.


Select "Go to Folder..." from the Finder menu bar. In the text box, enter "/etc" (without the quotes.) A Finder window will open on the "etc" folder.


Double-click the file named "hosts" in that folder. It should open in TextEdit. At the top of the file, you should see something like this:


##

# 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


Below that, you'll see some other lines. Delete everything below the last line shown above. Make sure you scroll all the way to the bottom of the document. In Lion, scroll bars are hidden by default until you actually start scrolling, so you may not realize that you’re not seeing the whole document.


Don’t try to save; you won't be able to. Instead, duplicate (in Lion) or select "Save As..." from the file menu (pre-Lion.) In the Save dialog, make the name of the file “hosts” and deselect the option to add a ".txt" extension to the file name, if it's selected. Save the file to your Desktop. You should now have a file named exactly "hosts" with no extension on your Desktop, having the contents shown above.


Now launch the Terminal application, for instance by entering the first few letters of its name in a Spotlight search. Copy or drag -- do not type -- the line of text below into the window, and press return:


sudo sh -c ' cat Desktop/hosts > /etc/hosts '


You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. Confirm. Quit Terminal.


Do not type anything into the Terminal window except your password.


That will fix your hosts file. You can now close the “etc” folder and delete the hosts file on your Desktop. Unless you know how the file was modified, I can’t guarantee that no other damage has been done to your system.

Jan 16, 2012 8:12 PM in response to Linc Davis

Thanks again. This sounds serious- 😟 I will do the restore from Carbonite tomorrow as that looks easiest. Should I be concerned enough to do it right now or can it wait? Is there cumulative damage if I don't restore right now?


I just don't know exactly when this started happening today, and I'd hate to lose my documents or mail from since this started. I'll e-mail the most important documents to another computer . . .


Do you think this is contagious? Wonder how it happened, don't want it to happen again. I did try to get to Comcast.com today to look up jobs and got a warning page. I didn't proceed but did go in through a search engine directly to their career site rather than in the "front door." Wonder if that was it.


Thanks so much for your help.


Valerie

Cannot connect to Google Server

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