From Wikipedia, the free encyclopedia
Jump to: navigation, search
Dnsmasq logo
Developer(s) Simon Kelley
Initial release 2001; 16 years ago (2001)
Preview release 2.77[1] (1 June 2017 (2017-06-01)) [±]
Repository thekelleys.org.uk/dnsmasq.git
Development status Active
Written in C[2]
Operating system Unix-like
Type DNS server
License GNU General Public License Version 2 or 3[3]
Website www.thekelleys.org.uk/dnsmasq/doc.html

Dnsmasq is a Domain Name System (DNS) forwarder and Dynamic Host Configuration Protocol (DHCP) server for small computer networks, created as free software. Dnsmasq has low requirements for system resources,[4][5] can run on Linux, BSDs, Android and OS X, and is included in most Linux distributions.

Dnsmasq's DHCP server supports static and dynamic DHCP leases, multiple networks and IP address ranges. The DHCP server integrates with the DNS server and allows local machines with DHCP-allocated addresses to appear in the DNS. Dnsmasq caches DNS records, reducing the load on upstream nameservers and improving performance, and can be configured to automatically pick up the addresses of its upstream servers.

This also means that records added to your local /etc/hosts file with the format " annoyingsite.com" can be used to prevent references to "annoyingsite.com" from being resolved by your browser. This can quickly evolve to a local adblocker when combined with adblocking site list providers such as mvps.org[6]. If done on your router, you can efficiently remove advertising content for an entire household or company.

Dnsmasq supports modern Internet standards such as IPv6 and DNSSEC, network booting with support for BOOTP, PXE and TFTP and also Lua scripting.

Some Internet service-providers rewrite the NXDOMAIN (domain does not exist) responses from DNS servers, which forces web browsers to a search page whenever a user attempts to browse to a domain that does not exist. Dnsmasq can filter out these "bogus" NXDOMAIN records, preventing this potentially unwanted behavior.

See also[edit]


  1. ^ Kelley, Simon (1 June 2017). "Announce: dnsmasq-2.77". Dnsmasq-discuss (Mailing list). Retrieved 14 June 2017. 
  2. ^ "Dnsmasq". Open Hub. Black Duck Software. Retrieved 19 November 2014. 
  3. ^ "Dnsmasq". Official Website. Retrieved 19 November 2014. 
  4. ^ "HowTo dnsmasq". Debian Wiki. Retrieved 19 November 2014. 
  5. ^ "dnsmasq". Arch Linux Wiki. Retrieved 19 November 2014. 
  6. ^ mvps.org

External links[edit]