Adding Host Entries in OS X

In OS X you don’t have a [visible] ../etc/hosts file to edit so you’ll [either need to use pico within the terminal, unhide your files or] use NetInfo Manager which is in your Utilities folder. To add a host entry, you have to click on the category labeled ‘machines’ which will then display a list of the know hosts for your computer. The easiest thing to do is to make a copy of an existing entry and then modify the name and IP address for the copy to match that of the host you’re trying to add.

About the Author, Dan Cameron:

I'm the owner and solution engineer at Sprout Venture, a web solutions company that specializes in web development including WordPress.

I started my first blog in 2003 and transitioned to WordPress in 2004. Since moving to WordPress I've written a few plugins and themes for public consumption. Lately I'm busy engineering/building/coding and have only been able to share a few code snippets.

If you're in need of some web development, web design or custom WordPress plugins and/or themes contact me, I'll be happy to discuss it with you.

Read More »

  • JaredB
    Ah, I see. Although that kind of makes my comment not make sense anymore, though. Oh well.
  • Nate
    I believe it's the same in nextstep.
  • Dan
    There you go.
  • Dan
    I was a little misleading but it's great to see you in this form.

    There is a host file, it's located in the default location, ../etc/host . But like most of the Unix config files it's hidden.

    Maybe I'll go ahead and change the post because I knew $pico ../etc.host worked fine in the terminal.
  • JaredB
    Can you really not edit a regular hosts text file?

    If so, this is the perfect example of one aspect of Apple I really don't like. They decide how things should be done (because they think it's easier or whatever), and then not only allow you to do it (which is fine) but try to prevent you from doing it any way but theirs.

    This is especially surprising since when they turned NextStep into OSX it probably had a hosts file and they would have had to take it out.

    If I'm wrong about all that, my bad, since I did no research on it - just going off what you said above. But, if it's true - wow, classic Apple.
blog comments powered by Disqus