Results 1 to 4 of 4
  1. #1

    Member Since
    Oct 01, 2004
    What is the OS X equal to Windows HOSTS file?
    For those that don't know about the Window HOSTS file, it allows you to set the IP address that goes with a host name. For example the IP address for the host name is So if you didn't want your computer to be able to access mac-forums you could redirect that host name to go to some other IP, like which would lead it no where. Anyone know how to do that in OS X?

  2. #2
    /etc/hosts, maybe?

  3. #3

    rman's Avatar
    Member Since
    Dec 24, 2002
    Los Angeles, California
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Like meltbanana314 suggested you would find it in /etc. but I think in OS X it is located in /private/etc.

    Run the terminal application and execute the following line:

    sudo find / -name hosts -exec ls -l {} \;

    The above should give you the full path (location) of the host file.
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  4. #4

    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Mount Vernon, WA
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    Yeah it's found in /etc/hosts or /private/etc/hosts they both point to the same file.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. hosts file
    By ankhseeker in forum OS X - Operating System
    Replies: 10
    Last Post: 12-18-2014, 12:54 PM
  2. etc/hosts file gone . .
    By wales321 in forum Switcher Hangout
    Replies: 2
    Last Post: 11-14-2012, 10:00 AM
  3. hosts file
    By afcbob in forum OS X - Operating System
    Replies: 2
    Last Post: 11-29-2009, 01:21 PM
  4. Hosts File
    By traveler09 in forum OS X - Operating System
    Replies: 3
    Last Post: 07-29-2009, 08:59 AM
  5. Where is the hosts file?
    By Stoomie in forum OS X - Operating System
    Replies: 3
    Last Post: 08-10-2004, 04:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts