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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.