dnsmasq – DNS and DHCP for the rest of us

dnsmasq site

So, you’ve got that old dust-covered computer set up with a UNIX clone, got it to work as a router, figured out the syntax for the packet filter (firewall), and maybe even got a DHCP server working. What next?

How about a DNS setup that works perfectly with any version of Windows (not Multicast DNS), doesn’t take a paid sysadmin to set up and maintain, and works as both a forwarding proxy and a local DNS server?

For those who don’t get out much, I’m talking about dnsmasq. Since the page is a little verbose, I’ll highlight the (apparently) unique things it does:

  • Automatically reads your ISP’s DNS servers out of /etc/resolv.conf when functioning as a DNS cache.
  • Setting up custom DNS entries for inside your LAN is as simple as adding them to the /etc/hosts file
  • You can specify more than one /etc/hosts file so that it’s easy to drop in new versions of the ad-blocking hosts file. Heck, if you trust the site, you could make it automatic using a simple wget cronjob.
  • DNS and DHCP in one tool, and all the associated features. Most notably, it can automatically add DNS entries for machines as they arrive. Optionally, using whatever name the machines ask for.
  • If you’re on dial-up and the connection is down, DNS lookups time out immediately.

There are more features, but they’re things other DNS or DHCP servers can do. I just wish I’d found this thing sooner.

As a side-note, if your My Network Places isn’t working properly, chances are you don’t have a proper WINS setup. Just run a copy of Samba and set it’s WINS server up as the domain master browser. Then you’ll really have a network where you just plug things in and they work.

CC BY-SA 4.0 dnsmasq – DNS and DHCP for the rest of us by Stephan Sokolow is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

This entry was posted in Geek Stuff. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution under the same terms as the associated post.

All comments are moderated. If your comment is generic enough to apply to any post, it will be assumed to be spam. Borderline comments will have their URL field erased before being approved.