Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 would like to set up a name server for my home network so that I can use my easily remembered names to point at my devices. I haven't played with DNS in over 7 years and honestly don't remember how to do this. Can anyone point me to a good "how to" or something of the like to get me started?

share|improve this question
up vote 3 down vote accepted

I would suggest using dnsmasq, as it will give you a two fold solution: dhcp server and dns proxy for your local network.

You might want to look at

Advantages of dnsmasq is that it will resolve dhcp names in its dns proxy, and simply use /etc/hosts for static ip you might have. It is much simpler than using a full bind9 server.

share|improve this answer
You may already be running dnsmasq by default. If you have a computer you call vince-computer try ping vince-computer.local. – John S Gruber Oct 12 '12 at 2:25

Well, if the network is really simple and static, you could just modify /etc/hosts on all devices to have lines like:  universe  foobar

If you have too many devices or they change too often, dnsmasq (available in the repository) provides you with either a DNS server or a DHCP server, or both. There is a rudimentary setup guide on community help wiki, and documentation on dnsmasq homepage.

share|improve this answer
Thank you. This was more help than I have gotten anywhere. – VinceBrowning Oct 12 '12 at 9:50

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.