Hosts File

Discussion in 'OT Technology' started by revolutionary, Oct 21, 2008.

  1. revolutionary

    revolutionary New Member

    Joined:
    Oct 13, 2008
    Messages:
    1,274
    Likes Received:
    0
    Location:
    Winnipeg, MB
    Does anyone know where the hosts file is located in Mac OS X 10.5.5? I need to update this bad boy but can't seem to find it. Thanks.
     
  2. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    /etc/hosts
     
  3. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    you will need to sudo
     
  4. mobbarley

    mobbarley Active Member

    Joined:
    Mar 4, 2005
    Messages:
    9,256
    Likes Received:
    2
    Location:
    Sydney
    so open up terminal and:

    sudo pico /etc/hosts
    <password>
    arrow down to the next free line
    <ip> <hostname>
    <ctrl+x>
    y

    done.
     

Share This Page