Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ubestbsteppin

macrumors regular
Original poster
May 23, 2008
127
20
So I've been having a lot of internet issues since clean installing leopard. My neighbor, who works for Verizon, came over to take a look and thought I was having some DNS issues. He edited the "host" file and now my internet connection seems even worse. I found instructions online on how to edit the host file, but could someone post what the host file is actually supposed to look like in Snow Leopard since I don't know what he changed? I still have a completely clean install of SL, no 3rd party apps yet. Thanks.
 
##
# 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
 
Next time, tell you friend to leave off! Only joking

Don't know why he edited the host file for DNS problems. What you actually wanna do is set some DNS servers on your Mac in Network Preferences.

I suggest OpenDNS for testing, I have never had problems with them
 
Next time, tell you friend to leave off! Only joking

Don't know why he edited the host file for DNS problems. What you actually wanna do is set some DNS servers on your Mac in Network Preferences.

I suggest OpenDNS for testing, I have never had problems with them

I've had one problem with opendns (but other than that I recommend it!) I use mlb.tv to stream baseball games to my machine. OpenDNS flagged doubleclick as spam and blocked them, which caused the mlb.tv to refuse to serve up games. I had to manually add doubleclick to my hosts file to get around it.
 
I've had one problem with opendns (but other than that I recommend it!) I use mlb.tv to stream baseball games to my machine. OpenDNS flagged doubleclick as spam and blocked them, which caused the mlb.tv to refuse to serve up games. I had to manually add doubleclick to my hosts file to get around it.

Interesting. Well changing the hosts file fixed my problem, phew.
 
modifying the hosts file

On a slightly different, if more basic, note, i can't even seem to modify my host file.
I've tried to locate it using spotlight - that doesn't work - so i've used terminal and typed in: sudo nano etc/hosts which finds the pane, but when i type in the mods, the info appears at the top of the pane and not where i want it to go, and needless to say it doesn't save the info.
Any suggestions please?
cjwj
Macbook pro 2.5GHz running 10.6
 
go to folder, type /private/etc
locate hosts file, drag it out to the desktop, make changes and save file, drag it back into /private/etc and enter your admin password.
Done.
 
hosts

Thanks for the really quick reply, but where am i looking for this file?
Spotlight shows nothing and i've just spent the last 15 mins rooting through my hard disk and can't find anything. is it in utilities? library? system?
Sorry to be a dork, but I don't even seem to be able to get to the starting line on this one!
cjwj
 
Thanks for the really quick reply, but where am i looking for this file?
Spotlight shows nothing and i've just spent the last 15 mins rooting through my hard disk and can't find anything. is it in utilities? library? system?
Sorry to be a dork, but I don't even seem to be able to get to the starting line on this one!
cjwj

Type this - shift+command+G - it will bring up the Go To Folder box, type in /private/etc
 
just found it using finder (duurrr!) together with a number of files i've probably accidentally created by mucking around with terminal. i guess id better delete the new (incorrect ones) i've mistakenly created and get down to the business of amending the right one. thanks
cjwj
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.