Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 460 #486
i
i
i
i
i
i
i
i
21.7.2 The Configuration File /etc/named.conf
All the settings for the BIND name server itself are stored in the file
/etc/named.conf. However, the zone data for the domains to handle,
consisting of the host names, IP addresses, and so on, are stored in separate
files in the /var/lib/named directory. The details of this are described
further below.
/etc/named.conf is roughly divided into two areas. One is the options
section for general settings and the other consists of zone entries for the in-
dividual domains. A logging section and acl (access control list) entries
are optional. Comment lines begin with a “#” sign or “//”. A minimalistic
/etc/named.conf is shown in Example 21.11.
Example 21.11: A Basic /etc/named.conf
options {
directory "/var/lib/named";
forwarders { 10.0.0.1; };
notify no;
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "." in {
type hint;
file "root.hint";
};
Note
Further Information on BIND
Refer to /usr/share/doc/packages/bind/README.SuSE
for further up-to-date information on BIND in SUSE LINUX.
Note
460 21.7. DNS — Domain Name System