Dnsmasq
Dnsmasq is a lightweight Domain Name System (DNS) forwarder and Dynamic Host Configuration Protocol (DHCP) server designed for small to medium-sized networks.
Platform availability
Available on 2 of 10 platforms
- Unraid
- TrueNAS (not listed)
- Umbrel (not listed)
- ZimaOS (not listed)
- Proxmox (not listed)
- Helm
- Mac (not listed)
- Windows (not listed)
- Linux (not listed)
- Any server (not listed)
Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.
54/100 Fair
- Maintained
- 48last commit 251 days ago
- Popular
- 52395 GitHub stars
- Easy to install
- 452 install platforms, install notes, Docker image
- Light to run
- No data
- Security check
- 75no serious findings
Based on 4 of 5 factors.
Availability: platform listings confirmed today
- GitHub stars
- 395
- Open issues
- 12
- Last commit
- 2026-03-15
- License
- GPL-2.0
- Activity
- stale
Checked yesterday - source: GitHub (imp/dnsmasq)
Resources & Compatibility
ARM (e.g. Raspberry Pi) is supported.
Checked 54 days ago - source: Docker Hub image tags and published docs
First-install notes
- Local names live in /etc/hosts Keep your local hostname-to-IP list in /etc/hosts, since dnsmasq reads it to answer for your own devices. If the file is missing or inaccurate, local names like your server or printer may not resolve. source
- Give devices fixed IPs with dhcp-host If a router, printer, or NAS needs the same address, add one dhcp-host line using its MAC address (the device's unique network address) or hostname. Without it, the device may get a different address and you may lose access to it. source
- Point dnsmasq to the right DNS server Use a server= line to tell dnsmasq which DNS server (the server that looks up names) to ask for a particular domain. If you forget it, names in that domain may fail to look up even though the rest of your network works. source
Fetched 53 days ago - each note links to its source
Variants
Alternatives (8)
- AdGuard Home - AdGuard Home is a self-hosted DNS server that blocks ads and trackers across your entire home network by re-routing tracking domains to a b…
- BIND - BIND is by far the most widely used DNS software on the Internet.
- NextDNS - NextDNS protects you from all kinds of security threats, blocks ads and trackers on websites and in apps and provides a safe and supervised…
- Technitium DNS Server - Technitium DNS Server is an open source tool that can be used as a personal local DNS server for privacy & security.
- Unbound - Unbound is a validating, recursive, and caching DNS resolver that you can self-host to run your own DNS server at home.
- YogaDNS - YogaDNS automatically intercepts DNS requests at the system level and allows you to process them over user-defined DNS servers using modern…
- coredns - CoreDNS is a flexible, plugin-based DNS server and forwarder that chains plugins for service discovery, metrics, query rewriting, and zone…
- hBlock - hBlock is a POSIX-compliant shell script, designed for Unix-like systems, that gets a list of domains that serve ads, tracking scripts and…
Checked 54 days ago - source: AlternativeTo
Common questions
How do I give a router, printer, or NAS a fixed IP address with Dnsmasq?
Add one dhcp-host line using the device's MAC address or hostname. Without this, the device may receive a different address and become harder to reach.
Why do local device names fail to resolve even though public DNS works?
Dnsmasq reads /etc/hosts to answer for your own devices. If that file is missing or inaccurate, local names like your server or printer may not resolve.
How do I point Dnsmasq at a specific upstream DNS server for a particular domain?
Add a domain name to the server specification. Dnsmasq will use that server only to find names in that particular domain.
Should I run Dnsmasq in Docker?
A community reply says Dnsmasq is small and architecturally simple, so running it bare metal with a config file can avoid extra overhead. The reply did not identify a Docker container and suggested that a compose file may be unnecessary overhead.
Answers sourced from dnsmasq.org, dnsmasq.org, dnsmasq.org, www.reddit.com
Community
- What DNS and DHCP solutions are you using? : r/selfhosted - Reddit (reddit)
- r/selfhosted on Reddit: Dnsmasq question: Selectively respond (or not ... (reddit)
Collected 48 days ago - public community threads