Home Menu

DNS Administration


Contents


Name Services


Name Services

Using linuxconf

DNS Configuration


Setting Up a DNS Server

In order to set up your own DNS server, you need to make sure that you don't create problems for anyone else, so check with your domain administrator. There are 3 types of DNS servers - caching only, secondary and primary. A caching server caches the DNS name tables, but does not provide authoritative responses for any domain. Primary name servers and secondary name servers are registered as authoritative for a particular zone, which means some domain. There is a primary and secondary nameserver registered for montana.edu, and a primary and secondary for cs.montana.edu. In addition, there can be as many caching nameservers as you want for any zone and they are not registered.

For example,

Primary DNS servers have hard-coded tables of name-address mappings that have to be kept up to date. Secondary servers get their tables from the primary servers. Caching only servers get their's by remembering the addresses they've looked up.

Running named

rndc

rndc (Remote Name Daemon Controller) is a service that allows control of the the behavior of the name server. We will discuss it more later, but the name does appear in the configuration of named. Without rndc many maintenance tasks would have to be carried out manually. rndc replaces ndc but does not have all the functionality at this point.

Configuring named.conf

The DNS Database Files (Zone Files)

The zone files for DNS are composed of a set of records which provide a variety of information for the name server.

The order of the records in the file is SOA records, then NS records then any other necessary records.


DNS Configuration Example

Lab Machine Example

Configure one of the hosts in the lab to be the master name server for a zone named csnet.org that contains all the lab systems.

y2k Domain Example


DNS Utilities

  • rndc - name daemon control program
  • nslookup
  • dig


    Assignment

    Due:
    1. Here are some prototypical files that you might need to set up a system.
    2. Set up the files to make your host a slave name server for the domain that consists of the machines in EPS 259. The ip addresses are 153.90.199.101 - 153.90.199.122. The domain name is csnet.montana.edu, which includes some other IP's as well, but you can ignore that. At this point, don't start named.
    3. Connect your slave server to 153.90.192.44 as the master server.
    4. Set up your system to be the master server for your own little domain, call it cs409xx, where xx is the number of your machine. For example,

                   zone "cs409xx.montana.edu" {
                      type master;
                      file "cs40988.db";
                   }; 
                   

      In this domain, you should have only your machine and you can give it any name you want within that domain. For example, slowerthandirt.cs40988.montana.edu. You could other addresses in there as long as no other host lists you as a server. Then put your own machine in resolv.conf as a name server. Now, you should be able to do an nslookup on your host (slowerthandirt.cs40988.montana.edu).


    Home Menu