Installing and Administering Internet Services
88 Chapter3
Configuring and Administering the BIND Name Service
Configuring a Primary Master Name Server
To Set the Default Domain Name
If you will be using an /etc/resolv.conf file on your host, configure the
default domain name with the search or domain keyword. See
“Configuring the Resolver to Query a Remote Name Server” on page
123. If you will not be using an /etc/resolv.conf file, follow these
steps:
1. Set the default domain name with the hostname command, by
appending the domain name to the host name, as in the following
example:
/usr/bin/hostname indigo.div.inc.com
Do not put a trailing dot at the end of the domain name.
2. Set the HOSTNAME variable in the /etc/rc.config.d/netconf file to
the same value, as in the following example:
HOSTNAME=indigo.div.inc.com
The BIND Configuration File
Starting with BIND 8.1.2, the BIND configuration file is
/etc/named.conf which is very flexible and allows you to specify a
number of different features. The configuration file in the previous
versions of BIND was /etc/named.boot. To migrate the named.boot
file to named.conf file, see “Migrating /etc/named.boot to
/etc/named.conf” on page 106.
The configuration file, /etc/named.conf consists of statements and
comments. Statements end with a semicolon. Many statements contain a
block of sub-statements, which are also terminated with a semicolon.
Comments can be given using the C syntax (with /* and */), the C++
syntax (where // starts the comment), and the shell syntax (where #
starts the comment).
The following statements are supported in /etc/named.conf:
• acl Statement
• include Statement
• key Statement
• logging Statement
• options Statement