Installing and Administering Internet Services
Chapter 3 105
Configuring and Administering the BIND Name Service
Configuring a Primary Master Name Server
zone Statement
The zone statement in the /etc/named.conf file is used to define a zone.
It declares the zone as one of four types: master, slave, stub, hint
• master-- This is the master copy of the data in a zone.
• slave-- A slave zone is a replica of a master zone. The master list
specifies one or more IP addresses that the slave contacts to update
its copy of the zone. If file is specified, then the replica will be written
to the file specified. Use of file is recommended, since it often speeds
server startup and eliminates a needless waste of bandwidth.
• stub-- A stub zone is like a slave zone, except that it replicates only
the name server records of a master zone instead of the entire zone.
• hint-- The initial set of root name servers is specified using a hint
zone. When the server starts up, it uses the root hints to find a root
nameserver and gets the most recent list of root name servers.
Specifying Access Limitations
Specify any access limitations for the zone in the zone statement. Three
types of access can be controlled: updates, queries, and transfers. The
access control can be specified globally through the options statement.
zone Statement Syntax
The syntax to use for zone statements is as follows:
zone domain_name [ ( in | hs | hesiod | chaos ) ] {
type master;
file path_name;
[ check-names ( warn | fail | ignore ); ]
[ allow-update { address_match_list }; ]
[ allow-query { address_match_list }; ]
[ allow-transfer { address_match_list }; ]
[ notify yes_or_no; ]
[ also-notify { ip_addr; [ ip_addr; ... ] };
};
zone domain_name [ ( in | hs | hesiod | chaos ) ] {
type ( slave | stub );
[ file path_name; ]
masters { ip_addr; [ ip_addr; ... ] };
[ check-names ( warn | fail | ignore ); ]
[ allow-update { address_match_list }; ]
[ allow-query { address_match_list }; ]