Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and (optionally) DHCP to a small network. It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP/TFTP for network booting of diskless machines.
| Tags | Internet DNS |
|---|---|
| Licenses | GPL |
| Operating Systems | Mac OS X POSIX Linux BSD OpenBSD NetBSD FreeBSD |
| Implementation | C |
Recent releases


Release Notes: This release addresses a couple of issues that have surfaced with dnsmasq-2.58, which could cause problems at startup with IPv6 link-local addresses. One is a regression in dnsmasq, and the other stems from a change in the behaviour of bridge interfaces in recent Linux kernels.


Release Notes: The usual mix of bugfixes and feature enhancements. There are fixes for a couple of nasty TFTP bugs, so TFTP users should upgrade. Notable amongst the enhancements is support for Linux conntrack. Dnsmasq can now copy conntrack marks from incoming DNS queries to the upstream connections used to answer them. This feature could be useful for bandwidth accounting, captive portals, and the like. A similar feature has been implemented in Squid 2.2. There are also fixes for large (thousands of leases) DHCP systems and DHCP via relay.


Release Notes: This release fixes a couple of regressions in the previous release and adds support for the Android platform.


Release Notes: This release has some bugfixes, including a possible crash when --dhcp-script is in use. It also includes enhancements such as IPv6 TFTP support, Solaris zone support, and better DNSSEC support.


Release Notes: This release corrects a couple of crash bugs in release 2.53 and gets the version numbering straight (2.53 identified itself as 2.54, so there is no version 2.54).
Recent comments
13 Sep 2004 13:53
Re: little idea
although i inferred from dnsmasq's docs that you can update the dns to contain a record for a dhcp host based on the dhcp host's advertised name, i went ahead and threw together a perl script to act as a dynamic dns server. the benefit is in instances where you have a dial-up client that wants to keep a hostname in dnsmasq up-to-date with its current public IP. you can try it out at psydev.sourceforge.net...
12 Sep 2004 12:31
little idea
I was just thinking, it would be awesome if the ability to serve DNS addresses for local machines could be extended to do dynamic dns... that way a machine using dhcp's hostname/domain name could still be resolved from whatever other machine. Or is this already supported?
09 Dec 2002 14:53
It was good, it is excellent!
The author just added a new feature to the already excellent dnsmasq: now you can specify which nameservers are to be used for a particular domain!
This solved a problem when using the VPN of my company with my home connection.
Great piece of software: simple and efficient!
10 Jun 2002 13:41
Re: OpenBSD 2.8
>
> doesn't work on openbsd 2.8,sure looks
> nice though
>
Version 1.6 is reported as working with OpenBSD 2.8 out of the box. See the FAQ and config.h for instructions on correct compilation.
27 Feb 2002 10:17
Re: OpenBSD 2.8
> doesn't work on openbsd 2.8,sure looks
> nice though
If any openbsd users want to get in touch with me, it shouldn't be difficult to make it work.