DNS and BIND: Create a Caching Name Server

15 minutes
  • 5 Learning Objectives

About this Hands-on Lab

Creating a caching name server is the most basic BIND configuration. This configuration is the main building block for other more advanced BIND configurations. Students will learn to configure a caching name server and test name resolution with the `nslookup` command.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install the bind and bind-utils Packages
$ yum install -y bind bind-utils
Verify the named Configuration for localhost
$ cat /etc/named.conf
Check the named Configuration with the named-checkconf Command
$ named-checkconf
Start and Enable the named Service
$ systemctl start named
$ systemctl enable named
Test that Records are Returned for google.com Using the /etc/resolv/conf and the localhost Name Server Configurations
$ nslookup google.com
$ nslookup google.com localhost

Additional Resources

First, we'll install the bind and bind-utils packages. Then, verify the named configuration for localhost and check the configuration with named-checkconf. Finally, we'll start the named service and test name resolution using the nslookup command.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?