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 ...

Get CentOS 6 Linux Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.