Configure Apache DNS Server


The Basic three(3) Server Configuration type :


master server 

   loads the domain info directly, from a local disk file, maintained by the domain admin

slave server 

   backup of the master server, it forwards info back to the master server

caching server 

   get's info from other named servers, used to reduce loads or traffic on the network



Setup named configuration


  • option statements
    • defines the working directory, server, search nature, etc.,
    • ex.: 

                   options{

                          directory "/var/name";

                          forwarders { 172.16.5.1; 172.16.12.1; }

                   }

  • zone statements
    • zone "foobirds.org" in {

                                  type master;

                                  file "foobirds.hosts";

                                  check-names fail;

                                  notify yes;

                                  also-notify { 172.16.80.3; } ;

                                  allow-update { localhost; } ;

                     }

    • master type - means that, "foobirds.org", this host is master for this domain
    • "foobirds.host" - file, that is created by the domain admin
    • check-name fail - means If an invalid entry is made, it would abort the process
    • notify yes - send Error message, IF Error did occured
    • allow-update - set to localhost, which means that this is the domain server for "foobirds.org", and this unit can make the changes only

So far, the configuration of the master server is the same as any other server - you create a configuration file.   A hints file and a localhost reverse zone file.


The difference comes from the fact that you must also create the real domain database file.   The foobirds.host and the 172.16.reverse file in our example can not be downloaded from a repository