Can someone post the Snow Leopard host file?

Discussion in 'macOS' started by ubestbsteppin, Sep 12, 2009.

  1. ubestbsteppin macrumors regular

    Joined:
    May 23, 2008
    #1
    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.
     
  2. cmaier macrumors G3

    Joined:
    Jul 25, 2007
    Location:
    California
    #2
    ##
    # 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
     
  3. ubestbsteppin thread starter macrumors regular

    Joined:
    May 23, 2008
  4. RandomKamikaze macrumors 6502a

    RandomKamikaze

    Joined:
    Jan 8, 2009
    Location:
    UK
    #4
    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
     
  5. cmaier macrumors G3

    Joined:
    Jul 25, 2007
    Location:
    California
    #5
    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.
     
  6. ubestbsteppin thread starter macrumors regular

    Joined:
    May 23, 2008
    #6
    Interesting. Well changing the hosts file fixed my problem, phew.
     
  7. cjwj macrumors newbie

    Joined:
    Feb 3, 2009
    Location:
    Preston, UK
    #7
    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
     
  8. JGruber macrumors 6502

    Joined:
    Feb 13, 2006
    #8
    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.
     
  9. cjwj macrumors newbie

    Joined:
    Feb 3, 2009
    Location:
    Preston, UK
    #9
    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
     
  10. JGruber macrumors 6502

    Joined:
    Feb 13, 2006
    #10
    Type this - shift+command+G - it will bring up the Go To Folder box, type in /private/etc
     
  11. cjwj macrumors newbie

    Joined:
    Feb 3, 2009
    Location:
    Preston, UK
    #11
    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
     

Share This Page