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

Configure the Internal View

Perform the following on the master server:

1. Copy the file /var/named/named.localhost to /var/named/mydomain.com.internal, replacing mydomain.com with the actual domain name.
2. Change the "rname.invalid." to your actual email address, replacing the "@" with a dot and adding a dot at the end.  For example, "catmiller@wccnet.edu" would become "catmiller.wccnet.edu.".
3. Change the serial number to a 10 digit number containing the year, month, day and version.  For example, the first version of the file created on Oct 28, 2014 would be 2014102800.
4. Change the NS record to be the hostname of the first dns server.  Add more records for extra servers if needed.  Notice that if you use the Fully Qualified Domain Name (FQDN) you must follow it with a trailing dot.  So you could use "server1" or "server1.mydomain.com.", but not "server1.mydomain.com".
5. Change the A record from 127.0.0.1 to the internal IP address to be used for the domain.  Typically this will be the same address used for the www record.  Either delete or replace the AAAA record as needed.
6. Now add all the remaining records.  Since this is the internal view, use internal IP addresses. Be sure to include an A record for each NS and MX host.
7. Edit the /etc/named.conf file and uncomment the section for the internal view.  Comment the three sample zone files, then use the "my.internal.zone" as a template to create the new internal zone using the file you created above.
8. Restart the named service and ensure that it resolves correctly both on the server and on another host on the network.  By default recursion is allowed, so clients on the network should be able to resolve google.com as well as hosts for the new zone.  Use either host or nslookup and specify this server in the command line when testing.  For example "nslookup www.mydomain.com 172.18.1.1".