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

How do I make those who connect to me via a shared internet connection use my /etc/hosts file? I was thinking something along the lines of creating a DNS server, but I was hoping maybe there is a simpler solution?

share|improve this question
Why dio you want to do this - a bit more info will help us to think what the solution is – Mark Feb 20 '13 at 17:16
up vote 3 down vote accepted

You will need to install a DNS server. If you need a DNS server that automatically synthesizes answers from the contents of /etc/hosts, use dnsmasq.

share|improve this answer

There's also Gas Mask that let you share some hosts through some file on the network, your users would have to install it and configure it to the right file.

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.