Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 2 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:

http://stackoverflow.com/a/5007150/62653

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

http://niggazpullintriggaz.blogspot.com.au/2011/11/how-i-managed-to-edit-etchosts-without.html

share|improve this answer
add comment

Your Answer

 
discard

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.