Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Is this only through command line, or do you require this functionality through a browser/application too? – Aaron Lake May 1 '12 at 3:41
Only on the command line is fine for my purposes. – Matt K May 1 '12 at 3:51
up vote 3 down vote accepted

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).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.