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


Changes: This is a point release primarily to fix a regression in version 2.48 that broke the --dhcp-script function. Anyone running 2.48 and needing this should upgrade to 2.49; other 2.48 installations need not bother.


Changes: The main addition in this release is additional support for the PXE protocol. Dnsmasq can now send boot menus to a PXE client and act as a fully-fledged PXE boot sever. There are also logging improvements and some minor bugfxes.


Changes: Bugs fixed include NetBSD 5.0 compatibility, DBus configuration, and network interface binding. Additional features include more flexible encapsulated DHCP options (for gPXE), better DHCP packet matching facilities, and IP address rewriting.


Changes: This release adds two frequently-requested features: ability to handle more than one DNS domain, and static DHCP address assignment to more than one MAC address (for laptops with both wired and wireless networking). There are also enhancements to the DBus interface and a (limited) facility to return CNAME DNS records.


Changes: This release fixes a major problem in 2.44 where the DNS function failed unless the --min-port flag was given.
- All comments
Recent commentsRe: 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 http://psydev.sourceforge.net/new/dynamic-dnsmasq/
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?
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!
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.
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.