Introduction
This chapter contains a collection of recipes that explores the task of handling domain names, domain resolution, and DNS queries by showing you the methods and approaches associated with building a caching-only nameserver with BIND; writing zone files for BIND; adding zones to BIND; deploying a local nameserver with dnsmasq; logging events with dnsmasq and combining this with logrotate; enabling domain name wildcard with dnsmasq; and hardening BIND with chroot and providing better security measures.