What is dnsmasq?
The following
Debian Wiki page describes the dnsmasq package as follows:
Disclaimer: VMware is not responsible for the reliability of any data, opinions, advice, or statements made on third-party websites. Inclusion of such links does not imply that VMware endorses, recommends, or accepts any responsibility for the content of such sites.
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.
The dnsmasq subsystem works as follows:
- The dnsmasq package accepts DNS queries.
- The dnsmasq package then either answers the DNS queries from its small, local cache or forwards them to a real, recursive, DNS server.
- The dnsmasq package also loads the contents of /etc/hosts so that local hostnames which do not appear in the global DNS can be resolved and also answers DNS queries for DHCP configured hosts. The dnsmasq package can thus act as the authoritative DNS server for one or more domains, allowing local names to appear in the global DNS.