Deploying a local nameserver with dnsmasq
In this recipe we will learn how to deploy a local nameserver with dnsmasq.
Dnsmasq is designed for a smaller network that loosely consists of no more than 1000 computers. It is often used as a domain name server, as a NAT forwarder, or as an alternative to many common DHCP servers. Dnsmasq isn't BIND—and it isn't intended to be—but this lightweight package is an exceptional alternative for those who would prefer a fast and capable solution that is a lot simpler to configure and maintain.
Getting ready
To complete this recipe you will require a working installation of the CentOS 6 operating system with root privileges, a static IP address, and a console-based text editor of your choice. An Internet connection will be required to download additional packages.
If you are running a firewall, you will need to confirm that the firewall has been disabled, removed, or the appropriate ports are open. Similarly, if you are running SELinux, then you should confirm...