Hosts file ?!?! HELP ME PLEASE!

Discussion in 'macOS' started by dontlosetouch, Apr 8, 2009.

  1. dontlosetouch macrumors member

    Joined:
    Jul 27, 2006
    #1
    Right due to their site going balls up I can't browse the punktastic.com/forums

    They've got back to me but I've no idea how to do all of this, bloody confusing!

    If anyone can help it'd be massively appreciated.
     
  2. dcubed20 macrumors member

    Joined:
    Jan 21, 2008
    #2
    Open up Terminal and type

    sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts
     
  3. Queso macrumors G4

    Joined:
    Mar 4, 2006
    #3
    The hosts file is, in layman's terms, like a static list of DNS host entries. Your computer doesn't understand sitenames such as www.macrumors.com etc, so it has to have a way to translate the name into a number.

    Normally DNS performs this role, but it looks as if someone has accidentally removed punktastic.com's address record off the Internet's DNS database. Until it reappears you can put a manual name-to-address translation in your hosts file, so that your computer knows where to find punktastic.com links.

    BTW, if you're trying to do this on OSX you open the file /etc/hosts in TextEdit. The entry they've listed is the same. Just follow the format of the examples already in the file and you can't go wrong.
     
  4. dontlosetouch thread starter macrumors member

    Joined:
    Jul 27, 2006
    #4
    Arrrgh, accidentally deleted TextEdit awhile back! Any alternative?
     
  5. dcubed20 macrumors member

    Joined:
    Jan 21, 2008
    #5
    use nano, it's terminal-based, but gets the job done

    sudo nano /etc/hosts

    you'll have to use keyboard commands to save and quit: control-w saves, and control-q quits. CONTROL not command.
     
  6. dontlosetouch thread starter macrumors member

    Joined:
    Jul 27, 2006
    #6
    Does the attachment below look right?!?!
     

    Attached Files:

  7. dontlosetouch thread starter macrumors member

    Joined:
    Jul 27, 2006
  8. sidewinder macrumors 68020

    sidewinder

    Joined:
    Dec 10, 2008
    Location:
    Northern California
    #8
    It would help if read the screen....CTRL-O is what writes out the file....

    S-
     
  9. dontlosetouch thread starter macrumors member

    Joined:
    Jul 27, 2006
    #9
    Right, then I get these options to choose from?

    ^G Get Help M-D DOS Format M-A Append M-B Backup File
    ^T To Files M-O Mac Format M-P Prepend ^C Cancel
     
  10. sidewinder macrumors 68020

    sidewinder

    Joined:
    Dec 10, 2008
    Location:
    Northern California
    #10
    You shouldn't be using a computer with a command line interface.....

    S-
     

Share This Page