Configuring and Managing MPE/iX Internet Services (August 2002)
Appendix B
BIND 8 Configuration File
218
* versions of BIND prior to 8.1 generate
* this format for outbound zone
* and require it on inbound transfers.
*
* many-answers As many RRs as will fit are put into
* each DNS message. This format is
* the most efficient, but is only known
* to work with BIND 8. Patches to
* BIND 4.9.5 named-xfer that enable it
* to understand ‘many-answers’ will be
* available.
*
* If you are going to be doing zone transfers to older servers, you
* shouldn’t use ‘many-answers’. ‘transfer-format’ may also be set
* on a host-by-host basis using the ‘server’ statement (see below).
*/
transfer-format one-answer;
query-source address * port *;
/*
* The “forward” option is only meaningful if you’ve defined
* forwarders. “first” gives the normal BIND
* forwarding behavior, i.e. ask the forwarders first, and if that
* doesn’t work then do the full lookup. You can also say
* “forward only;” which is what used to be specified with
* “slave” or “options forward-only”. “only” will never attempt
* a full lookup; only the forwarders will be used.
*/
forward first;
forwarders { }; // default is no forwarders
/*
* Here’s a forwarders example that isn’t trivial
*/
/*
forwarders {
1.2.3.4;
5.6.7.8;
};
*/
topology { localhost; localnets; }; // prefer local nameservers
/*
* Here’s a more complicated topology example; it’s commented out
* because only one topology block is allowed.
* topology {
10/8; // prefer network 10.0.0.0
// netmask 255.0.0.0 most
!1.2.3/24; // don’t like 1.2.3.0 netmask
// 255.255.255.0 at all
{ 1.2/16; 3/8; }; // like 1.2.0.0 netmask 255.255.0.0
// and 3.0.0.0 netmask 255.0.0.0
// equally well, but less than 10/8
};
*/
listen-on port 53 { any; }; // listen for queries on port 53 on
// any interface on the system
// (i.e. all interfaces). The
// “port 53” is optional; if you
// don’t specify a port, port 53
// is assumed.
/*
* Multiple listen-on statements are allowed. Here’s a more
* complicated example:
*/
/*
listen-on { 5.6.7.8; }; // listen on port 53 on interface
// 5.6.7.8
listen-on port 1234 { // listen on port 1234 on any
!1.2.3.4; // interface on network 1.2.3
1.2.3/24; // netmask 255.255.255.0, except for
}; // interface 1.2.3.4.
*/