Title: Install and Configure Named
Course: CIS 208: Linux/UNIX III: Intermediate System Administration, Networking, and Security ~ For IGNITE Review > Section: Learning Modules

Install and Configure Named

On a Red Hat based system:

1. Run "yum install bind" to install bind along with the documentation and configuration files.  By default named will be configured to run a caching server providing services only to the localhost.
2. Since the default named.conf file is rather basic, copy the /usr/share/doc/bind*/samples/etc/named.con f file to overwrite it.  This will make it easier to implement views.
3. In the options section at the top, set up the listeners to listen to all IP addresses.
4. Try to start the service.  It will fail because the  ddns_key was not generated.  Since we will not use ddns, comment out the "key ddns_key" lines.
5. Try to start the service.  It will fail because zone files are missing.  For now, comment out all the lines for the "internal" and "external" views.  This will leave only the "localhost_resolver" view.
6. Test to ensure that the service starts without errors and that it is able to resolve correctly. When on the server, "host localhost localhost" should return 127.0.0.1.  When on another host on the subnet, "host localhost <ipaddr>" should return an error.
7. Using chkconfig, set the service to run automatically at boot.