Linux Server How ToHow To Setup, Configure, Manage and Secure a Linux Server |
|
Home Which Linux Distribution? Linux Server Hardware Linux Server Security Linux Web Server - Apache Linux DNS Server - Bind Introduction to Bind Install Bind With Apt-get Install Bind From Source Bind Compile Options Configuring Bind Caching DNS Config Authoritative DNS Config Zone Files Download New Named.Root Linux DHCP Server - DHCPD Linux Mail Server - Sendmail LDP How To's About This Site |
Linux Server How To - How to Configure an Authoritative NameserverNamed.conf for an Authoritative Name ServerAn authoritative name server configuration includes specific zones for which it is authoritive. The named.conf for an authoritative name server does not differ a great deal from a caching name server named.conf. To avoid repetition on this web site we ask that you start with the basic configuration for a caching name server as described on Caching DNS Config taking specific care to include the named.local and localhost.zone files in your working directory. It is a good idea to include the named.root hint file as well although it is quite possible to turn caching and recursive queries off resulting in a nameserver that will only answer queries for zones that it is authoritative for.Our example /etc/named.conf for an authoritative nameserver is shown below. Please bear in mind that anything to the right of a // is considered to be a comment and is ignored by named.
Our example.com zone file is as below. This can be considered a reasonably good example as it contains many common elements of a production zone file including Start of Authority Record, NS records, MX records and a number of A records and CNAME's for various hosts within the example.com zone. For a fuller explanation of the anatomy of a zone file please consider reading the Zone Files page of Linux Server How To.
Slave Name Server ConfigurationA slave name server or secondary name server loads the zone file contents from another server, typically the primary master name server, through a replication process known as a zone transfer. This means that on each slave server there are no zone files to maintain as they are maintained and updated automatically. The slave server(s) simply need to know they are authoritative for the domain and the IP address of the name server they will transfer the zone from. This is achieved through named.conf.
We can see the stanza in named.conf for our fictitious domain exampletoo.com above. The zone statement specifies the zone as exampletoo.com. The type statement makes BIND aware that it is a slave for this domain and the file statement tells BIND to store the transfered zone in the file exampletoo.com.bk which it will create automatically in the working directory. Finally, the master is defined as 192.168.203.26 and this tells BIND where to transfer the zone from. |
| © 2009 www.linuxserverhowto.com |