Dnsmasq provides DNS, DHCP and network boot services for small networks. It is designed to run with modest resource requirements, making it suitable for routers, firewalls, wireless access points and other systems that provide network infrastructure.
Its DNS functionality acts primarily as a caching and forwarding resolver. Local clients submit DNS queries to Dnsmasq, which answers using locally configured information or forwards requests to upstream name servers. Frequently requested answers can be cached to reduce repeated lookups.
Dnsmasq also integrates DNS with DHCP, allowing clients that receive network addresses to become accessible by hostname. This is useful for networks where devices regularly join, leave or change addresses. Its DHCP and network boot functions can operate alongside the DNS service, providing a compact alternative to running separate applications for each network function.
This is free and open source software.
Key Features
- Forward DNS queries to upstream resolvers and cache frequently requested responses.
- Resolve local hostnames using hosts files, DHCP leases and configured DNS records.
- Support DNSSEC validation of responses received from upstream servers.
- Direct specified domains to different upstream DNS servers.
- Provide limited authoritative DNS service for configured zones.
- Offer DHCPv4 and DHCPv6 services with static and dynamic address allocation.
- Associate DHCP clients with hostnames for automatic local DNS resolution.
- Support BOOTP and PXE network boot services.
- Include a read-only TFTP server for distributing network boot files.
- Provide IPv6 router advertisements for host address configuration.
- Support stateless DHCPv6 and IPv6 DNS configuration options.
- Allow individual subsystems to be enabled or disabled as required.
- Cross-platform support – runs on Linux, BSD and macOS.
Website: thekelleys.org.uk/dnsmasq
Support:
Developer: Simon Kelley
License: GNU General Public License v2.0 or GNU General Public License v3.0
Dnsmasq is written in C. Learn C with our recommended free books and free tutorials.
Related Software
| DNS Servers | |
|---|---|
| CoreDNS | DNS server that chains plugins |
| BIND | Flexible, full-featured DNS system |
| PowerDNS | Authoritative server, the Recursor, and Dnsdist |
| NSD | NLnet Labs Name Server Daemon |
| Technitium | Self host a DNS server for privacy and security |
| SmartDNS | Local DNS server that accepts DNS query requests from local clients |
| Unbound | Validating, recursive, caching DNS resolver |
| Hickory | Rust-based DNS client, server and resolver |
| YADIFA | Lightweight authoritative Name Server with DNSSEC capabilities |
| Knot DNS | High-performance authoritative-only DNS server |
| gdnsd | Authoritative-only DNS server |
| Dnsmasq | Network infrastructure: DNS, DHCP, router advertisement and network boot |
| acme-dns | Simplified DNS server with a RESTful HTTP API |
| encrypted-dns | Modern encrypted DNS server |
| MaraDNS | Small DNS server |
| aardvark-dns | Authoritative DNS server for A/AAAA container records |
| FDNS | Encrypted DNS proxy designed for small networks and Linux desktops |
| tinydns | Tiny DNS server with simple JSON config |
| pkdns | DNS server resolving pkarr self-sovereign domains |
| dprox | Lightweight DNS proxy server |
| PopuraDNS | Simple DNS server with decentralized domain names support |
| pdnsd | DNS server designed for local caching of DNS information |
| dnrs | DNS server written in rust |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.