I'm working on an OS X 10.6.8 machine, for which I do not have superuser privileges.

I'd like to imitate the effect of adding an entry to the hosts file, i.e. have a certain domain resolve to a certain ip.

Is it possible to add configuration to my home directory to achieve this? Is there any other way to do this?

  • Is this only through command line, or do you require this functionality through a browser/application too?
    – Aaron Lake
    Commented May 1, 2012 at 3:41
  • Only on the command line is fine for my purposes.
    – Matt K
    Commented May 1, 2012 at 3:51

1 Answer 1


unfortunately the answer is no. Here's another answer to a very similar question. It's not the same question, but the answer is the same:


As a side note, you might be interested in this blog post. It won't solve your problem, but is quite interesting nonetheless (the domain name for this address, and the blog title is a bit unfortunate, but it is a genuine blog entry on cocoa dev).


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .