to specify the names of entities in the Internet in a hierarchical
manner, the rules used for delegating authority over names, and the
system implementation that actually maps names to Internet
addresses. <
acronym>DNS</
acronym> data is maintained in a
<
title>Scope of Document</
title>
The Berkeley Internet Name Domain
(<
acronym>BIND</
acronym>) implements an
domain name server for a number of operating systems. This
document provides basic information about the installation and
care of the Internet Systems Consortium (<
acronym>ISC</
acronym>)
<
acronym>BIND</
acronym> version 9 software package for
This version of the manual corresponds to BIND version 9.4.
<
title>Organization of This Document</
title>
In this document, <
emphasis>Section 1</
emphasis> introduces
the basic <
acronym>DNS</
acronym> and <
acronym>BIND</
acronym> concepts. <
emphasis>Section 2</
emphasis>
describes resource requirements for running <
acronym>BIND</
acronym> in various
environments. Information in <
emphasis>Section 3</
emphasis> is
<
emphasis>task-oriented</
emphasis> in its presentation and is
organized functionally, to aid in the process of installing the
<
acronym>BIND</
acronym> 9 software. The task-oriented
<
emphasis>Section 4</
emphasis>, which contains more advanced
concepts that the system administrator may need for implementing
certain options. <
emphasis>Section 5</
emphasis>
describes the <
acronym>BIND</
acronym> 9 lightweight
resolver. The contents of <
emphasis>Section 6</
emphasis> are
organized as in a reference manual to aid in the ongoing
maintenance of the software. <
emphasis>Section 7</
emphasis> addresses
security considerations, and
<
emphasis>Section 8</
emphasis> contains troubleshooting help. The
main body of the document is followed by several
<
emphasis>Appendices</
emphasis> which contain useful reference
information, such as a <
emphasis>Bibliography</
emphasis> and
historic information related to <
acronym>BIND</
acronym>
<
title>Conventions Used in This Document</
title>
In this document, we use the following general typographic
<
colspec colname="1" colnum="1" colwidth="3.000in"/>
<
colspec colname="2" colnum="2" colwidth="2.625in"/>
<
emphasis>To describe:</
emphasis>
<
emphasis>We use the style:</
emphasis>
a pathname, filename, URL, hostname,
mailing list name, or new term or concept
<
filename>Fixed width</
filename>
<
userinput>Fixed Width Bold</
userinput>
<
computeroutput>Fixed Width</
computeroutput>
The following conventions are used in descriptions of the
<
acronym>BIND</
acronym> configuration file:<
informaltable colsep="0" frame="all" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="2Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="3.000in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="2.625in"/>
<
entry colname="1" colsep="1" rowsep="1">
<
emphasis>To describe:</
emphasis>
<
entry colname="2" rowsep="1">
<
emphasis>We use the style:</
emphasis>
<
entry colname="1" colsep="1" rowsep="1">
<
entry colname="2" rowsep="1">
<
literal>Fixed Width</
literal>
<
entry colname="1" colsep="1" rowsep="1">
<
entry colname="2" rowsep="1">
<
varname>Fixed Width</
varname>
<
entry colname="1" colsep="1">
<
optional>Text is enclosed in square brackets</
optional>
<
title>The Domain Name System (<
acronym>DNS</
acronym>)</
title>
The purpose of this document is to explain the installation
and upkeep of the <
acronym>BIND</
acronym> software
begin by reviewing the fundamentals of the Domain Name System
(<
acronym>DNS</
acronym>) as they relate to <
acronym>BIND</
acronym>.
<
title>DNS Fundamentals</
title>
The Domain Name System (DNS) is a hierarchical, distributed
database. It stores information for mapping Internet host names to
addresses and vice versa, mail routing information, and other data
used by Internet applications.
Clients look up information in the DNS by calling a
<
emphasis>resolver</
emphasis> library, which sends queries to one or
more <
emphasis>name servers</
emphasis> and interprets the responses.
The <
acronym>BIND</
acronym> 9 software distribution
name server, <
command>named</
command>, and two resolver
libraries, <
command>liblwres</
command> and <
command>libbind</
command>.
<
title>Domains and Domain Names</
title>
The data stored in the DNS is identified by <
emphasis>domain names</
emphasis> that are organized as a tree according to
organizational or administrative boundaries. Each node of the tree,
called a <
emphasis>domain</
emphasis>, is given a label. The domain
node is the concatenation of all the labels on the path from the
node to the <
emphasis>root</
emphasis> node. This is represented
in written form as a string of labels listed from right to left and
separated by dots. A label need only be unique within its parent
For example, a domain name for a host at the
company <
emphasis>Example, Inc.</
emphasis> could be
where <
literal>com</
literal> is the
top level domain to which
<
literal>example</
literal> is
a subdomain of <
literal>com</
literal>, and
<
literal>ourhost</
literal> is the
For administrative purposes, the name space is partitioned into
areas called <
emphasis>zones</
emphasis>, each starting at a node and
extending down to the leaf nodes or to nodes where other zones
The data for each zone is stored in a <
emphasis>name server</
emphasis>, which answers queries about the zone using the
<
emphasis>DNS protocol</
emphasis>.
The data associated with each domain name is stored in the
form of <
emphasis>resource records</
emphasis> (<
acronym>RR</
acronym>s).
Some of the supported resource record types are described in
<
xref linkend="types_of_resource_records_and_when_to_use_them"/>.
For more detailed information about the design of the DNS and
the DNS protocol, please refer to the standards documents listed in
To properly operate a name server, it is important to understand
the difference between a <
emphasis>zone</
emphasis>
and a <
emphasis>domain</
emphasis>.
As stated previously, a zone is a point of delegation in
the <
acronym>DNS</
acronym> tree. A zone consists of
those contiguous parts of the domain
tree for which a name server has complete information and over which
it has authority. It contains all domain names from a certain point
downward in the domain tree except those which are delegated to
other zones. A delegation point is marked by one or more
<
emphasis>NS records</
emphasis> in the
parent zone, which should be matched by equivalent NS records at
the root of the delegated zone.
For instance, consider the <
literal>
example.com</
literal>
domain which includes names
exactly to a single domain, but could also include only part of a
domain, the rest of which could be delegated to other
name servers. Every name in the <
acronym>DNS</
acronym>
<
emphasis>domain</
emphasis>, even if it is
<
emphasis>terminal</
emphasis>, that is, has no
<
emphasis>subdomains</
emphasis>. Every subdomain is a domain and
every domain except the root is also a subdomain. The terminology is
not intuitive and we suggest that you read RFCs 1033, 1034 and 1035
gain a complete understanding of this difficult and subtle
Though <
acronym>BIND</
acronym> is called a "domain name
it deals primarily in terms of zones. The master and slave
declarations in the <
filename>
named.conf</
filename> file
zones, not domains. When you ask some other site if it is willing to
be a slave server for your <
emphasis>domain</
emphasis>, you are
actually asking for slave service for some collection of zones.
<
title>Authoritative Name Servers</
title>
Each zone is served by at least
one <
emphasis>authoritative name server</
emphasis>,
which contains the complete data for the zone.
To make the DNS tolerant of server and network failures,
most zones have two or more authoritative servers, on
Responses from authoritative servers have the "authoritative
answer" (AA) bit set in the response packets. This makes them
easy to identify when debugging DNS configurations using tools like
<
command>dig</
command> (<
xref linkend="diagnostic_tools"/>).
<
title>The Primary Master</
title>
The authoritative server where the master copy of the zone
data is maintained is called the
<
emphasis>primary master</
emphasis> server, or simply the
<
emphasis>primary</
emphasis>. Typically it loads the zone
contents from some local file edited by humans or perhaps
generated mechanically from some other local file which is
edited by humans. This file is called the
<
emphasis>zone file</
emphasis> or
<
emphasis>master file</
emphasis>.
In some cases, however, the master file may not be edited
by humans at all, but may instead be the result of
<
emphasis>dynamic update</
emphasis> operations.
<
title>Slave Servers</
title>
The other authoritative servers, the <
emphasis>slave</
emphasis>
servers (also known as <
emphasis>secondary</
emphasis> servers)
the zone contents from another server using a replication process
known as a <
emphasis>zone transfer</
emphasis>. Typically the data
transferred directly from the primary master, but it is also
to transfer it from another slave. In other words, a slave server
may itself act as a master to a subordinate slave server.
<
title>Stealth Servers</
title>
Usually all of the zone's authoritative servers are listed in
NS records in the parent zone. These NS records constitute
a <
emphasis>delegation</
emphasis> of the zone from the parent.
The authoritative servers are also listed in the zone file itself,
at the <
emphasis>top level</
emphasis> or <
emphasis>apex</
emphasis>
of the zone. You can list servers in the zone's top-level NS
records that are not in the parent's NS delegation, but you cannot
list servers in the parent's delegation that are not present at
A <
emphasis>stealth server</
emphasis> is a server that is
authoritative for a zone but is not listed in that zone's NS
records. Stealth servers can be used for keeping a local copy of
zone to speed up access to the zone's records or to make sure that
zone is available even if all the "official" servers for the zone
A configuration where the primary master server itself is a
stealth server is often referred to as a "hidden primary"
configuration. One use for this configuration is when the primary
is behind a firewall and therefore unable to communicate directly
<
title>Caching Name Servers</
title>
- Terminology here is inconsistant. Probably ought to - convert to using "recursive name server" everywhere - with just a note about "caching" terminology. The resolver libraries provided by most operating systems are
<
emphasis>stub resolvers</
emphasis>, meaning that they are not
performing the full DNS resolution process by themselves by talking
directly to the authoritative servers. Instead, they rely on a
name server to perform the resolution on their behalf. Such a
is called a <
emphasis>recursive</
emphasis> name server; it performs
<
emphasis>recursive lookups</
emphasis> for local clients.
To improve performance, recursive servers cache the results of
the lookups they perform. Since the processes of recursion and
caching are intimately connected, the terms
<
emphasis>recursive server</
emphasis> and
<
emphasis>caching server</
emphasis> are often used synonymously.
The length of time for which a record may be retained in
in the cache of a caching name server is controlled by the
Time To Live (TTL) field associated with each resource record.
<
title>Forwarding</
title>
Even a caching name server does not necessarily perform
the complete recursive lookup itself. Instead, it can
<
emphasis>forward</
emphasis> some or all of the queries
that it cannot satisfy from its cache to another caching name
commonly referred to as a <
emphasis>forwarder</
emphasis>.
There may be one or more forwarders,
and they are queried in turn until the list is exhausted or an
is found. Forwarders are typically used when you do not
wish all the servers at a given site to interact directly with the
the Internet servers. A typical scenario would involve a number
of internal <
acronym>DNS</
acronym> servers and an
Internet firewall. Servers unable
to pass packets through the firewall would forward to the server
that can do it, and that server would query the Internet <
acronym>DNS</
acronym> servers
on the internal server's behalf.
<
title>Name Servers in Multiple Roles</
title>
The <
acronym>BIND</
acronym> name server can
a master for some zones, a slave for other zones, and as a caching
(recursive) server for a set of local clients.
However, since the functions of authoritative name service
often advantageous to run them on separate server machines.
A server that only provides authoritative name service
(an <
emphasis>authoritative-only</
emphasis> server) can run with
recursion disabled, improving reliability and security.
A server that is not authoritative for any zones and only provides
recursive service to local
clients (a <
emphasis>caching-only</
emphasis> server)
does not need to be reachable from the Internet at large and can
be placed inside a firewall.
<
title><
acronym>BIND</
acronym> Resource Requirements</
title>
<
title>Hardware requirements</
title>
<
acronym>DNS</
acronym> hardware requirements have
traditionally been quite modest.
For many installations, servers that have been pensioned off from
active duty have performed admirably as <
acronym>DNS</
acronym> servers.
The DNSSEC features of <
acronym>BIND</
acronym> 9
CPU intensive however, so organizations that make heavy use of these
features may wish to consider larger systems for these applications.
<
acronym>BIND</
acronym> 9 is fully multithreaded, allowing
multiprocessor systems for installations that need it.
<
title>CPU Requirements</
title>
CPU requirements for <
acronym>BIND</
acronym> 9 range from
for serving of static zones without caching, to enterprise-class
machines if you intend to process many dynamic updates and DNSSEC
signed zones, serving many thousands of queries per second.
<
title>Memory Requirements</
title>
The memory of the server has to be large enough to fit the
cache and zones loaded off disk. The <
command>max-cache-size</
command>
option can be used to limit the amount of memory used by the cache,
at the expense of reducing cache hit rates and causing more <
acronym>DNS</
acronym>
Additionally, if additional section caching
(<
xref linkend="acache"/>) is enabled,
the <
command>max-acache-size</
command> can be used to
of memory used by the mechanism.
It is still good practice to have enough memory to load
all zone and cache data into memory — unfortunately, the best
to determine this for a given installation is to watch the name server
in operation. After a few weeks the server process should reach
a relatively stable size where entries are expiring from the cache as
fast as they are being inserted.
- Add something here about leaving overhead for attacks? - How much overhead? Percentage? <
title>Name Server Intensive Environment Issues</
title>
For name server intensive environments, there are two alternative
configurations that may be used. The first is where clients and
any second-level internal name servers query a main name server, which
has enough memory to build a large cache. This approach minimizes
the bandwidth used by external name lookups. The second alternative
is to set up second-level internal name servers to make queries
In this configuration, none of the individual machines needs to
have as much memory or CPU power as in the first alternative, but
this has the disadvantage of making many more external queries,
as none of the name servers share their cached data.
<
title>Supported Operating Systems</
title>
ISC <
acronym>BIND</
acronym> 9 compiles and runs on a large
of Unix-like operating system and on NT-derived versions of
Microsoft Windows such as Windows 2000 and Windows XP. For an
list of supported systems, see the README file in the top level
of the BIND 9 source distribution.
<
title>Name Server Configuration</
title>
In this section we provide some suggested configurations along
with guidelines for their use. We suggest reasonable values for
<
sect1 id="sample_configuration">
<
title>Sample Configurations</
title>
<
title>A Caching-only Name Server</
title>
The following sample configuration is appropriate for a caching-only
name server for use by clients internal to a corporation. All
from outside clients are refused using the <
command>allow-query</
command>
option. Alternatively, the same effect could be achieved using
// Two corporate subnets we wish to allow queries from.
directory "/
etc/
namedb"; // Working directory
allow-query { corpnets; };
// Provide a reverse mapping for the loopback address 127.0.0.1
<
title>An Authoritative-only Name Server</
title>
This sample configuration is for an authoritative-only server
that is the master server for "<
filename>
example.com</
filename>"
directory "/
etc/
namedb"; // Working directory
allow-query-cache { none; }; // Do not allow access to cache
allow-query { any; }; // This is the default
recursion no; // Do not provide recursive service
// Provide a reverse mapping for the loopback address 127.0.0.1
// IP addresses of slave servers allowed to transfer
example.com masters { 192.168.4.12; };
<
title>Load Balancing</
title>
- Add explanation of why load balancing is fragile at best - and completely pointless in the general case. A primitive form of load balancing can be achieved in
the <
acronym>DNS</
acronym> by using multiple A records for
For example, if you have three WWW servers with network addresses
of 10.0.0.1, 10.0.0.2 and 10.0.0.3, a set of records such as the
following means that clients will connect to each machine one third
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="5" colsep="0" rowsep="0" tgroupstyle="2Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="0.875in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="0.500in"/>
<
colspec colname="3" colnum="3" colsep="0" colwidth="0.750in"/>
<
colspec colname="4" colnum="4" colsep="0" colwidth="0.750in"/>
<
colspec colname="5" colnum="5" colsep="0" colwidth="2.028in"/>
Resource Record (RR) Data
<
literal>10.0.0.1</
literal>
<
literal>10.0.0.2</
literal>
<
literal>10.0.0.3</
literal>
When a resolver queries for these records, <
acronym>BIND</
acronym> will rotate
them and respond to the query with the records in a different
order. In the example above, clients will randomly receive
records in the order 1, 2, 3; 2, 3, 1; and 3, 1, 2. Most clients
will use the first record returned and discard the rest.
For more detail on ordering responses, check the
<
command>rrset-order</
command> substatement in the
<
command>options</
command> statement, see
<
xref endterm="rrset_ordering_title" linkend="rrset_ordering"/>.
<
title>Name Server Operations</
title>
<
title>Tools for Use With the Name Server Daemon</
title>
This section describes several indispensable diagnostic,
administrative and monitoring tools available to the system
administrator for controlling and debugging the name server
<
sect3 id="diagnostic_tools">
<
title>Diagnostic Tools</
title>
The <
command>dig</
command>, <
command>host</
command>, and
<
command>nslookup</
command> programs are all command
for manually querying name servers. They differ in style and
<
term id="dig"><
command>dig</
command></
term>
The domain information groper (<
command>dig</
command>)
is the most versatile and complete of these lookup tools.
It has two modes: simple interactive
mode for a single query, and batch mode which executes a
each in a list of several query lines. All query options are
<
cmdsynopsis label="Usage">
<
arg>@<
replaceable>server</
replaceable></
arg>
<
arg choice="plain"><
replaceable>domain</
replaceable></
arg>
<
arg><
replaceable>query-type</
replaceable></
arg>
<
arg><
replaceable>query-class</
replaceable></
arg>
<
arg>+<
replaceable>query-option</
replaceable></
arg>
<
arg>-<
replaceable>dig-option</
replaceable></
arg>
<
arg>%<
replaceable>comment</
replaceable></
arg>
The usual simple use of dig will take the form
<
command>dig @server domain query-type query-class</
command>
For more information and a list of available commands and
options, see the <
command>dig</
command> man
<
term><
command>host</
command></
term>
The <
command>host</
command> utility emphasizes
and ease of use. By default, it converts
between host names and Internet addresses, but its
can be extended with the use of options.
<
cmdsynopsis label="Usage">
<
arg>-c <
replaceable>class</
replaceable></
arg>
<
arg>-N <
replaceable>ndots</
replaceable></
arg>
<
arg>-t <
replaceable>type</
replaceable></
arg>
<
arg>-W <
replaceable>timeout</
replaceable></
arg>
<
arg>-R <
replaceable>retries</
replaceable></
arg>
<
arg choice="plain"><
replaceable>hostname</
replaceable></
arg>
<
arg><
replaceable>server</
replaceable></
arg>
For more information and a list of available commands and
options, see the <
command>host</
command> man
<
term><
command>nslookup</
command></
term>
<
para><
command>nslookup</
command>
has two modes: interactive and
non-interactive. Interactive mode allows the user to
query name servers for information about various
hosts and domains or to print a list of hosts in a
domain. Non-interactive mode is used to print just
the name and requested information for a host or
<
cmdsynopsis label="Usage">
<
command>nslookup</
command>
<
arg rep="repeat">-option</
arg>
<
arg><
replaceable>host-to-find</
replaceable></
arg>
<
arg>- <
arg>server</
arg></
arg>
Interactive mode is entered when no arguments are given (the
default name server will be used) or when the first argument
hyphen (`-') and the second argument is the host name or
Non-interactive mode is used when the name or Internet
of the host to be looked up is given as the first argument.
optional second argument specifies the host name or address
Due to its arcane user interface and frequently inconsistent
behavior, we do not recommend the use of <
command>nslookup</
command>.
Use <
command>dig</
command> instead.
<
title>Administrative Tools</
title>
Administrative tools play an integral part in the management
<
varlistentry id="named-checkconf" xreflabel="Named Configuration Checking application">
<
term><
command>named-checkconf</
command></
term>
The <
command>named-checkconf</
command> program
checks the syntax of a <
filename>
named.conf</
filename> file.
<
cmdsynopsis label="Usage">
<
command>named-checkconf</
command>
<
arg>-t <
replaceable>directory</
replaceable></
arg>
<
arg><
replaceable>filename</
replaceable></
arg>
<
varlistentry id="named-checkzone" xreflabel="Zone Checking application">
<
term><
command>named-checkzone</
command></
term>
The <
command>named-checkzone</
command> program
<
cmdsynopsis label="Usage">
<
command>named-checkzone</
command>
<
arg>-c <
replaceable>class</
replaceable></
arg>
<
arg>-o <
replaceable>output</
replaceable></
arg>
<
arg>-t <
replaceable>directory</
replaceable></
arg>
<
arg>-w <
replaceable>directory</
replaceable></
arg>
<
arg>-k <
replaceable>(ignore|warn|fail)</
replaceable></
arg>
<
arg>-n <
replaceable>(ignore|warn|fail)</
replaceable></
arg>
<
arg>-W <
replaceable>(ignore|warn)</
replaceable></
arg>
<
arg choice="plain"><
replaceable>zone</
replaceable></
arg>
<
arg><
replaceable>filename</
replaceable></
arg>
<
varlistentry id="named-compilezone" xreflabel="Zone Compilation aplication">
<
term><
command>named-compilezone</
command></
term>
Similar to <
command>named-checkzone,</
command> but
it always dumps the zone content to a specified file
(typically in a different format).
<
varlistentry id="rndc" xreflabel="Remote Name Daemon Control application">
<
term><
command>rndc</
command></
term>
The remote name daemon control
(<
command>rndc</
command>) program allows the
administrator to control the operation of a name server.
If you run <
command>rndc</
command> without any
it will display a usage message as follows:
<
cmdsynopsis label="Usage">
<
arg>-c <
replaceable>config</
replaceable></
arg>
<
arg>-s <
replaceable>server</
replaceable></
arg>
<
arg>-p <
replaceable>port</
replaceable></
arg>
<
arg>-y <
replaceable>key</
replaceable></
arg>
<
arg choice="plain"><
replaceable>command</
replaceable></
arg>
<
arg rep="repeat"><
replaceable>command</
replaceable></
arg>
<
para><
command>command</
command>
<
term><
userinput>reload</
userinput></
term>
Reload configuration file and zones.
<
term><
userinput>reload <
replaceable>zone</
replaceable>
<
optional><
replaceable>class</
replaceable>
<
optional><
replaceable>view</
replaceable></
optional></
optional></
userinput></
term>
<
term><
userinput>refresh <
replaceable>zone</
replaceable>
<
optional><
replaceable>class</
replaceable>
<
optional><
replaceable>view</
replaceable></
optional></
optional></
userinput></
term>
Schedule zone maintenance for the given zone.
<
term><
userinput>retransfer <
replaceable>zone</
replaceable>
<
optional><
replaceable>class</
replaceable>
<
optional><
replaceable>view</
replaceable></
optional></
optional></
userinput></
term>
Retransfer the given zone from the master.
<
optional><
replaceable>zone</
replaceable>
<
optional><
replaceable>class</
replaceable>
<
optional><
replaceable>view</
replaceable></
optional></
optional></
optional></
userinput></
term>
Suspend updates to a dynamic zone. If no zone is
then all zones are suspended. This allows manual
edits to be made to a zone normally updated by dynamic
also causes changes in the journal file to be synced
and the journal file to be removed. All dynamic
be refused while the zone is frozen.
<
optional><
replaceable>zone</
replaceable>
<
optional><
replaceable>class</
replaceable>
<
optional><
replaceable>view</
replaceable></
optional></
optional></
optional></
userinput></
term>
Enable updates to a frozen dynamic zone. If no zone
specified then all frozen zones are enabled. This
the server to reload the zone from disk, and
re-enables dynamic updates
after the load has completed. After a zone is thawed,
will no longer be refused.
<
term><
userinput>notify <
replaceable>zone</
replaceable>
<
optional><
replaceable>class</
replaceable>
<
optional><
replaceable>view</
replaceable></
optional></
optional></
userinput></
term>
Resend NOTIFY messages for the zone.
<
term><
userinput>reconfig</
userinput></
term>
Reload the configuration file and load new zones,
but do not reload existing zone files even if they
This is faster than a full <
command>reload</
command> when there
is a large number of zones because it avoids the need
modification times of the zones files.
<
term><
userinput>stats</
userinput></
term>
Write server statistics to the statistics file.
<
term><
userinput>querylog</
userinput></
term>
Toggle query logging. Query logging can also be enabled
by explicitly directing the <
command>queries</
command>
<
command>category</
command> to a
<
command>channel</
command> in the
<
command>logging</
command> section of
<
command>querylog yes;</
command> in the
<
command>options</
command> section of
<
optional>-all|-cache|-zone</
optional>
<
optional><
replaceable>view ...</
replaceable></
optional></
userinput></
term>
Dump the server's caches (default) and / or zones to
dump file for the specified views. If no view is
<
term><
userinput>stop <
optional>-p</
optional></
userinput></
term>
Stop the server, making sure any recent changes
made through dynamic update or IXFR are first saved to
the master files of the updated zones.
If -p is specified named's process id is returned.
This allows a external process to determine when named
<
term><
userinput>halt <
optional>-p</
optional></
userinput></
term>
Stop the server immediately. Recent changes
made through dynamic update or IXFR are not saved to
the master files, but will be rolled forward from the
journal files when the server is restarted.
If -p is specified named's process id is returned.
This allows a external process to determine when named
<
term><
userinput>trace</
userinput></
term>
Increment the servers debugging level by one.
<
term><
userinput>trace <
replaceable>level</
replaceable></
userinput></
term>
Sets the server's debugging level to an explicit
<
term><
userinput>notrace</
userinput></
term>
Sets the server's debugging level to 0.
<
term><
userinput>flush</
userinput></
term>
Flushes the server's cache.
<
term><
userinput>flushname</
userinput> <
replaceable>name</
replaceable></
term>
Flushes the given name from the server's cache.
<
term><
userinput>status</
userinput></
term>
Display status of the server.
Note the number of zones includes the internal <
command>
bind/
CH</
command> zone
and the default <
command>/
IN</
command>
hint zone if there is not a
explicit root zone configured.
<
term><
userinput>recursing</
userinput></
term>
Dump the list of queries named is currently recursing
In <
acronym>BIND</
acronym> 9.2, <
command>rndc</
command>
supports all the commands of the BIND 8 <
command>ndc</
command>
utility except <
command>ndc start</
command> and
<
command>ndc restart</
command>, which were also
not supported in <
command>ndc</
command>'s
A configuration file is required, since all
communication with the server is authenticated with
digital signatures that rely on a shared secret, and
there is no way to provide that secret other than with a
configuration file. The default location for the
<
command>rndc</
command> configuration file is
location can be specified with the <
option>-c</
option>
option. If the configuration file is not found,
<
command>rndc</
command> will also look in
<
varname>sysconfdir</
varname> was defined when
the <
acronym>BIND</
acronym> build was
The <
filename>
rndc.key</
filename> file is
running <
command>rndc-confgen -a</
command> as
<
xref linkend="controls_statement_definition_and_usage"/>.
The format of the configuration file is similar to
only four statements, the <
command>options</
command>,
<
command>key</
command>, <
command>server</
command> and
<
command>include</
command>
statements. These statements are what associate the
secret keys to the servers with which they are meant to
be shared. The order of statements is not
The <
command>options</
command> statement has
<
command>default-server</
command>, <
command>default-key</
command>,
and <
command>default-port</
command>.
<
command>default-server</
command> takes a
host name or address argument and represents the server
be contacted if no <
option>-s</
option>
option is provided on the command line.
<
command>default-key</
command> takes
the name of a key as its argument, as defined by a <
command>key</
command> statement.
<
command>default-port</
command> specifies the
<
command>rndc</
command> should connect if no
port is given on the command line or in a
<
command>server</
command> statement.
The <
command>key</
command> statement defines an
by <
command>rndc</
command> when authenticating
<
command>named</
command>. Its syntax is
The keyword <
userinput>key</
userinput> is
followed by a key name, which must be a valid
domain name, though it need not actually be hierarchical;
a string like "<
userinput>rndc_key</
userinput>" is a valid
The <
command>key</
command> statement has two
<
command>algorithm</
command> and <
command>secret</
command>.
While the configuration parser will accept any string as the
to algorithm, currently only the string "<
userinput>hmac-md5</
userinput>"
has any meaning. The secret is a base-64 encoded string
as specified in RFC 3548.
The <
command>server</
command> statement
defined using the <
command>key</
command>
The keyword <
userinput>server</
userinput> is followed by a
host name or address. The <
command>server</
command> statement
has two clauses: <
command>key</
command> and <
command>port</
command>.
The <
command>key</
command> clause specifies the
to be used when communicating with this server, and the
<
command>port</
command> clause can be used to
specify the port <
command>rndc</
command> should
A sample minimal configuration file is as follows:
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
default-server 127.0.0.1;
This file, if installed as <
filename>/
etc/
rndc.conf</
filename>,
<
prompt>$ </
prompt><
userinput>rndc reload</
userinput>
to connect to 127.0.0.1 port 953 and cause the name server
to reload, if a name server on the local machine were
following controls statements:
inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
and it had an identical key statement for
<
literal>rndc_key</
literal>.
Running the <
command>rndc-confgen</
command>
conveniently create a <
filename>
rndc.conf</
filename>
file for you, and also display the
corresponding <
command>controls</
command>
statement that you need to
you can run <
command>rndc-confgen -a</
command>
a <
filename>
rndc.key</
filename> file and not
<
term><
command>clients-per-query</
command></
term>
<
term><
command>max-clients-per-query</
command></
term>
<
para><
command>clients-per-query</
command>
and <
command>max-clients-per-query</
command> set the
initial value (minimum) and maximum number of recursive
simultanious clients for any given query
(<qname,qtype,qclass>) that the server will accept
before dropping additional clients. named will attempt to
self tune this value and changes will be logged. The
default values are 10 and 100.
This value should reflect how many queries come in for
a given name in the time it takes to resolve that name.
If the number of queries exceed this value named will
assume that it is dealing with a non-responsive zone
and will drop additional queries. If it gets a response
after dropping queries it will raise the estimate. The
estimate will then be lowered in 20 minutes if it has
If <
command>clients-per-query</
command> is set to zero
then there is no limit on the number of clients per query
and no queries will be dropped.
If <
command>max-clients-per-query</
command> is set to zero
then there is no upper bound other than imposed by
<
command>recurive-clients</
command>.
Certain UNIX signals cause the name server to take specific
actions, as described in the following table. These signals can
be sent using the <
command>kill</
command> command.
<
informaltable frame="all">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.125in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="4.000in"/>
<
para><
command>SIGHUP</
command></
para>
Causes the server to read <
filename>
named.conf</
filename> and
<
para><
command>SIGTERM</
command></
para>
Causes the server to clean up and exit.
<
para><
command>SIGINT</
command></
para>
Causes the server to clean up and exit.
<
title>Advanced DNS Features</
title>
<
acronym>DNS</
acronym> NOTIFY is a mechanism that allows master
servers to notify their slave servers of changes to a zone's data. In
response to a <
command>NOTIFY</
command> from a master server, the
slave will check to see that its version of the zone is the
current version and, if not, initiate a zone transfer.
For more information about <
acronym>DNS</
acronym>
<
command>NOTIFY</
command>, see the description of the
<
command>notify</
command> option in <
xref linkend="boolean_options"/> and
the description of the zone option <
command>also-notify</
command> in
<
xref linkend="zone_transfers"/>. The <
command>NOTIFY</
command>
protocol is specified in RFC 1996.
As slave zone can also be a master to other slaves, named,
by default, sends <
command>NOTIFY</
command> messages for every zone
it loads. Specifying <
command>notify master-only;</
command> will
cause named to only send <
command>NOTIFY</
command> for master
<
sect1 id="dynamic_update">
<
title>Dynamic Update</
title>
Dynamic Update is a method for adding, replacing or deleting
records in a master server by sending it a special form of DNS
messages. The format and meaning of these messages is specified
Dynamic update is enabled by
including an <
command>allow-update</
command> or
<
command>update-policy</
command> clause in the
<
command>zone</
command> statement.
Updating of secure zones (zones using DNSSEC) follows
RFC 3007: RRSIG and NSEC records affected by updates are automatically
regenerated by the server using an online zone key.
Update authorization is based
on transaction signatures and an explicit server policy.
<
title>The journal file</
title>
All changes made to a zone using dynamic update are stored
in the zone's journal file. This file is automatically created
by the server when the first dynamic update takes place.
The name of the journal file is formed by appending the extension
<
filename>.jnl</
filename> to the name of the
file unless specifically overridden. The journal file is in a
binary format and should not be edited manually.
The server will also occasionally write ("dump")
the complete contents of the updated zone to its zone file.
This is not done immediately after
each dynamic update, because that would be too slow when a large
zone is updated frequently. Instead, the dump is delayed by
up to 15 minutes, allowing additional updates to take place.
When a server is restarted after a shutdown or crash, it will replay
the journal file to incorporate into the zone any updates that
place after the last zone dump.
Changes that result from incoming incremental zone transfers are
journalled in a similar way.
The zone files of dynamic zones cannot normally be edited by
hand because they are not guaranteed to contain the most recent
dynamic changes - those are only in the journal file.
The only way to ensure that the zone file of a dynamic zone
is up to date is to run <
command>rndc stop</
command>.
If you have to make changes to a dynamic zone
manually, the following procedure will work: Disable dynamic updates
<
command>rndc freeze <
replaceable>zone</
replaceable></
command>.
This will also remove the zone's <
filename>.jnl</
filename> file
and update the master file. Edit the zone file. Run
<
command>rndc thaw <
replaceable>zone</
replaceable></
command>
to reload the changed zone and re-enable dynamic updates.
<
sect1 id="incremental_zone_transfers">
<
title>Incremental Zone Transfers (IXFR)</
title>
The incremental zone transfer (IXFR) protocol is a way for
slave servers to transfer only changed data, instead of having to
transfer the entire zone. The IXFR protocol is specified in RFC
1995. See <
xref linkend="proposed_standards"/>.
When acting as a master, <
acronym>BIND</
acronym> 9
supports IXFR for those zones
where the necessary change history information is available. These
include master zones maintained by dynamic update and slave zones
whose data was obtained by IXFR. For manually maintained master
zones, and for slave zones obtained by performing a full zone
transfer (AXFR), IXFR is supported only if the option
<
command>ixfr-from-differences</
command> is set
to <
userinput>yes</
userinput>.
When acting as a slave, <
acronym>BIND</
acronym> 9 will
attempt to use IXFR unless
it is explicitly disabled. For more information about disabling
IXFR, see the description of the <
command>request-ixfr</
command> clause
of the <
command>server</
command> statement.
Setting up different views, or visibility, of the DNS space to
internal and external resolvers is usually referred to as a
<
emphasis>Split DNS</
emphasis> setup. There are several
reasons an organization would want to set up its DNS this way.
One common reason for setting up a DNS system this way is
to hide "internal" DNS information from "external" clients on the
Internet. There is some debate as to whether or not this is actually
Internal DNS information leaks out in many ways (via email headers,
for example) and most savvy "attackers" can find the information
they need using other means.
However, since listing addresses of internal servers that
external clients cannot possibly reach can result in
connection delays and other annoyances, an organization may
choose to use a Split DNS to present a consistant view of itself
Another common reason for setting up a Split DNS system is
to allow internal networks that are behind filters or in RFC 1918
space (reserved IP space, as documented in RFC 1918) to resolve DNS
on the Internet. Split DNS can also be used to allow mail from outside
back in to the internal network.
Here is an example of a split DNS setup:
Let's say a company named <
emphasis>Example, Inc.</
emphasis>
has several corporate sites that have an internal network with
Internet Protocol (IP) space and an external demilitarized zone (DMZ),
or "outside" section of a network, that is available to the public.
<
emphasis>Example, Inc.</
emphasis> wants its internal clients
to be able to resolve external hostnames and to exchange mail with
people on the outside. The company also wants its internal resolvers
to have access to certain internal-only zones that are not available
at all outside of the internal network.
In order to accomplish this, the company will set up two sets
of name servers. One set will be on the inside network (in the
IP space) and the other set will be on bastion hosts, which are
hosts that can talk to both sides of its network, in the DMZ.
The internal servers will be configured to forward all queries,
DMZ. These internal servers will have complete sets of information
the internal name servers must be configured to disallow all queries
to these domains from any external hosts, including the bastion
The external servers, which are on the bastion hosts, will
be configured to serve the "public" version of the <
filename>site1</
filename> and <
filename>
site2.example.com</
filename> zones.
This could include things such as the host records for public servers
In addition, the public <
filename>site1</
filename> and <
filename>
site2.example.com</
filename> zones
should have special MX records that contain wildcard (`*') records
pointing to the bastion hosts. This is needed because external mail
servers do not have any other way of looking up how to deliver mail
to those internal hosts. With the wildcard records, the mail will
be delivered to the bastion host, which can then forward it on to
Here's an example of a wildcard MX record:
Now that they accept mail on behalf of anything in the internal
network, the bastion hosts will need to know how to deliver mail
to internal hosts. In order for this to work properly, the resolvers
the bastion hosts will need to be configured to point to the internal
name servers for DNS resolution.
Queries for internal hostnames will be answered by the internal
servers, and queries for external hostnames will be forwarded back
out to the DNS servers on the bastion hosts.
In order for all this to work properly, internal clients will
need to be configured to query <
emphasis>only</
emphasis> the internal
name servers for DNS queries. This could also be enforced via
filtering on the network.
If everything has been set properly, <
emphasis>Example, Inc.</
emphasis>'s
internal clients will now be able to:
Look up any hostnames in the <
literal>site1</
literal>
<
simpara>Look up any hostnames on the Internet.</
simpara>
<
simpara>Exchange mail with internal AND external people.</
simpara>
Hosts on the Internet will be able to:
Look up any hostnames in the <
literal>site1</
literal>
Exchange mail with anyone in the <
literal>site1</
literal> and
Here is an example configuration for the setup we just
described above. Note that this is only configuration information;
for information on how to configure your zone files, see <
xref linkend="sample_configuration"/>
Internal DNS server config:
acl externals { <
varname>bastion-ips-go-here</
varname>; };
forwarders { // forward to external servers
<
varname>bastion-ips-go-here</
varname>;
allow-transfer { none; }; // sample allow-transfer (no one)
allow-query { internals; externals; }; // restrict query access
allow-recursion { internals; }; // restrict recursion
forwarders { }; // do normal iterative
// resolution (do not forward)
allow-query { internals; externals; };
allow-transfer { internals; };
masters { 172.16.72.3; };
allow-query { internals; externals; };
allow-transfer { internals; };
allow-query { internals; };
allow-transfer { internals; }
masters { 172.16.72.3; };
allow-query { internals };
allow-transfer { internals; }
External (bastion host) DNS server config:
acl externals { bastion-ips-go-here; };
allow-transfer { none; }; // sample allow-transfer (no one)
allow-query { any; }; // default query access
allow-query-cache { internals; externals; }; // restrict cache access
allow-recursion { internals; externals; }; // restrict recursion
allow-transfer { internals; externals; };
masters { another_bastion_host_maybe; };
allow-transfer { internals; externals; }
In the <
filename>
resolv.conf</
filename> (or equivalent) on
This is a short guide to setting up Transaction SIGnatures
(TSIG) based transaction security in <
acronym>BIND</
acronym>. It describes changes
to the configuration file as well as what changes are required for
different features, including the process of creating transaction
keys and using transaction signatures with <
acronym>BIND</
acronym>.
<
acronym>BIND</
acronym> primarily supports TSIG for server
This includes zone transfer, notify, and recursive query messages.
Resolvers based on newer versions of <
acronym>BIND</
acronym> 8 have limited support
TSIG can also be useful for dynamic update. A primary
server for a dynamic zone should control access to the dynamic
update service, but IP-based access control is insufficient.
The cryptographic access control provided by TSIG
is far superior. The <
command>nsupdate</
command>
program supports TSIG via the <
option>-k</
option> and
<
option>-y</
option> command line options or inline by use
of the <
command>key</
command>.
<
title>Generate Shared Keys for Each Pair of Hosts</
title>
A shared secret is generated to be shared between <
emphasis>host1</
emphasis> and <
emphasis>host2</
emphasis>.
An arbitrary key name is chosen: "host1-host2.". The key name must
be the same on both hosts.
<
title>Automatic Generation</
title>
The following command will generate a 128 bit (16 byte) HMAC-MD5
key as described above. Longer keys are better, but shorter keys
are easier to read. Note that the maximum key length is 512 bits;
keys longer than that will be digested with MD5 to produce a 128
<
userinput>dnssec-keygen -a hmac-md5 -b 128 -n HOST host1-host2.</
userinput>
The key is in the file <
filename>Khost1-host2.+157+
00000.private</
filename>.
Nothing directly uses this file, but the base-64 encoded string
following "<
literal>Key:</
literal>"
can be extracted from the file and used as a shared secret:
<
programlisting>Key:
La/
E5CjG9O+os1jq0a2jdA==</
programlisting>
The string "<
literal>
La/
E5CjG9O+os1jq0a2jdA==</
literal>" can
be used as the shared secret.
<
title>Manual Generation</
title>
The shared secret is simply a random sequence of bits, encoded
in base-64. Most ASCII strings are valid base-64 strings (assuming
the length is a multiple of 4 and only valid characters are used),
so the shared secret can be manually generated.
Also, a known string can be run through <
command>mmencode</
command> or
a similar program to generate base-64 encoded data.
<
title>Copying the Shared Secret to Both Machines</
title>
This is beyond the scope of DNS. A secure transport mechanism
should be used. This could be secure FTP, ssh, telephone, etc.
<
title>Informing the Servers of the Key's Existence</
title>
Imagine <
emphasis>host1</
emphasis> and <
emphasis>host 2</
emphasis>
both servers. The following is added to each server's <
filename>
named.conf</
filename> file:
The algorithm, hmac-md5, is the only one supported by <
acronym>BIND</
acronym>.
The secret is the one generated above. Since this is a secret, it
is recommended that either <
filename>
named.conf</
filename> be non-world
readable, or the key directive be added to a non-world readable
At this point, the key is recognized. This means that if the
server receives a message signed by this key, it can verify the
signature. If the signature is successfully verified, the
response is signed by the same key.
<
title>Instructing the Server to Use the Key</
title>
Since keys are shared between two hosts only, the server must
be told when keys are to be used. The following is added to the <
filename>
named.conf</
filename> file
for <
emphasis>host1</
emphasis>, if the IP address of <
emphasis>host2</
emphasis> is
Multiple keys may be present, but only the first is used.
This directive does not contain any secrets, so it may be in a
If <
emphasis>host1</
emphasis> sends a message that is a request
to that address, the message will be signed with the specified key. <
emphasis>host1</
emphasis> will
expect any responses to signed messages to be signed with the same
A similar statement must be present in <
emphasis>host2</
emphasis>'s
configuration file (with <
emphasis>host1</
emphasis>'s address) for <
emphasis>host2</
emphasis> to
sign request messages to <
emphasis>host1</
emphasis>.
<
title>TSIG Key Based Access Control</
title>
<
acronym>BIND</
acronym> allows IP addresses and ranges
<
command>allow-{ query | transfer | update }</
command>
This has been extended to allow TSIG keys also. The above key would
be denoted <
command>key host1-host2.</
command>
An example of an allow-update directive would be:
allow-update { key host1-host2. ;};
This allows dynamic updates to succeed only if the request
was signed by a key named
"<
command>host1-host2.</
command>".
You may want to read about the more
powerful <
command>update-policy</
command> statement in <
xref linkend="dynamic_update_policies"/>.
The processing of TSIG signed messages can result in
several errors. If a signed message is sent to a non-TSIG aware
server, a FORMERR will be returned, since the server will not
understand the record. This is a result of misconfiguration,
since the server must be explicitly configured to send a TSIG
signed message to a specific server.
If a TSIG aware server receives a message signed by an
unknown key, the response will be unsigned with the TSIG
extended error code set to BADKEY. If a TSIG aware server
receives a message with a signature that does not validate, the
response will be unsigned with the TSIG extended error code set
to BADSIG. If a TSIG aware server receives a message with a time
outside of the allowed range, the response will be signed with
the TSIG extended error code set to BADTIME, and the time values
will be adjusted so that the response can be successfully
verified. In any of these cases, the message's rcode is set to
<
para><
command>TKEY</
command>
is a mechanism for automatically generating a shared secret
between two hosts. There are several "modes" of
<
command>TKEY</
command> that specify how the key is generated
or assigned. <
acronym>BIND</
acronym> 9 implements only one of
these modes, the Diffie-Hellman key exchange. Both hosts are
required to have a Diffie-Hellman KEY record (although this
record is not required to be present in a zone). The
<
command>TKEY</
command> process must use signed messages,
signed either by TSIG or SIG(0). The result of
<
command>TKEY</
command> is a shared secret that can be used to
sign messages with TSIG. <
command>TKEY</
command> can also be
used to delete shared secrets that it had previously
The <
command>TKEY</
command> process is initiated by a
or server by sending a signed <
command>TKEY</
command>
(including any appropriate KEYs) to a TKEY-aware server. The
server response, if it indicates success, will contain a
<
command>TKEY</
command> record and any appropriate keys.
this exchange, both participants have enough information to
determine the shared secret; the exact process depends on the
<
command>TKEY</
command> mode. When using the
<
command>TKEY</
command> mode, Diffie-Hellman keys are
and the shared secret is derived by both participants.
<
acronym>BIND</
acronym> 9 partially supports DNSSEC SIG(0)
transaction signatures as specified in RFC 2535 and RFC2931.
uses
public/
private keys to authenticate messages. Access control
is performed in the same manner as TSIG keys; privileges can be
granted or denied based on the key name.
When a SIG(0) signed message is received, it will only be
verified if the key is known and trusted by the server; the server
will not attempt to locate
and/
or validate the key.
SIG(0) signing of multiple-message TCP streams is not
The only tool shipped with <
acronym>BIND</
acronym> 9 that
generates SIG(0) signed messages is <
command>nsupdate</
command>.
Cryptographic authentication of DNS information is possible
through the DNS Security (<
emphasis>DNSSEC-bis</
emphasis>) extensions,
defined in RFC 4033, RFC 4034 and RFC 4035.
This section describes the creation and use of DNSSEC signed zones.
In order to set up a DNSSEC secure zone, there are a series
of steps which must be followed. <
acronym>BIND</
acronym>
that are used in this process, which are explained in more detail
below. In all cases, the <
option>-h</
option> option prints a
full list of parameters. Note that the DNSSEC tools require the
keyset files to be in the working directory or the
directory specified by the <
option>-d</
option> option, and
that the tools shipped with BIND
9.2.x and earlier are not compatible
There must also be communication with the administrators of
the parent
and/
or child zone to transmit keys. A zone's security
status must be indicated by the parent zone for a DNSSEC capable
resolver to trust its data. This is done through the presense
or absence of a <
literal>DS</
literal> record at the
For other servers to trust data in this zone, they must
either be statically configured with this zone's zone key or the
zone key of another zone above this one in the DNS tree.
<
title>Generating Keys</
title>
The <
command>dnssec-keygen</
command> program is used to
A secure zone must contain one or more zone keys. The
zone keys will sign all other records in the zone, as well as
the zone keys of any secure delegated zones. Zone keys must
have the same name as the zone, a name type of
<
command>ZONE</
command>, and must be usable for
It is recommended that zone keys use a cryptographic algorithm
designated as "mandatory to implement" by the IETF; currently
The following command will generate a 768 bit RSASHA1 key for
<
userinput>dnssec-keygen -a RSASHA1 -b 768 -n ZONE
child.example.</
userinput>
Two output files will be produced:
12345 is an example of a key tag). The key file names contain
is DSA, 1 is RSAMD5, 5 is RSASHA1, etc.), and the key tag (12345 in
The private key (in the <
filename>.private</
filename>
used to generate signatures, and the public key (in the
<
filename>.key</
filename> file) is used for signature
To generate another key with the same properties (but with
a different key tag), repeat the above command.
The public keys should be inserted into the zone file by
including the <
filename>.key</
filename> files using
<
command>$INCLUDE</
command> statements.
<
title>Signing the Zone</
title>
The <
command>dnssec-signzone</
command> program is used
Any <
filename>keyset</
filename> files corresponding
to secure subzones should be present. The zone signer will
generate <
literal>NSEC</
literal> and <
literal>RRSIG</
literal>
records for the zone, as well as <
literal>DS</
literal>
the child zones if <
literal>'-d'</
literal> is specified.
If <
literal>'-d'</
literal> is not specified then
the secure child zones need to be added manually.
The following command signs the zone, assuming it is in a
default, all zone keys which have an available private key are
used to generate signatures.
One output file is produced:
should be referenced by <
filename>
named.conf</
filename>
<
para><
command>dnssec-signzone</
command>
will also produce a keyset and dsset files and optionally a
dlvset file. These are used to provide the parent zone
administators with the <
literal>DNSKEYs</
literal> (or their
corresponding <
literal>DS</
literal> records) that are the
secure entry point to the zone.
<
title>Configuring Servers</
title>
Unlike <
acronym>BIND</
acronym> 8,
<
acronym>BIND</
acronym> 9 does not verify signatures on
so zone keys for authoritative zones do not need to be specified
in the configuration file.
The public key for any security root must be present in
the configuration file's <
command>trusted-keys</
command>
statement, as described later in this document.
<
title>IPv6 Support in <
acronym>BIND</
acronym> 9</
title>
<
acronym>BIND</
acronym> 9 fully supports all currently
name to address and address to name lookups. It will also use
IPv6 addresses to make queries when running on an IPv6 capable
For forward lookups, <
acronym>BIND</
acronym> 9 supports
only AAAA records. RFC 3363 deprecated the use of A6 records,
and client-side support for A6 records was accordingly removed
from <
acronym>BIND</
acronym> 9.
However, authoritative <
acronym>BIND</
acronym> 9 name servers still
load zone files containing A6 records correctly, answer queries
for A6 records, and accept zone transfer for a zone containing A6
For IPv6 reverse lookups, <
acronym>BIND</
acronym> 9 supports
the traditional "nibble" format used in the
<
emphasis>
ip6.arpa</
emphasis> domain, as well as the older, deprecated
<
emphasis>
ip6.int</
emphasis> domain.
Older versions of <
acronym>BIND</
acronym> 9
supported the "binary label" (also known as "bitstring") format,
but support of binary labels has been completely removed per
Many applications in <
acronym>BIND</
acronym> 9 do not understand
the binary label format at all any more, and will return an
In particular, an authoritative <
acronym>BIND</
acronym> 9
name server will not load a zone file containing binary labels.
For an overview of the format and structure of IPv6 addresses,
see <
xref linkend="ipv6addresses"/>.
<
title>Address Lookups Using AAAA Records</
title>
The IPv6 AAAA record is a parallel to the IPv4 A record,
and, unlike the deprecated A6 record, specifies the entire
IPv6 address in a single record. For example,
host 3600 IN AAAA 2001:db8::1
Use of IPv4-in-IPv6 mapped addresses is not recommended.
If a host has an IPv4 address, use an A record, not
a AAAA, with <
literal>::ffff:192.168.42.1</
literal> as
<
title>Address to Name Lookups Using Nibble Format</
title>
When looking up an address in nibble format, the address
components are simply reversed, just as in IPv4, and
<
literal>
ip6.arpa.</
literal> is appended to the
For example, the following would provide reverse name lookup for
<
literal>2001:db8::1</
literal>.
<
title>The <
acronym>BIND</
acronym> 9 Lightweight Resolver</
title>
<
title>The Lightweight Resolver Library</
title>
Traditionally applications have been linked with a stub resolver
library that sends recursive DNS queries to a local caching name
IPv6 once introduced new complexity into the resolution process,
such as following A6 chains and DNAME records, and simultaneous
lookup of IPv4 and IPv6 addresses. Though most of the complexity was
then removed, these are hard or impossible
to implement in a traditional stub resolver.
<
acronym>BIND</
acronym> 9 therefore can also provide resolution
services to local clients
using a combination of a lightweight resolver library and a resolver
daemon process running on the local host. These communicate using
a simple UDP-based protocol, the "lightweight resolver protocol"
that is distinct from and simpler than the full DNS protocol.
<
title>Running a Resolver Daemon</
title>
To use the lightweight resolver interface, the system must
run the resolver daemon <
command>lwresd</
command> or a
name server configured with a <
command>lwres</
command>
By default, applications using the lightweight resolver library will
UDP requests to the IPv4 loopback address (127.0.0.1) on port 921.
address can be overridden by <
command>lwserver</
command>
The daemon currently only looks in the DNS, but in the future
it may use other sources such as <
filename>/
etc/
hosts</
filename>,
The <
command>lwresd</
command> daemon is essentially a
caching-only name server that responds to requests using the
resolver protocol rather than the DNS protocol. Because it needs
to run on each host, it is designed to require no or minimal
Unless configured otherwise, it uses the name servers listed on
<
command>nameserver</
command> lines in <
filename>/
etc/
resolv.conf</
filename>
as forwarders, but is also capable of doing the resolution
The <
command>lwresd</
command> daemon may also be
<
filename>
named.conf</
filename> style configuration file,
be configured to act as a lightweight resolver daemon using the
<
command>lwres</
command> statement in <
filename>
named.conf</
filename>.
<
title><
acronym>BIND</
acronym> 9 Configuration Reference</
title>
<
acronym>BIND</
acronym> 9 configuration is broadly similar
to <
acronym>BIND</
acronym> 8; however, there are a few new
of configuration, such as views. <
acronym>BIND</
acronym>
8 configuration files should work with few alterations in <
acronym>BIND</
acronym>
9, although more complex configurations should be reviewed to check
if they can be more efficiently implemented using the new features
found in <
acronym>BIND</
acronym> 9.
<
acronym>BIND</
acronym> 4 configuration files can be
converted to the new format
<
sect1 id="configuration_file_elements">
<
title>Configuration File Elements</
title>
Following is a list of elements used throughout the <
acronym>BIND</
acronym> configuration
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="2Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.855in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="3.770in"/>
<
varname>acl_name</
varname>
The name of an <
varname>address_match_list</
varname> as
defined by the <
command>acl</
command> statement.
<
varname>address_match_list</
varname>
<
varname>ip_addr</
varname>,
<
varname>ip_prefix</
varname>, <
varname>key_id</
varname>,
or <
varname>acl_name</
varname> elements, see
<
xref linkend="address_match_lists"/>.
<
varname>masters_list</
varname>
A named list of one or more <
varname>ip_addr</
varname>
with optional <
varname>key_id</
varname> and / or
<
varname>ip_port</
varname>.
A <
varname>masters_list</
varname> may include other
<
varname>masters_lists</
varname>.
<
varname>domain_name</
varname>
A quoted string which will be used as
<
varname>dotted_decimal</
varname>
One to four integers valued 0 through
255 separated by dots (`.'), such as <
command>123</
command>,
<
command>45.67</
command> or <
command>89.123.45.67</
command>.
<
varname>ip4_addr</
varname>
An IPv4 address with exactly four elements
in <
varname>dotted_decimal</
varname> notation.
<
varname>ip6_addr</
varname>
An IPv6 address, such as <
command>2001:db8::1234</
command>.
IPv6 scoped addresses that have ambiguity on their scope
disambiguated by an appropriate zone ID with the percent
It is strongly recommended to use string zone names rather
numeric identifiers, in order to be robust against system
However, since there is no standard mapping for such names
identifier values, currently only interface names as link
are supported, assuming one-to-one mapping between
For example, a link-local address <
command>fe80::1</
command> on the
link attached to the interface <
command>ne0</
command>
can be specified as <
command>fe80::1%ne0</
command>.
Note that on most systems link-local addresses always have
ambiguity, and need to be disambiguated.
<
varname>ip_addr</
varname>
An <
varname>ip4_addr</
varname> or <
varname>ip6_addr</
varname>.
<
varname>ip_port</
varname>
An IP port <
varname>number</
varname>.
<
varname>number</
varname> is limited to 0
through 65535, with values
below 1024 typically restricted to use by processes running
In some cases an asterisk (`*') character can be used as a
select a random high-numbered port.
<
varname>ip_prefix</
varname>
An IP network specified as an <
varname>ip_addr</
varname>,
followed by a slash (`/') and then the number of bits in the
Trailing zeros in a <
varname>ip_addr</
varname>
For example, <
command>127/8</
command> is the
network <
command>127.0.0.0</
command> with
netmask <
command>255.0.0.0</
command> and <
command>
1.2.3.0/
28</
command> is
network <
command>1.2.3.0</
command> with netmask <
command>255.255.255.240</
command>.
<
varname>key_id</
varname>
A <
varname>domain_name</
varname> representing
the name of a shared key, to be used for transaction
<
varname>key_list</
varname>
<
varname>key_id</
varname>s,
separated by semicolons and ending with a semicolon.
<
varname>number</
varname>
A non-negative 32 bit integer
(
i.e., a number between 0 and 4294967295, inclusive).
Its acceptable value might further
be limited by the context in which it is used.
<
varname>path_name</
varname>
A quoted string which will be used as
<
varname>size_spec</
varname>
A number, the word <
userinput>unlimited</
userinput>,
or the word <
userinput>default</
userinput>.
An <
varname>unlimited</
varname> <
varname>size_spec</
varname> requests unlimited
use, or the maximum available amount. A <
varname>default size_spec</
varname> uses
the limit that was in force when the server was started.
A <
varname>number</
varname> can optionally be
followed by a scaling factor:
<
userinput>K</
userinput> or <
userinput>k</
userinput>
<
userinput>M</
userinput> or <
userinput>m</
userinput>
<
userinput>G</
userinput> or <
userinput>g</
userinput> for gigabytes,
which scale by 1024, 1024*1024, and 1024*1024*1024
The value must be representable as a 64-bit unsigned integer
(0 to 18446744073709551615, inclusive).
Using <
varname>unlimited</
varname> is the best
to safely set a really large number.
<
varname>yes_or_no</
varname>
Either <
userinput>yes</
userinput> or <
userinput>no</
userinput>.
The words <
userinput>true</
userinput> and <
userinput>false</
userinput> are
also accepted, as are the numbers <
userinput>1</
userinput>
and <
userinput>0</
userinput>.
<
varname>dialup_option</
varname>
One of <
userinput>yes</
userinput>,
<
userinput>no</
userinput>, <
userinput>notify</
userinput>,
<
userinput>notify-passive</
userinput>, <
userinput>refresh</
userinput> or
<
userinput>passive</
userinput>.
When used in a zone, <
userinput>notify-passive</
userinput>,
<
userinput>refresh</
userinput>, and <
userinput>passive</
userinput>
are restricted to slave and stub zones.
<
sect2 id="address_match_lists">
<
title>Address Match Lists</
title>
<
programlisting><
varname>address_match_list</
varname> = address_match_list_element ;
<
optional> address_match_list_element; ... </
optional>
<
varname>address_match_list_element</
varname> = <
optional> ! </
optional> (ip_address <
optional>/length</
optional> |
key key_id | acl_name | { address_match_list } )
<
title>Definition and Usage</
title>
Address match lists are primarily used to determine access
control for various server operations. They are also used in
the <
command>listen-on</
command> and <
command>sortlist</
command>
which constitute an address match list can be any of the
<
simpara>an IP address (IPv4 or IPv6)</
simpara>
<
simpara>an IP prefix (in `/' notation)</
simpara>
a key ID, as defined by the <
command>key</
command>
<
simpara>the name of an address match list defined with
the <
command>acl</
command> statement
<
simpara>a nested address match list enclosed in braces</
simpara>
Elements can be negated with a leading exclamation mark (`!'),
and the match list names "any", "none", "localhost", and
are predefined. More information on those names can be found in
the description of the acl statement.
The addition of the key clause made the name of this syntactic
element something of a misnomer, since security keys can be used
to validate access without regard to a host or network address.
the term "address match list" is still used throughout the
When a given IP address or prefix is compared to an address
match list, the list is traversed in order until an element
The interpretation of a match depends on whether the list is being
for access control, defining listen-on ports, or in a sortlist,
and whether the element was negated.
When used as an access control list, a non-negated match allows
access and a negated match denies access. If there is no match,
access is denied. The clauses <
command>allow-notify</
command>,
<
command>allow-query</
command>, <
command>allow-query-cache</
command>,
<
command>allow-transfer</
command>,
<
command>allow-update</
command>, <
command>allow-update-forwarding</
command>,
and <
command>blackhole</
command> all use address match
Similarly, the listen-on option will cause the server to not
queries on any of the machine's addresses which do not match the
Because of the first-match aspect of the algorithm, an element
that defines a subset of another element in the list should come
before the broader element, regardless of whether either is
<
command>
1.2.3/
24; ! 1.2.3.13;</
command> the 1.2.3.13
completely useless because the algorithm will match any lookup for
Using <
command>! 1.2.3.13;
1.2.3/
24</
command> fixes
that problem by having 1.2.3.13 blocked by the negation but all
other 1.2.3.* hosts fall through.
<
title>Comment Syntax</
title>
The <
acronym>BIND</
acronym> 9 comment syntax allows for
anywhere that white space may appear in a <
acronym>BIND</
acronym> configuration
file. To appeal to programmers of all kinds, they can be written
<
programlisting>/* This is a <
acronym>BIND</
acronym> comment as in C */</
programlisting>
<
programlisting>// This is a <
acronym>BIND</
acronym> comment as in C++</
programlisting>
<
programlisting># This is a <
acronym>BIND</
acronym> comment as in common UNIX shells and perl</
programlisting>
<
title>Definition and Usage</
title>
Comments may appear anywhere that whitespace may appear in
a <
acronym>BIND</
acronym> configuration file.
C-style comments start with the two characters /* (slash,
star) and end with */ (star, slash). Because they are completely
delimited with these characters, they can be used to comment only
a portion of a line or to span multiple lines.
C-style comments cannot be nested. For example, the following
is not valid because the entire comment ends with the first */:
<
programlisting>/* This is the start of a comment.
This is still part of the comment.
/* This is an incorrect attempt at nesting a comment. */
This is no longer in any comment. */
C++-style comments start with the two characters // (slash,
slash) and continue to the end of the physical line. They cannot
be continued across multiple physical lines; to have one logical
comment span multiple lines, each line must use the // pair.
<
programlisting>// This is the start of a comment. The next line
// is a new comment, even though it is logically
// part of the previous comment.
Shell-style (or perl-style, if you prefer) comments start
with the character <
literal>#</
literal> (number sign)
and continue to the end of the
physical line, as in C++ comments.
<
programlisting># This is the start of a comment. The next line
# is a new comment, even though it is logically
# part of the previous comment.
You cannot use the semicolon (`;') character
to start a comment such as you would in a zone file. The
semicolon indicates the end of a configuration
<
sect1 id="Configuration_File_Grammar">
<
title>Configuration File Grammar</
title>
A <
acronym>BIND</
acronym> 9 configuration consists of
Statements end with a semicolon. Statements and comments are the
only elements that can appear without enclosing braces. Many
statements contain a block of sub-statements, which are also
terminated with a semicolon.
The following statements are supported:
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="2Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.336in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="3.778in"/>
<
para><
command>acl</
command></
para>
defines a named IP address
matching list, for access control and other uses.
<
para><
command>controls</
command></
para>
declares control channels to be used
by the <
command>rndc</
command> utility.
<
para><
command>include</
command></
para>
<
para><
command>key</
command></
para>
specifies key information for use in
authentication and authorization using TSIG.
<
para><
command>logging</
command></
para>
specifies what the server logs, and where
the log messages are sent.
<
para><
command>lwres</
command></
para>
configures <
command>named</
command> to
also act as a light weight resolver daemon (<
command>lwresd</
command>).
<
para><
command>masters</
command></
para>
defines a named masters list for
inclusion in stub and slave zone masters clauses.
<
para><
command>options</
command></
para>
controls global server configuration
options and sets defaults for other statements.
<
para><
command>server</
command></
para>
sets certain configuration options on
<
para><
command>trusted-keys</
command></
para>
defines trusted DNSSEC keys.
<
para><
command>view</
command></
para>
<
para><
command>zone</
command></
para>
The <
command>logging</
command> and
<
command>options</
command> statements may only occur once
<
title><
command>acl</
command> Statement Grammar</
title>
<
programlisting><
command>acl</
command> acl-name {
<
title><
command>acl</
command> Statement Definition and
The <
command>acl</
command> statement assigns a symbolic
name to an address match list. It gets its name from a primary
use of address match lists: Access Control Lists (ACLs).
Note that an address match list's name must be defined
with <
command>acl</
command> before it can be used
forward references are allowed.
The following ACLs are built-in:
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.130in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="4.000in"/>
<
para><
command>any</
command></
para>
<
para><
command>none</
command></
para>
<
para><
command>localhost</
command></
para>
Matches the IPv4 and IPv6 addresses of all network
interfaces on the system.
<
para><
command>localnets</
command></
para>
Matches any host on an IPv4 or IPv6 network
for which the system has an interface.
Some systems do not provide a way to determine the prefix
In such a case, <
command>localnets</
command>
IPv6 addresses, just like <
command>localhost</
command>.
<
title><
command>controls</
command> Statement Grammar</
title>
<
programlisting><
command>controls</
command> {
[ inet ( ip_addr | * ) [ port ip_port ] allow { <
replaceable> address_match_list </
replaceable> }
keys { <
replaceable>key_list</
replaceable> }; ]
[ unix <
replaceable>path</
replaceable> perm <
replaceable>number</
replaceable> owner <
replaceable>number</
replaceable> group <
replaceable>number</
replaceable> keys { <
replaceable>key_list</
replaceable> }; ]
<
sect2 id="controls_statement_definition_and_usage">
<
title><
command>controls</
command> Statement Definition and
The <
command>controls</
command> statement declares control
channels to be used by system administrators to control the
operation of the name server. These control channels are
used by the <
command>rndc</
command> utility to send
commands to and retrieve non-DNS results from a name server.
An <
command>inet</
command> control channel is a TCP socket
listening at the specified <
command>ip_port</
command> on the
specified <
command>ip_addr</
command>, which can be an IPv4 or IPv6
address. An <
command>ip_addr</
command> of <
literal>*</
literal> is
interpreted as the IPv4 wildcard address; connections will be
accepted on any of the system's IPv4 addresses.
To listen on the IPv6 wildcard address,
use an <
command>ip_addr</
command> of <
literal>::</
literal>.
If you will only use <
command>rndc</
command> on the local host,
using the loopback address (<
literal>127.0.0.1</
literal>
or <
literal>::1</
literal>) is recommended for maximum security.
If no port is specified, port 953 is used.
"<
literal>*</
literal>" cannot be used for <
command>ip_port</
command>.
The ability to issue commands over the control channel is
restricted by the <
command>allow</
command> and
<
command>keys</
command> clauses.
Connections to the control channel are permitted based on the
<
command>address_match_list</
command>. This is for simple
IP address based filtering only; any <
command>key_id</
command>
elements of the <
command>address_match_list</
command>
An <
command>unix</
command> control channel is a UNIX domain
socket listening at the specified path in the file system.
Access to the socket is specified by the <
command>perm</
command>,
<
command>owner</
command> and <
command>group</
command> clauses.
Note on some platforms (SunOS and Solaris) the permissions
(<
command>perm</
command>) are applied to the parent directory
as the permissions on the socket itself are ignored.
The primary authorization mechanism of the command
channel is the <
command>key_list</
command>, which
contains a list of <
command>key_id</
command>s.
Each <
command>key_id</
command> in the <
command>key_list</
command>
is authorized to execute commands over the control channel.
See <
xref linkend="rndc"/> in <
xref linkend="admin_tools"/>)
for information about configuring keys in <
command>rndc</
command>.
If no <
command>controls</
command> statement is present,
<
command>named</
command> will set up a default
control channel listening on the loopback address 127.0.0.1
and its IPv6 counterpart ::1.
In this case, and also when the <
command>controls</
command> statement
is present but does not have a <
command>keys</
command> clause,
<
command>named</
command> will attempt to load the command channel key
from the file <
filename>
rndc.key</
filename> in
<
filename>/etc</
filename> (or whatever <
varname>sysconfdir</
varname>
was specified as when <
acronym>BIND</
acronym> was built).
To create a <
filename>
rndc.key</
filename> file, run
<
userinput>rndc-confgen -a</
userinput>.
The <
filename>
rndc.key</
filename> feature was created to
ease the transition of systems from <
acronym>BIND</
acronym> 8,
which did not have digital signatures on its command channel
messages and thus did not have a <
command>keys</
command> clause.
It makes it possible to use an existing <
acronym>BIND</
acronym> 8
configuration file in <
acronym>BIND</
acronym> 9 unchanged,
and still have <
command>rndc</
command> work the same way
<
command>ndc</
command> worked in BIND 8, simply by executing the
command <
userinput>rndc-confgen -a</
userinput> after BIND 9 is
Since the <
filename>
rndc.key</
filename> feature
is only intended to allow the backward-compatible usage of
<
acronym>BIND</
acronym> 8 configuration files, this
have a high degree of configurability. You cannot easily change
the key name or the size of the secret, so you should make a
<
filename>
rndc.conf</
filename> with your own key if you
those things. The <
filename>
rndc.key</
filename> file
permissions set such that only the owner of the file (the user that
<
command>named</
command> is running as) can access it.
desire greater flexibility in allowing other users to access
<
command>rndc</
command> commands then you need to create
<
filename>
rndc.conf</
filename> and make it group
that contains the users who should have access.
To disable the command channel, use an empty
<
command>controls</
command> statement:
<
command>controls { };</
command>.
<
title><
command>include</
command> Statement Grammar</
title>
<
programlisting>include <
replaceable>filename</
replaceable>;</
programlisting>
<
title><
command>include</
command> Statement Definition and
The <
command>include</
command> statement inserts the
specified file at the point where the <
command>include</
command>
statement is encountered. The <
command>include</
command>
statement facilitates the administration of configuration
by permitting the reading or writing of some things but not
others. For example, the statement could include private keys
that are readable only by the name server.
<
title><
command>key</
command> Statement Grammar</
title>
<
programlisting>key <
replaceable>key_id</
replaceable> {
algorithm <
replaceable>string</
replaceable>;
secret <
replaceable>string</
replaceable>;
<
title><
command>key</
command> Statement Definition and Usage</
title>
The <
command>key</
command> statement defines a shared
secret key for use with TSIG (see <
xref linkend="tsig"/>)
(see <
xref linkend="controls_statement_definition_and_usage"/>).
The <
command>key</
command> statement can occur at the
of the configuration file or inside a <
command>view</
command>
statement. Keys defined in top-level <
command>key</
command>
statements can be used in all views. Keys intended for use in
a <
command>controls</
command> statement
(see <
xref linkend="controls_statement_definition_and_usage"/>)
must be defined at the top level.
The <
replaceable>key_id</
replaceable>, also known as the
key name, is a domain name uniquely identifying the key. It can
be used in a <
command>server</
command>
statement to cause requests sent to that
server to be signed with this key, or in address match lists to
verify that incoming requests have been signed with a key
matching this name, algorithm, and secret.
The <
replaceable>algorithm_id</
replaceable> is a string
algorithm currently supported with TSIG authentication is
<
literal>hmac-md5</
literal>. The
<
replaceable>secret_string</
replaceable> is the secret
used by the algorithm, and is treated as a base-64 encoded
<
title><
command>logging</
command> Statement Grammar</
title>
<
programlisting><
command>logging</
command> {
[ <
command>channel</
command> <
replaceable>channel_name</
replaceable> {
( <
command>file</
command> <
replaceable>path name</
replaceable>
[ <
command>versions</
command> ( <
replaceable>number</
replaceable> | <
command>unlimited</
command> ) ]
[ <
command>size</
command> <
replaceable>size spec</
replaceable> ]
| <
command>syslog</
command> <
replaceable>syslog_facility</
replaceable>
| <
command>stderr</
command>
| <
command>null</
command> );
[ <
command>severity</
command> (<
option>critical</
option> | <
option>error</
option> | <
option>warning</
option> | <
option>notice</
option> |
<
option>info</
option> | <
option>debug</
option> [ <
replaceable>level</
replaceable> ] | <
option>dynamic</
option> ); ]
[ <
command>print-category</
command> <
option>yes</
option> or <
option>no</
option>; ]
[ <
command>print-severity</
command> <
option>yes</
option> or <
option>no</
option>; ]
[ <
command>print-time</
command> <
option>yes</
option> or <
option>no</
option>; ]
[ <
command>category</
command> <
replaceable>category_name</
replaceable> {
<
replaceable>channel_name</
replaceable> ; [ <
replaceable>channel_name</
replaceable> ; ... ]
<
title><
command>logging</
command> Statement Definition and
The <
command>logging</
command> statement configures a
variety of logging options for the name server. Its <
command>channel</
command> phrase
associates output methods, format options and severity levels with
a name that can then be used with the <
command>category</
command> phrase
to select how various classes of messages are logged.
Only one <
command>logging</
command> statement is used to
as many channels and categories as are wanted. If there is no <
command>logging</
command> statement,
the logging configuration will be:
<
programlisting>logging {
category default { default_syslog; default_debug; };
category unmatched { null; };
In <
acronym>BIND</
acronym> 9, the logging configuration
the entire configuration file has been parsed. In <
acronym>BIND</
acronym> 8, it was
established as soon as the <
command>logging</
command>
was parsed. When the server is starting up, all logging messages
regarding syntax errors in the configuration file go to the default
channels, or to standard error if the "<
option>-g</
option>" option
<
title>The <
command>channel</
command> Phrase</
title>
All log output goes to one or more <
emphasis>channels</
emphasis>;
you can make as many of them as you want.
Every channel definition must include a destination clause that
says whether messages selected for the channel go to a file, to a
particular syslog facility, to the standard error stream, or are
discarded. It can optionally also limit the message severity level
that will be accepted by the channel (the default is
<
command>info</
command>), and whether to include a
<
command>named</
command>-generated time stamp, the
and/
or severity level (the default is not to include any).
The <
command>null</
command> destination clause
causes all messages sent to the channel to be discarded;
in that case, other options for the channel are meaningless.
The <
command>file</
command> destination clause directs
to a disk file. It can include limitations
both on how large the file is allowed to become, and how many
of the file will be saved each time the file is opened.
If you use the <
command>versions</
command> log file
<
command>named</
command> will retain that many backup
renaming them when opening. For example, if you choose to keep 3
of the file <
filename>
lamers.log</
filename> then just
You can say <
command>versions unlimited</
command> to
If a <
command>size</
command> option is associated with
then renaming is only done when the file being opened exceeds the
indicated size. No backup versions are kept by default; any
log file is simply appended.
The <
command>size</
command> option for files is used
growth. If the file ever exceeds the size, then <
command>named</
command> will
stop writing to the file unless it has a <
command>versions</
command> option
associated with it. If backup versions are kept, the files are
described above and a new one begun. If there is no
<
command>versions</
command> option, no more data will
until some out-of-band mechanism removes or truncates the log to
maximum size. The default behavior is not to limit the size of
Example usage of the <
command>size</
command> and
<
command>versions</
command> options:
<
programlisting>channel an_example_channel {
The <
command>syslog</
command> destination clause
channel to the system log. Its argument is a
syslog facility as described in the <
command>syslog</
command> man
page. Known facilities are <
command>kern</
command>, <
command>user</
command>,
<
command>mail</
command>, <
command>daemon</
command>, <
command>auth</
command>,
<
command>syslog</
command>, <
command>lpr</
command>, <
command>news</
command>,
<
command>uucp</
command>, <
command>cron</
command>, <
command>authpriv</
command>,
<
command>ftp</
command>, <
command>local0</
command>, <
command>local1</
command>,
<
command>local2</
command>, <
command>local3</
command>, <
command>local4</
command>,
<
command>local5</
command>, <
command>local6</
command> and
<
command>local7</
command>, however not all facilities
How <
command>syslog</
command> will handle messages
this facility is described in the <
command>
syslog.conf</
command> man
page. If you have a system which uses a very old version of <
command>syslog</
command> that
only uses two arguments to the <
command>openlog()</
command> function,
then this clause is silently ignored.
The <
command>severity</
command> clause works like <
command>syslog</
command>'s
"priorities", except that they can also be used if you are writing
straight to a file rather than using <
command>syslog</
command>.
Messages which are not at least of the severity level given will
not be selected for the channel; messages of higher severity
If you are using <
command>syslog</
command>, then the <
command>
syslog.conf</
command> priorities
will also determine what eventually passes through. For example,
defining a channel facility and severity as <
command>daemon</
command> and <
command>debug</
command> but
cause messages of severity <
command>info</
command> and
<
command>notice</
command> to
be dropped. If the situation were reversed, with <
command>named</
command> writing
messages of only <
command>warning</
command> or higher,
then <
command>syslogd</
command> would
print all messages it received from the channel.
The <
command>stderr</
command> destination clause
channel to the server's standard error stream. This is intended
use when the server is running as a foreground process, for
when debugging a configuration.
The server can supply extensive debugging information when
it is in debugging mode. If the server's global debug level is
than zero, then debugging mode will be active. The global debug
level is set either by starting the <
command>named</
command> server
with the <
option>-d</
option> flag followed by a positive integer,
or by running <
command>rndc trace</
command>.
can be set to zero, and debugging mode turned off, by running <
command>ndc
notrace</
command>. All debugging messages in the server have a debug
level, and higher debug levels give more detailed output. Channels
that specify a specific debug severity, for example:
<
programlisting>channel specific_debug_level {
will get debugging output of level 3 or less any time the
server is in debugging mode, regardless of the global debugging
level. Channels with <
command>dynamic</
command>
server's global debug level to determine what messages to print.
If <
command>print-time</
command> has been turned on,
the date and time will be logged. <
command>print-time</
command> may
be specified for a <
command>syslog</
command> channel,
pointless since <
command>syslog</
command> also prints
time. If <
command>print-category</
command> is
category of the message will be logged as well. Finally, if <
command>print-severity</
command> is
on, then the severity level of the message will be logged. The <
command>print-</
command> options may
be used in any combination, and will always be printed in the
order: time, category, severity. Here is an example where all
three <
command>print-</
command> options
<
computeroutput>28-Feb-2000 15:05:32.863 general: notice: running</
computeroutput>
There are four predefined channels that are used for
<
command>named</
command>'s default logging as follows.
used is described in <
xref linkend="the_category_phrase"/>.
<
programlisting>channel default_syslog {
syslog daemon; // send to syslog's daemon
severity info; // only send priority info
// Note: stderr is used instead
// if the server is started
severity dynamic; // log at the server's
stderr; // writes to stderr
severity info; // only send priority info
null; // toss anything sent to
The <
command>default_debug</
command> channel has the
property that it only produces output when the server's debug
nonzero. It normally writes to a file <
filename>
named.run</
filename>
in the server's working directory.
For security reasons, when the "<
option>-u</
option>"
command line option is used, the <
filename>
named.run</
filename> file
is created only after <
command>named</
command> has
new UID, and any debug output generated while <
command>named</
command> is
starting up and still running as root is discarded. If you need
to capture this output, you must run the server with the "<
option>-g</
option>"
option and redirect standard error to a file.
Once a channel is defined, it cannot be redefined. Thus you
cannot alter the built-in channels directly, but you can modify
the default logging by pointing categories at channels you have
<
sect3 id="the_category_phrase">
<
title>The <
command>category</
command> Phrase</
title>
There are many categories, so you can send the logs you want
to see wherever you want, without seeing logs you don't want. If
you don't specify a list of channels for a category, then log
in that category will be sent to the <
command>default</
command> category
instead. If you don't specify a default category, the following
"default default" is used:
<
programlisting>category default { default_syslog; default_debug; };
As an example, let's say you want to log security events to
a file, but you also want keep the default logging behavior. You'd
<
programlisting>channel my_security_channel {
To discard all messages in a category, specify the <
command>null</
command> channel:
<
programlisting>category xfer-out { null; };
category notify { null; };
Following are the available categories and brief descriptions
of the types of log information they contain. More
categories may be added in future <
acronym>BIND</
acronym> releases.
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="3.350in"/>
<
para><
command>default</
command></
para>
The default category defines the logging
options for those categories where no specific
<
para><
command>general</
command></
para>
The catch-all. Many things still aren't
classified into categories, and they all end up here.
<
para><
command>database</
command></
para>
Messages relating to the databases used
internally by the name server to store zone and cache
<
para><
command>security</
command></
para>
Approval and denial of requests.
<
para><
command>config</
command></
para>
Configuration file parsing and processing.
<
para><
command>resolver</
command></
para>
DNS resolution, such as the recursive
lookups performed on behalf of clients by a caching name
<
para><
command>xfer-in</
command></
para>
Zone transfers the server is receiving.
<
para><
command>xfer-out</
command></
para>
Zone transfers the server is sending.
<
para><
command>notify</
command></
para>
<
para><
command>client</
command></
para>
Processing of client requests.
<
para><
command>unmatched</
command></
para>
Messages that named was unable to determine the
class of or for which there was no matching <
command>view</
command>.
A one line summary is also logged to the <
command>client</
command> category.
This category is best sent to a file or stderr, by
the <
command>null</
command> channel.
<
para><
command>network</
command></
para>
<
para><
command>update</
command></
para>
<
para><
command>update-security</
command></
para>
Approval and denial of update requests.
<
para><
command>queries</
command></
para>
Specify where queries should be logged to.
At startup, specifing the category <
command>queries</
command> will also
enable query logging unless <
command>querylog</
command> option has been
The query log entry reports the client's IP address and
query name, class and type. It also reports whether the
flag was set (+ if set, - if not set), EDNS was in use
<
computeroutput>client 127.0.0.1#62536: query:
www.example.com IN AAAA +SE</
computeroutput>
<
computeroutput>client ::1#62537: query:
www.example.net IN AAAA -SE</
computeroutput>
<
para><
command>dispatch</
command></
para>
Dispatching of incoming packets to the
server modules where they are to be processed.
<
para><
command>dnssec</
command></
para>
DNSSEC and TSIG protocol processing.
<
para><
command>lame-servers</
command></
para>
Lame servers. These are misconfigurations
in remote servers, discovered by BIND 9 when trying to
those servers during resolution.
<
para><
command>delegation-only</
command></
para>
Delegation only. Logs queries that have have
been forced to NXDOMAIN as the result of a
a <
command>delegation-only</
command> in a
hint or stub zone declaration.
<
title><
command>lwres</
command> Statement Grammar</
title>
This is the grammar of the <
command>lwres</
command>
statement in the <
filename>
named.conf</
filename> file:
<
programlisting><
command>lwres</
command> {
<
optional> listen-on { <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; <
optional> <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; ... </
optional> }; </
optional>
<
optional> view <
replaceable>view_name</
replaceable>; </
optional>
<
optional> search { <
replaceable>domain_name</
replaceable> ; <
optional> <
replaceable>domain_name</
replaceable> ; ... </
optional> }; </
optional>
<
optional> ndots <
replaceable>number</
replaceable>; </
optional>
<
title><
command>lwres</
command> Statement Definition and Usage</
title>
The <
command>lwres</
command> statement configures the
server to also act as a lightweight resolver server, see
<
xref linkend="lwresd"/>. There may be be multiple
<
command>lwres</
command> statements configuring
lightweight resolver servers with different properties.
The <
command>listen-on</
command> statement specifies a
addresses (and ports) that this instance of a lightweight resolver
should accept requests on. If no port is specified, port 921 is
If this statement is omitted, requests will be accepted on
The <
command>view</
command> statement binds this
lightweight resolver daemon to a view in the DNS namespace, so that
response will be constructed in the same manner as a normal DNS
matching this view. If this statement is omitted, the default view
used, and if there is no default view, an error is triggered.
The <
command>search</
command> statement is equivalent to
<
command>search</
command> statement in
which are appended to relative names in queries.
The <
command>ndots</
command> statement is equivalent to
<
command>ndots</
command> statement in
number of dots in a relative domain name that should result in an
exact match lookup before search path elements are appended.
<
title><
command>masters</
command> Statement Grammar</
title>
<
command>masters</
command> <
replaceable>name</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> { ( <
replaceable>masters_list</
replaceable> | <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> <
optional>key <
replaceable>key</
replaceable></
optional> ) ; <
optional>...</
optional> };
<
title><
command>masters</
command> Statement Definition and
<
para><
command>masters</
command>
lists allow for a common set of masters to be easily used by
multiple stub and slave zones.
<
title><
command>options</
command> Statement Grammar</
title>
This is the grammar of the <
command>options</
command>
statement in the <
filename>
named.conf</
filename> file:
<
programlisting>options {
<
optional> version <
replaceable>version_string</
replaceable>; </
optional>
<
optional> hostname <
replaceable>hostname_string</
replaceable>; </
optional>
<
optional> server-id <
replaceable>server_id_string</
replaceable>; </
optional>
<
optional> directory <
replaceable>path_name</
replaceable>; </
optional>
<
optional> key-directory <
replaceable>path_name</
replaceable>; </
optional>
<
optional> named-xfer <
replaceable>path_name</
replaceable>; </
optional>
<
optional> tkey-domain <
replaceable>domainname</
replaceable>; </
optional>
<
optional> tkey-dhkey <
replaceable>key_name</
replaceable> <
replaceable>key_tag</
replaceable>; </
optional>
<
optional> dump-file <
replaceable>path_name</
replaceable>; </
optional>
<
optional> memstatistics-file <
replaceable>path_name</
replaceable>; </
optional>
<
optional> pid-file <
replaceable>path_name</
replaceable>; </
optional>
<
optional> statistics-file <
replaceable>path_name</
replaceable>; </
optional>
<
optional> zone-statistics <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> auth-nxdomain <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> deallocate-on-exit <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> dialup <
replaceable>dialup_option</
replaceable>; </
optional>
<
optional> fake-iquery <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> fetch-glue <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> flush-zones-on-shutdown <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> has-old-clients <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> host-statistics <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> host-statistics-max <
replaceable>number</
replaceable>; </
optional>
<
optional> minimal-responses <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> multiple-cnames <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> notify <
replaceable>yes_or_no</
replaceable> | <
replaceable>explicit</
replaceable> | <
replaceable>master-only</
replaceable>; </
optional>
<
optional> recursion <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> rfc2308-type1 <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> use-id-pool <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> maintain-ixfr-base <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> dnssec-enable <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> dnssec-lookaside <
replaceable>domain</
replaceable> trust-anchor <
replaceable>domain</
replaceable>; </
optional>
<
optional> dnssec-must-be-secure <
replaceable>domain yes_or_no</
replaceable>; </
optional>
<
optional> forward ( <
replaceable>only</
replaceable> | <
replaceable>first</
replaceable> ); </
optional>
<
optional> forwarders { <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; <
optional> <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; ... </
optional> }; </
optional>
<
optional> dual-stack-servers <
optional>port <
replaceable>ip_port</
replaceable></
optional> {
( <
replaceable>domain_name</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> |
<
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ) ;
<
optional> check-names ( <
replaceable>master</
replaceable> | <
replaceable>slave</
replaceable> | <
replaceable>response</
replaceable> )
( <
replaceable>warn</
replaceable> | <
replaceable>fail</
replaceable> | <
replaceable>ignore</
replaceable> ); </
optional>
<
optional> check-mx ( <
replaceable>warn</
replaceable> | <
replaceable>fail</
replaceable> | <
replaceable>ignore</
replaceable> ); </
optional>
<
optional> check-wildcard <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> integrity-checks <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> allow-notify { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-query { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-query-cache { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-transfer { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-recursion { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-update { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-update-forwarding { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-v6-synthesis { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> blackhole { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> avoid-v4-udp-ports { <
replaceable>port_list</
replaceable> }; </
optional>
<
optional> avoid-v6-udp-ports { <
replaceable>port_list</
replaceable> }; </
optional>
<
optional> listen-on <
optional> port <
replaceable>ip_port</
replaceable> </
optional> { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> listen-on-v6 <
optional> port <
replaceable>ip_port</
replaceable> </
optional> { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> query-source ( ( <
replaceable>ip4_addr</
replaceable> | <
replaceable>*</
replaceable> )
<
optional> port ( <
replaceable>ip_port</
replaceable> | <
replaceable>*</
replaceable> ) </
optional> |
<
optional> address ( <
replaceable>ip4_addr</
replaceable> | <
replaceable>*</
replaceable> ) </
optional>
<
optional> port ( <
replaceable>ip_port</
replaceable> | <
replaceable>*</
replaceable> ) </
optional> ) ; </
optional>
<
optional> query-source-v6 ( ( <
replaceable>ip6_addr</
replaceable> | <
replaceable>*</
replaceable> )
<
optional> port ( <
replaceable>ip_port</
replaceable> | <
replaceable>*</
replaceable> ) </
optional> |
<
optional> address ( <
replaceable>ip6_addr</
replaceable> | <
replaceable>*</
replaceable> ) </
optional>
<
optional> port ( <
replaceable>ip_port</
replaceable> | <
replaceable>*</
replaceable> ) </
optional> ) ; </
optional>
<
optional> max-transfer-time-in <
replaceable>number</
replaceable>; </
optional>
<
optional> max-transfer-time-out <
replaceable>number</
replaceable>; </
optional>
<
optional> max-transfer-idle-in <
replaceable>number</
replaceable>; </
optional>
<
optional> max-transfer-idle-out <
replaceable>number</
replaceable>; </
optional>
<
optional> tcp-clients <
replaceable>number</
replaceable>; </
optional>
<
optional> recursive-clients <
replaceable>number</
replaceable>; </
optional>
<
optional> serial-query-rate <
replaceable>number</
replaceable>; </
optional>
<
optional> serial-queries <
replaceable>number</
replaceable>; </
optional>
<
optional> tcp-listen-queue <
replaceable>number</
replaceable>; </
optional>
<
optional> transfer-format <
replaceable>( one-answer | many-answers )</
replaceable>; </
optional>
<
optional> transfers-in <
replaceable>number</
replaceable>; </
optional>
<
optional> transfers-out <
replaceable>number</
replaceable>; </
optional>
<
optional> transfers-per-ns <
replaceable>number</
replaceable>; </
optional>
<
optional> transfer-source (<
replaceable>ip4_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> transfer-source-v6 (<
replaceable>ip6_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> alt-transfer-source (<
replaceable>ip4_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> alt-transfer-source-v6 (<
replaceable>ip6_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> use-alt-transfer-source <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> notify-source (<
replaceable>ip4_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> notify-source-v6 (<
replaceable>ip6_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> also-notify { <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; <
optional> <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; ... </
optional> }; </
optional>
<
optional> max-ixfr-log-size <
replaceable>number</
replaceable>; </
optional>
<
optional> max-journal-size <
replaceable>size_spec</
replaceable>; </
optional>
<
optional> coresize <
replaceable>size_spec</
replaceable> ; </
optional>
<
optional> datasize <
replaceable>size_spec</
replaceable> ; </
optional>
<
optional> files <
replaceable>size_spec</
replaceable> ; </
optional>
<
optional> stacksize <
replaceable>size_spec</
replaceable> ; </
optional>
<
optional> cleaning-interval <
replaceable>number</
replaceable>; </
optional>
<
optional> heartbeat-interval <
replaceable>number</
replaceable>; </
optional>
<
optional> interface-interval <
replaceable>number</
replaceable>; </
optional>
<
optional> statistics-interval <
replaceable>number</
replaceable>; </
optional>
<
optional> topology { <
replaceable>address_match_list</
replaceable> }</
optional>;
<
optional> sortlist { <
replaceable>address_match_list</
replaceable> }</
optional>;
<
optional> rrset-order { <
replaceable>order_spec</
replaceable> ; <
optional> <
replaceable>order_spec</
replaceable> ; ... </
optional> </
optional> };
<
optional> lame-ttl <
replaceable>number</
replaceable>; </
optional>
<
optional> max-ncache-ttl <
replaceable>number</
replaceable>; </
optional>
<
optional> max-cache-ttl <
replaceable>number</
replaceable>; </
optional>
<
optional> sig-validity-interval <
replaceable>number</
replaceable> ; </
optional>
<
optional> min-roots <
replaceable>number</
replaceable>; </
optional>
<
optional> use-ixfr <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> provide-ixfr <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> request-ixfr <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> treat-cr-as-space <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> min-refresh-time <
replaceable>number</
replaceable> ; </
optional>
<
optional> max-refresh-time <
replaceable>number</
replaceable> ; </
optional>
<
optional> min-retry-time <
replaceable>number</
replaceable> ; </
optional>
<
optional> max-retry-time <
replaceable>number</
replaceable> ; </
optional>
<
optional> port <
replaceable>ip_port</
replaceable>; </
optional>
<
optional> additional-from-auth <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> additional-from-cache <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> random-device <
replaceable>path_name</
replaceable> ; </
optional>
<
optional> max-cache-size <
replaceable>size_spec</
replaceable> ; </
optional>
<
optional> match-mapped-addresses <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> preferred-glue ( <
replaceable>A</
replaceable> | <
replaceable>AAAA</
replaceable> | <
replaceable>NONE</
replaceable> ); </
optional>
<
optional> edns-udp-size <
replaceable>number</
replaceable>; </
optional>
<
optional> root-delegation-only <
optional> exclude { <
replaceable>namelist</
replaceable> } </
optional> ; </
optional>
<
optional> querylog <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> disable-algorithms <
replaceable>domain</
replaceable> { <
replaceable>algorithm</
replaceable>; <
optional> <
replaceable>algorithm</
replaceable>; </
optional> }; </
optional>
<
optional> use-additional-cache <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> acache-cleaning-interval <
replaceable>number</
replaceable>; </
optional>
<
optional> max-acache-size <
replaceable>size_spec</
replaceable> ; </
optional>
<
optional> clients-per-query <
replaceable>number</
replaceable> ; </
optional>
<
optional> max-clients-per-query <
replaceable>number</
replaceable> ; </
optional>
<
optional> masterfile-format (<
constant>text</
constant>|<
constant>raw</
constant>) ; </
optional>
<
title><
command>options</
command> Statement Definition and
The <
command>options</
command> statement sets up global
to be used by <
acronym>BIND</
acronym>. This statement
once in a configuration file. If there is no <
command>options</
command>
statement, an options block with each option set to its default will
<
term><
command>directory</
command></
term>
The working directory of the server.
Any non-absolute pathnames in the configuration file will be
as relative to this directory. The default location for most
If a directory is not specified, the working directory
defaults to `<
filename>.</
filename>', the directory from
was started. The directory specified should be an absolute
<
term><
command>key-directory</
command></
term>
When performing dynamic update of secure zones, the
directory where the public and private key files should be
if different than the current working directory. The
must be an absolute path.
<
term><
command>named-xfer</
command></
term>
<
emphasis>This option is obsolete.</
emphasis>
It was used in <
acronym>BIND</
acronym> 8 to
specify the pathname to the <
command>named-xfer</
command> program.
In <
acronym>BIND</
acronym> 9, no separate <
command>named-xfer</
command> program is
needed; its functionality is built into the name server.
<
term><
command>tkey-domain</
command></
term>
The domain appended to the names of all
shared keys generated with
<
command>TKEY</
command>. When a client
requests a <
command>TKEY</
command> exchange, it
the desired name for the key. If present, the name of the
key will be "<
varname>client specified part</
varname>" +
"<
varname>tkey-domain</
varname>".
Otherwise, the name of the shared key will be "<
varname>random hex
digits</
varname>" + "<
varname>tkey-domain</
varname>". In most cases,
the <
command>domainname</
command> should be the
<
term><
command>tkey-dhkey</
command></
term>
The Diffie-Hellman key used by the server
to generate shared keys with clients using the Diffie-Hellman
of <
command>TKEY</
command>. The server must be
public and private keys from files in the working directory.
most cases, the keyname should be the server's host name.
<
term><
command>dump-file</
command></
term>
The pathname of the file the server dumps
the database to when instructed to do so with
<
command>rndc dumpdb</
command>.
If not specified, the default is <
filename>
named_dump.db</
filename>.
<
term><
command>memstatistics-file</
command></
term>
The pathname of the file the server writes memory
usage statistics to on exit. If not specified,
<
term><
command>pid-file</
command></
term>
The pathname of the file the server writes its process ID
in. If not specified, the default is <
filename>/
var/
run/
named.pid</
filename>.
The pid-file is used by programs that want to send signals to
name server. Specifying <
command>pid-file none</
command> disables the
use of a PID file — no file will be written and any
existing one will be removed. Note that <
command>none</
command>
is a keyword, not a file name, and therefore is not enclosed
<
term><
command>statistics-file</
command></
term>
The pathname of the file the server appends statistics
to when instructed to do so using <
command>rndc stats</
command>.
If not specified, the default is <
filename>
named.stats</
filename> in the
server's current directory. The format of the file is
in <
xref linkend="statsfile"/>
<
term><
command>port</
command></
term>
The
UDP/
TCP port number the server uses for
receiving and sending DNS protocol traffic.
The default is 53. This option is mainly intended for server
a server using a port other than 53 will not be able to
<
term><
command>random-device</
command></
term>
The source of entropy to be used by the server. Entropy is
for DNSSEC operations, such as TKEY transactions and dynamic
zones. This options specifies the device (or file) from which
entropy. If this is a file, operations requiring entropy will
file has been exhausted. If not specified, the default value
(or equivalent) when present, and none otherwise. The
<
command>random-device</
command> option takes
the initial configuration load at server startup time and
is ignored on subsequent reloads.
<
term><
command>preferred-glue</
command></
term>
If specified the listed type (A or AAAA) will be emitted
in the additional section of a query response.
The default is not to preference any type (NONE).
<
term><
command>root-delegation-only</
command></
term>
Turn on enforcement of delegation-only in TLDs and root zones
Note some TLDs are NOT delegation only (
e.g. "DE", "LV", "US"
root-delegation-only exclude { "de"; "lv"; "us"; "museum"; };
<
term><
command>disable-algorithms</
command></
term>
Disable the specified DNSSEC algorithms at and below the
Multiple <
command>disable-algorithms</
command>
Only the most specific will be applied.
<
term><
command>dnssec-lookaside</
command></
term>
When set <
command>dnssec-lookaside</
command>
validator with an alternate method to validate DNSKEY records
top of a zone. When a DNSKEY is at or below a domain
deepest <
command>dnssec-lookaside</
command>, and
the normal dnssec validation
has left the key untrusted, the trust-anchor will be append to
name and a DLV record will be looked up to see if it can
key. If the DLV record validates a DNSKEY (similarly to the
record does) the DNSKEY RRset is deemed to be trusted.
<
term><
command>dnssec-must-be-secure</
command></
term>
Specify heirachies which must / may not be secure (signed and
If <
userinput>yes</
userinput> then named will only accept
If <
userinput>no</
userinput> then normal dnssec validation
allowing for insecure answers to be accepted.
The specified domain must be under a <
command>trusted-key</
command> or
<
command>dnssec-lookaside</
command> must be
<
sect3 id="boolean_options">
<
title>Boolean Options</
title>
<
term><
command>auth-nxdomain</
command></
term>
If <
userinput>yes</
userinput>, then the <
command>AA</
command> bit
is always set on NXDOMAIN responses, even if the server is
authoritative. The default is <
userinput>no</
userinput>;
a change from <
acronym>BIND</
acronym> 8. If you
are using very old DNS software, you
may need to set it to <
userinput>yes</
userinput>.
<
term><
command>deallocate-on-exit</
command></
term>
This option was used in <
acronym>BIND</
acronym>
for memory leaks on exit. <
acronym>BIND</
acronym> 9 ignores the option and always performs
<
term><
command>dialup</
command></
term>
If <
userinput>yes</
userinput>, then the
server treats all zones as if they are doing zone transfers
a dial on demand dialup link, which can be brought up by
originating from this server. This has different effects
to zone type and concentrates the zone maintenance so that
happens in a short interval, once every <
command>heartbeat-interval</
command> and
hopefully during the one call. It also suppresses some of
zone maintenance traffic. The default is <
userinput>no</
userinput>.
The <
command>dialup</
command> option
may also be specified in the <
command>view</
command> and
<
command>zone</
command> statements,
in which case it overrides the global <
command>dialup</
command>
If the zone is a master zone then the server will send out a
request to all the slaves (default). This should trigger the
number check in the slave (providing it supports NOTIFY)
to verify the zone while the connection is active.
The set of servers to which NOTIFY is sent can be controlled
<
command>notify</
command> and <
command>also-notify</
command>.
zone is a slave or stub zone, then the server will suppress
"zone up to date" (refresh) queries and only perform them
<
command>heartbeat-interval</
command> expires in
Finer control can be achieved by using
<
userinput>notify</
userinput> which only sends NOTIFY
<
userinput>notify-passive</
userinput> which sends NOTIFY
suppresses the normal refresh queries, <
userinput>refresh</
userinput>
which suppresses normal refresh processing and sends refresh
when the <
command>heartbeat-interval</
command>
<
userinput>passive</
userinput> which just disables normal
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="4" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="1.150in"/>
<
colspec colname="3" colnum="3" colsep="0" colwidth="1.150in"/>
<
colspec colname="4" colnum="4" colsep="0" colwidth="1.150in"/>
<
para><
command>no</
command> (default)</
para>
<
para><
command>yes</
command></
para>
<
para><
command>notify</
command></
para>
<
para><
command>refresh</
command></
para>
<
para><
command>passive</
command></
para>
<
para><
command>notify-passive</
command></
para>
Note that normal NOTIFY processing is not affected by
<
command>dialup</
command>.
<
term><
command>fake-iquery</
command></
term>
In <
acronym>BIND</
acronym> 8, this option
enabled simulating the obsolete DNS query type
IQUERY. <
acronym>BIND</
acronym> 9 never does
<
term><
command>fetch-glue</
command></
term>
In BIND 8, <
userinput>fetch-glue yes</
userinput>
caused the server to attempt to fetch glue resource records
didn't have when constructing the additional
data section of a response. This is now considered a bad
and BIND 9 never does it.
<
term><
command>flush-zones-on-shutdown</
command></
term>
When the nameserver exits due receiving SIGTERM,
flush / do not flush any pending zone writes. The default
<
command>flush-zones-on-shutdown</
command> <
userinput>no</
userinput>.
<
term><
command>has-old-clients</
command></
term>
This option was incorrectly implemented
in <
acronym>BIND</
acronym> 8, and is ignored by <
acronym>BIND</
acronym> 9.
To achieve the intended effect
<
command>has-old-clients</
command> <
userinput>yes</
userinput>, specify
the two separate options <
command>auth-nxdomain</
command> <
userinput>yes</
userinput>
and <
command>rfc2308-type1</
command> <
userinput>no</
userinput> instead.
<
term><
command>host-statistics</
command></
term>
In BIND 8, this enables keeping of
statistics for every host that the name server interacts
Not implemented in BIND 9.
<
term><
command>maintain-ixfr-base</
command></
term>
<
emphasis>This option is obsolete</
emphasis>.
It was used in <
acronym>BIND</
acronym> 8 to
determine whether a transaction log was
kept for Incremental Zone Transfer. <
acronym>BIND</
acronym> 9 maintains a transaction
log whenever possible. If you need to disable outgoing
transfers, use <
command>provide-ixfr</
command> <
userinput>no</
userinput>.
<
term><
command>minimal-responses</
command></
term>
If <
userinput>yes</
userinput>, then when generating
responses the server will only add records to the authority
and additional data sections when they are required (
e.g. delegations, negative responses). This may improve the
performance of the server.
The default is <
userinput>no</
userinput>.
<
term><
command>multiple-cnames</
command></
term>
This option was used in <
acronym>BIND</
acronym> 8 to allow
a domain name to have multiple CNAME records in violation of
the DNS standards. <
acronym>BIND</
acronym> 9.2 onwards
always strictly enforces the CNAME rules both in master
files and dynamic updates.
<
term><
command>notify</
command></
term>
If <
userinput>yes</
userinput> (the default),
DNS NOTIFY messages are sent when a zone the server is
changes, see <
xref linkend="notify"/>. The messages are
servers listed in the zone's NS records (except the master
in the SOA MNAME field), and to any servers listed in the
<
command>also-notify</
command> option.
If <
userinput>master-only</
userinput>, notifies are only
If <
userinput>explicit</
userinput>, notifies are sent only
servers explicitly listed using <
command>also-notify</
command>.
If <
userinput>no</
userinput>, no notifies are sent.
The <
command>notify</
command> option may also be
specified in the <
command>zone</
command>
in which case it overrides the <
command>options notify</
command> statement.
It would only be necessary to turn off this option if it
<
term><
command>recursion</
command></
term>
If <
userinput>yes</
userinput>, and a
DNS query requests recursion, then the server will attempt
all the work required to answer the query. If recursion is
and the server does not already know the answer, it will
referral response. The default is
<
userinput>yes</
userinput>.
Note that setting <
command>recursion no</
command> does not prevent
clients from getting data from the server's cache; it only
prevents new data from being cached as an effect of client
Caching may still occur as an effect the server's internal
operation, such as NOTIFY address lookups.
See also <
command>fetch-glue</
command> above.
<
term><
command>rfc2308-type1</
command></
term>
Setting this to <
userinput>yes</
userinput> will
cause the server to send NS records along with the SOA
answers. The default is <
userinput>no</
userinput>.
Not yet implemented in <
acronym>BIND</
acronym>
<
term><
command>use-id-pool</
command></
term>
<
emphasis>This option is obsolete</
emphasis>.
<
acronym>BIND</
acronym> 9 always allocates query
<
term><
command>zone-statistics</
command></
term>
If <
userinput>yes</
userinput>, the server will collect
statistical data on all zones (unless specifically turned
on a per-zone basis by specifying <
command>zone-statistics no</
command>
in the <
command>zone</
command> statement).
These statistics may be accessed
using <
command>rndc stats</
command>, which will
dump them to the file listed
in the <
command>statistics-file</
command>. See
also <
xref linkend="statsfile"/>.
<
term><
command>use-ixfr</
command></
term>
<
emphasis>This option is obsolete</
emphasis>.
If you need to disable IXFR to a particular server or
the information on the <
command>provide-ixfr</
command> option
in <
xref linkend="server_statement_definition_and_usage"/>.
<
xref linkend="incremental_zone_transfers"/>.
<
term><
command>provide-ixfr</
command></
term>
<
command>provide-ixfr</
command> in
<
xref linkend="server_statement_definition_and_usage"/>
<
term><
command>request-ixfr</
command></
term>
<
command>request-ixfr</
command> in
<
xref linkend="server_statement_definition_and_usage"/>
<
term><
command>treat-cr-as-space</
command></
term>
This option was used in <
acronym>BIND</
acronym>
the server treat carriage return ("<
command>\r</
command>") characters the same way
as a space or tab character,
to facilitate loading of zone files on a UNIX system that
on an NT or DOS machine. In <
acronym>BIND</
acronym> 9, both UNIX "<
command>\n</
command>"
and
NT/
DOS "<
command>\r\n</
command>" newlines
and the option is ignored.
<
term><
command>additional-from-auth</
command></
term>
<
term><
command>additional-from-cache</
command></
term>
These options control the behavior of an authoritative
answering queries which have additional data, or when
When both of these options are set to <
userinput>yes</
userinput>
query is being answered from authoritative data (a zone
configured into the server), the additional data section of
reply will be filled in using data from other authoritative
and from the cache. In some situations this is undesirable,
as when there is concern over the correctness of the cache,
in servers where slave zones may be added and modified by
untrusted third parties. Also, avoiding
the search for this additional data will speed up server
at the possible expense of additional queries to resolve
otherwise be provided in the additional section.
For example, if a query asks for an MX record for host <
literal>
foo.example.com</
literal>,
and the record found is "<
literal>MX 10
mail.example.net</
literal>", normally the address
records (A and AAAA) for <
literal>
mail.example.net</
literal> will be provided as well,
if known, even though they are not in the
example.com zone.
Setting these options to <
command>no</
command>
disables this behavior and makes
the server only search for additional data in the zone it
These options are intended for use in authoritative-only
servers, or in authoritative-only views. Attempts to set
them to <
command>no</
command> without also
<
command>recursion no</
command> will cause the
ignore the options and log a warning message.
Specifying <
command>additional-from-cache no</
command> actually
disables the use of the cache not only for additional data
but also when looking up the answer. This is usually the
behavior in an authoritative-only server where the
the cached data is an issue.
When a name server is non-recursively queried for a name
below the apex of any served zone, it normally answers with
"upwards referral" to the root servers or the servers of
known parent of the query name. Since the data in an
comes from the cache, the server will not be able to provide
referrals when <
command>additional-from-cache no</
command>
has been specified. Instead, it will respond to such
with REFUSED. This should not cause any problems since
upwards referrals are not required for the resolution
<
term><
command>match-mapped-addresses</
command></
term>
If <
userinput>yes</
userinput>, then an
IPv4-mapped IPv6 address will match any address match
list entries that match the corresponding IPv4 address.
Enabling this option is sometimes useful on IPv6-enabled
systems, to work around a kernel quirk that causes IPv4
TCP connections such as zone transfers to be accepted
on an IPv6 socket using mapped addresses, causing
address match lists designed for IPv4 to fail to match.
The use of this option for any other purpose is discouraged.
<
term><
command>ixfr-from-differences</
command></
term>
When 'yes' and the server loads a new version of a master
zone from its zone file or receives a new version of a slave
file by a non-incremental zone transfer, it will compare
the new version to the previous one and calculate a set
of differences. The differences are then logged in the
zone's journal file such that the changes can be transmitted
to downstream slaves as an incremental zone transfer.
By allowing incremental zone transfers to be used for
non-dynamic zones, this option saves bandwidth at the
expense of increased CPU and memory consumption at the
In particular, if the new version of a zone is completely
different from the previous one, the set of differences
will be of a size comparable to the combined size of the
old and new zone version, and the server will need to
temporarily allocate memory to hold this complete
<
para><
command>ixfr-from-differences</
command>
also accepts <
command>master</
command> and
<
command>slave</
command> at the view and options
<
command>ixfr-from-differences</
command> to apply to
all <
command>master</
command> or
<
command>slave</
command> zones respectively.
<
term><
command>multi-master</
command></
term>
This should be set when you have multiple masters for a zone
addresses refer to different machines. If 'yes' named will
when the serial number on the master is less than what named
has. The default is <
userinput>no</
userinput>.
<
term><
command>dnssec-enable</
command></
term>
Enable DNSSEC support in named. Unless set to <
userinput>yes</
userinput>
named behaves as if it does not support DNSSEC.
The default is <
userinput>no</
userinput>.
<
term><
command>querylog</
command></
term>
Specify whether query logging should be started when named
If <
command>querylog</
command> is not specified
is determined by the presence of the logging category <
command>queries</
command>.
<
term><
command>check-names</
command></
term>
This option is used to restrict the character set and syntax
certain domain names in master files
and/
or DNS responses
from the network. The default varies according to usage
<
command>master</
command> zones the default is <
command>fail</
command>.
For <
command>slave</
command> zones the default
is <
command>warn</
command>.
For answer received from the network (<
command>response</
command>)
the default is <
command>ignore</
command>.
The rules for legal hostnames / mail domains are derived
from RFC 952 and RFC 821 as modified by RFC 1123.
<
para><
command>check-names</
command>
applies to the owner names of A, AAA and MX records.
It also applies to the domain names in the RDATA of NS, SOA
It also applies to the RDATA of PTR records where the owner
name indicated that it is a reverse lookup of a hostname
<
term><
command>check-mx</
command></
term>
Check whether the MX record appears to refer to a IP address.
The default is to <
command>warn</
command>. Other possible
values are <
command>fail</
command> and
<
command>ignore</
command>.
<
term><
command>check-wildcard</
command></
term>
This option is used to check for non-terminal wildcards.
The use of non-terminal wildcards is almost always as a
to understand the wildcard matching algorithm (RFC 1034).
affects master zones. The default (<
command>yes</
command>) is to check
for non-terminal wildcards and issue a warning.
<
term><
command>integrity-check</
command></
term>
Perform post load zone integrity checks on master
zones. This checks that MX and SRV records refer
to address (A or AAAA) records and that glue
address records exist for delegated zones. For
MX and SRV records only in-zone hostnames are
checked (for out-of-zone hostnames use named-checkzone).
For NS records only names below top of zone are
checked (for out-of-zone names and glue consistancy
checks use named-checkzone). The default is
<
title>Forwarding</
title>
The forwarding facility can be used to create a large site-wide
cache on a few servers, reducing traffic over links to external
name servers. It can also be used to allow queries by servers that
do not have direct access to the Internet, but wish to look up
names anyway. Forwarding occurs only on those queries for which
the server is not authoritative and does not have the answer in
<
term><
command>forward</
command></
term>
This option is only meaningful if the
forwarders list is not empty. A value of <
varname>first</
varname>,
the default, causes the server to query the forwarders
if that doesn't answer the question the server will then
the answer itself. If <
varname>only</
varname> is
server will only query the forwarders.
<
term><
command>forwarders</
command></
term>
Specifies the IP addresses to be used
for forwarding. The default is the empty list (no
Forwarding can also be configured on a per-domain basis, allowing
for the global forwarding options to be overridden in a variety
of ways. You can set particular domains to use different
or have a different <
command>forward
only/
first</
command> behavior,
or not forward at all, see <
xref linkend="zone_statement_grammar"/>.
<
title>Dual-stack Servers</
title>
Dual-stack servers are used as servers of last resort to work
problems in reachability due the lack of support for either IPv4
<
term><
command>dual-stack-servers</
command></
term>
Specifies host names / addresses of machines with access to
both IPv4 and IPv6 transports. If a hostname is used the
to resolve the name using only the transport it has. If the
stacked then the <
command>dual-stack-servers</
command> have no effect unless
access to a transport has been disabled on the command line
(
e.g. <
command>named -4</
command>).
<
sect3 id="access_control">
<
title>Access Control</
title>
Access to the server can be restricted based on the IP address
of the requesting system. See <
xref linkend="address_match_lists"/> for
details on how to specify IP address lists.
<
term><
command>allow-notify</
command></
term>
Specifies which hosts are allowed to
notify this server, a slave, of zone changes in addition
<
command>allow-notify</
command> may also be
<
command>zone</
command> statement, in which case
<
command>options allow-notify</
command>
statement. It is only meaningful
for a slave zone. If not specified, the default is to
only from a zone's master.
<
term><
command>allow-query</
command></
term>
Specifies which hosts are allowed to
ask ordinary DNS questions. <
command>allow-query</
command> may also
be specified in the <
command>zone</
command>
case it overrides the <
command>options allow-query</
command> statement.
<
command>allow-query-cache</
command> may also be
overrides access to the cache.
If not specified, the default is to allow queries from all
<
term><
command>allow-query-cache</
command></
term>
Specifies which hosts are allowed to get answers
from the cache. If not set <
command>allow-query</
command> applies.
The recommended way to set query access to the cache is now
<
command>allow-query-cache</
command> rather than
<
command>allow-query</
command>.
Inheritance from <
command>allow-query</
command>
If <
command>allow-query-cache</
command> is set
level and not set in the view it will still override a
<
command>allow-query</
command> set at the view
<
term><
command>allow-recursion</
command></
term>
Specifies which hosts are allowed to
make recursive queries through this server. If not
default is to allow recursive queries from all hosts.
Note that disallowing recursive queries for a host does not
host from retrieving data that is already in the server's
<
term><
command>allow-update</
command></
term>
Specifies which hosts are allowed to
submit Dynamic DNS updates for master zones. The default is
updates from all hosts. Note that allowing updates based
on the requestor's IP address is insecure; see
<
xref linkend="dynamic_update_security"/> for details.
<
term><
command>allow-update-forwarding</
command></
term>
Specifies which hosts are allowed to
submit Dynamic DNS updates to slave zones to be forwarded to
master. The default is <
userinput>{ none; }</
userinput>,
means that no update forwarding will be performed. To
update forwarding, specify
<
userinput>allow-update-forwarding { any; };</
userinput>.
Specifying values other than <
userinput>{ none; }</
userinput> or
<
userinput>{ any; }</
userinput> is usually
the responsibility for update access control should rest
master server, not the slaves.
Note that enabling the update forwarding feature on a slave
may expose master servers relying on insecure IP address
access control to attacks; see <
xref linkend="dynamic_update_security"/>
<
term><
command>allow-v6-synthesis</
command></
term>
This option was introduced for the smooth transition from
to A6 and from "nibble labels" to binary labels.
However, since both A6 and binary labels were then
this option was also deprecated.
It is now ignored with some warning messages.
<
term><
command>allow-transfer</
command></
term>
Specifies which hosts are allowed to
receive zone transfers from the server. <
command>allow-transfer</
command> may
also be specified in the <
command>zone</
command>
case it overrides the <
command>options allow-transfer</
command> statement.
If not specified, the default is to allow transfers to all
<
term><
command>blackhole</
command></
term>
Specifies a list of addresses that the
server will not accept queries from or use to resolve a
from these addresses will not be responded to. The default
is <
userinput>none</
userinput>.
<
title>Interfaces</
title>
The interfaces and ports that the server will answer queries
from may be specified using the <
command>listen-on</
command> option. <
command>listen-on</
command> takes
an optional port, and an <
varname>address_match_list</
varname>.
The server will listen on all interfaces allowed by the address
match list. If a port is not specified, port 53 will be used.
Multiple <
command>listen-on</
command> statements are
<
programlisting>listen-on { 5.6.7.8; };
listen-on port 1234 { !1.2.3.4;
1.2/
16; };
will enable the name server on port 53 for the IP address
5.6.7.8, and on port 1234 of an address on the machine in net
If no <
command>listen-on</
command> is specified, the
server will listen on port 53 on all interfaces.
The <
command>listen-on-v6</
command> option is used to
specify the interfaces and the ports on which the server will
for incoming queries sent using IPv6.
When <
programlisting>{ any; }</
programlisting> is
as the <
varname>address_match_list</
varname> for the
<
command>listen-on-v6</
command> option,
the server does not bind a separate socket to each IPv6 interface
address as it does for IPv4 if the operating system has enough API
support for IPv6 (specifically if it conforms to RFC 3493 and RFC
Instead, it listens on the IPv6 wildcard address.
If the system only has incomplete API support for IPv6, however,
the behavior is the same as that for IPv4.
A list of particular IPv6 addresses can also be specified, in
the server listens on a separate socket for each specified
regardless of whether the desired API is supported by the system.
Multiple <
command>listen-on-v6</
command> options can
<
programlisting>listen-on-v6 { any; };
listen-on-v6 port 1234 { !2001:db8::/32; any; };
will enable the name server on port 53 for any IPv6 addresses
(with a single wildcard socket),
and on port 1234 of IPv6 addresses that is not in the prefix
2001:db8::/32 (with separate sockets for each matched address.)
To make the server not listen on any IPv6 address, use
<
programlisting>listen-on-v6 { none; };
If no <
command>listen-on-v6</
command> option is
the server will not listen on any IPv6 address.
<
title>Query Address</
title>
If the server doesn't know the answer to a question, it will
query other name servers. <
command>query-source</
command> specifies
the address and port used for such queries. For queries sent over
IPv6, there is a separate <
command>query-source-v6</
command> option.
If <
command>address</
command> is <
command>*</
command> or is omitted,
a wildcard IP address (<
command>INADDR_ANY</
command>)
If <
command>port</
command> is <
command>*</
command> or is omitted,
a random unprivileged port will be used, <
command>avoid-v4-udp-ports</
command>
and <
command>avoid-v6-udp-ports</
command> can be used
from selecting certain ports. The defaults are
<
programlisting>query-source address * port *;
query-source-v6 address * port *;
The address specified in the <
command>query-source</
command> option
is used for both UDP and TCP queries, but the port applies only
UDP queries. TCP queries always use a random
See also <
command>transfer-source</
command> and
<
command>notify-source</
command>.
<
sect3 id="zone_transfers">
<
title>Zone Transfers</
title>
<
acronym>BIND</
acronym> has mechanisms in place to
facilitate zone transfers
and set limits on the amount of load that transfers place on the
system. The following options apply to zone transfers.
<
term><
command>also-notify</
command></
term>
Defines a global list of IP addresses of name servers
that are also sent NOTIFY messages whenever a fresh copy of
zone is loaded, in addition to the servers listed in the
This helps to ensure that copies of the zones will
quickly converge on stealth servers. If an <
command>also-notify</
command> list
is given in a <
command>zone</
command> statement,
the <
command>options also-notify</
command>
statement. When a <
command>zone notify</
command>
is set to <
command>no</
command>, the IP
addresses in the global <
command>also-notify</
command> list will
not be sent NOTIFY messages for that zone. The default is
list (no global notification list).
<
term><
command>max-transfer-time-in</
command></
term>
Inbound zone transfers running longer than
this many minutes will be terminated. The default is 120
(2 hours). The maximum value is 28 days (40320 minutes).
<
term><
command>max-transfer-idle-in</
command></
term>
Inbound zone transfers making no progress
in this many minutes will be terminated. The default is 60
(1 hour). The maximum value is 28 days (40320 minutes).
<
term><
command>max-transfer-time-out</
command></
term>
Outbound zone transfers running longer than
this many minutes will be terminated. The default is 120
(2 hours). The maximum value is 28 days (40320 minutes).
<
term><
command>max-transfer-idle-out</
command></
term>
Outbound zone transfers making no progress
in this many minutes will be terminated. The default is 60
hour). The maximum value is 28 days (40320 minutes).
<
term><
command>serial-query-rate</
command></
term>
Slave servers will periodically query master servers
to find out if zone serial numbers have changed. Each such
a minute amount of the slave server's network bandwidth. To
amount of bandwidth used, BIND 9 limits the rate at which
sent. The value of the <
command>serial-query-rate</
command> option,
an integer, is the maximum number of queries sent per
<
term><
command>serial-queries</
command></
term>
In BIND 8, the <
command>serial-queries</
command>
set the maximum number of concurrent serial number queries
allowed to be outstanding at any given time.
BIND 9 does not limit the number of outstanding
serial queries and ignores the <
command>serial-queries</
command> option.
Instead, it limits the rate at which the queries are sent
as defined using the <
command>serial-query-rate</
command> option.
<
term><
command>transfer-format</
command></
term>
Zone transfers can be sent using two different formats,
<
command>one-answer</
command> and
<
command>many-answers</
command>.
The <
command>transfer-format</
command> option is used
on the master server to determine which format it sends.
<
command>one-answer</
command> uses one DNS message per
resource record transferred.
<
command>many-answers</
command> packs as many resource
records as possible into a message.
<
command>many-answers</
command> is more efficient, but is
only supported by relatively new slave servers,
such as <
acronym>BIND</
acronym> 9, <
acronym>BIND</
acronym>
8.x and <
acronym>BIND</
acronym> 4.9.5 onwards.
The <
command>many-answers</
command> format also supported by
recent Microsoft Windows nameservers.
The default is <
command>many-answers</
command>.
<
command>transfer-format</
command> may be overridden on a
per-server basis by using the <
command>server</
command>
<
term><
command>transfers-in</
command></
term>
The maximum number of inbound zone transfers
that can be running concurrently. The default value is <
literal>10</
literal>.
Increasing <
command>transfers-in</
command> may
of slave zones, but it also may increase the load on the
<
term><
command>transfers-out</
command></
term>
The maximum number of outbound zone transfers
that can be running concurrently. Zone transfer requests in
of the limit will be refused. The default value is <
literal>10</
literal>.
<
term><
command>transfers-per-ns</
command></
term>
The maximum number of inbound zone transfers
that can be concurrently transferring from a given remote
The default value is <
literal>2</
literal>.
Increasing <
command>transfers-per-ns</
command>
speed up the convergence of slave zones, but it also may
the load on the remote name server. <
command>transfers-per-ns</
command> may
be overridden on a per-server basis by using the <
command>transfers</
command> phrase
of the <
command>server</
command> statement.
<
term><
command>transfer-source</
command></
term>
<
para><
command>transfer-source</
command>
determines which local address will be bound to IPv4
TCP connections used to fetch zones transferred
inbound by the server. It also determines the
source IPv4 address, and optionally the UDP port,
used for the refresh queries and forwarded dynamic
updates. If not set, it defaults to a system
controlled value which will usually be the address
of the interface "closest to" the remote end. This
address must appear in the remote end's
<
command>allow-transfer</
command> option for the
zone being transferred, if one is specified. This
<
command>transfer-source</
command> for all zones,
but can be overridden on a per-view or per-zone
<
command>transfer-source</
command> statement within
the <
command>view</
command> or
<
command>zone</
command> block in the configuration
<
term><
command>transfer-source-v6</
command></
term>
The same as <
command>transfer-source</
command>,
except zone transfers are performed using IPv6.
<
term><
command>alt-transfer-source</
command></
term>
An alternate transfer source if the one listed in
<
command>transfer-source</
command> fails and
<
command>use-alt-transfer-source</
command> is
If you do not wish the alternate transfer source
to be used you should set
<
command>use-alt-transfer-source</
command>
appropriately and you should not depend upon
getting a answer back to the first refresh
<
term><
command>alt-transfer-source-v6</
command></
term>
An alternate transfer source if the one listed in
<
command>transfer-source-v6</
command> fails and
<
command>use-alt-transfer-source</
command> is
<
term><
command>use-alt-transfer-source</
command></
term>
Use the alternate transfer sources or not. If views are
specified this defaults to <
command>no</
command>
<
command>yes</
command> (for BIND 8
<
term><
command>notify-source</
command></
term>
<
para><
command>notify-source</
command>
determines which local source address, and
optionally UDP port, will be used to send NOTIFY
messages. This address must appear in the slave
server's <
command>masters</
command> zone clause or
in an <
command>allow-notify</
command> clause. This
statement sets the <
command>notify-source</
command>
for all zones, but can be overridden on a per-zone /
per-view basis by including a
<
command>notify-source</
command> statement within
the <
command>zone</
command> or
<
command>view</
command> block in the configuration
<
term><
command>notify-source-v6</
command></
term>
Like <
command>notify-source</
command>,
but applies to notify messages sent to IPv6 addresses.
<
title>Bad UDP Port Lists</
title>
<
para><
command>avoid-v4-udp-ports</
command>
and <
command>avoid-v6-udp-ports</
command> specify a list
of IPv4 and IPv6 UDP ports that will not be used as system
assigned source ports for UDP sockets. These lists
prevent named from choosing as its random source port a
port that is blocked by your firewall. If a query went
out with such a source port, the answer would not get by
the firewall and the name server would have to query
<
title>Operating System Resource Limits</
title>
The server's usage of many system resources can be limited.
Scaled values are allowed when specifying resource limits. For
example, <
command>1G</
command> can be used instead of
<
command>1073741824</
command> to specify a limit of
gigabyte. <
command>unlimited</
command> requests
maximum available amount. <
command>default</
command>
that was in force when the server was started. See the description
<
command>size_spec</
command> in <
xref linkend="configuration_file_elements"/>.
The following options set operating system resource limits for
the name server process. Some operating systems don't support
any of the limits. On such systems, a warning will be issued if
unsupported limit is used.
<
term><
command>coresize</
command></
term>
The maximum size of a core dump. The default
is <
literal>default</
literal>.
<
term><
command>datasize</
command></
term>
The maximum amount of data memory the server
may use. The default is <
literal>default</
literal>.
This is a hard limit on server memory usage.
If the server attempts to allocate memory in excess of this
limit, the allocation will fail, which may in turn leave
the server unable to perform DNS service. Therefore,
this option is rarely useful as a way of limiting the
amount of memory used by the server, but it can be used
to raise an operating system data size limit that is
too small by default. If you wish to limit the amount
of memory used by the server, use the
<
command>max-cache-size</
command> and
<
command>recursive-clients</
command>
<
term><
command>files</
command></
term>
The maximum number of files the server
may have open concurrently. The default is <
literal>unlimited</
literal>.
<
term><
command>stacksize</
command></
term>
The maximum amount of stack memory the server
may use. The default is <
literal>default</
literal>.
<
title>Server Resource Limits</
title>
The following options set limits on the server's
resource consumption that are enforced internally by the
server rather than the operating system.
<
term><
command>max-ixfr-log-size</
command></
term>
This option is obsolete; it is accepted
and ignored for BIND 8 compatibility. The option
<
command>max-journal-size</
command> performs a
similar function in BIND 9.
<
term><
command>max-journal-size</
command></
term>
Sets a maximum size for each journal file
(<
xref linkend="journal"/>). When the journal file
the specified size, some of the oldest transactions in the
will be automatically removed. The default is
<
literal>unlimited</
literal>.
<
term><
command>host-statistics-max</
command></
term>
In BIND 8, specifies the maximum number of host statistic
Not implemented in BIND 9.
<
term><
command>recursive-clients</
command></
term>
The maximum number of simultaneous recursive lookups
the server will perform on behalf of clients. The default
<
literal>1000</
literal>. Because each recursing
bit of memory, on the order of 20 kilobytes, the value of
<
command>recursive-clients</
command> option may
on hosts with limited memory.
<
term><
command>tcp-clients</
command></
term>
The maximum number of simultaneous client TCP
connections that the server will accept.
The default is <
literal>100</
literal>.
<
term><
command>max-cache-size</
command></
term>
The maximum amount of memory to use for the
server's cache, in bytes. When the amount of data in the
reaches this limit, the server will cause records to expire
prematurely so that the limit is not exceeded. In a server
multiple views, the limit applies separately to the cache of
view. The default is <
literal>unlimited</
literal>, meaning that
records are purged from the cache only when their TTLs
<
term><
command>tcp-listen-queue</
command></
term>
The listen queue depth. The default and minimum is 3.
If the kernel supports the accept filter "dataready" this
many TCP connections that will be queued in kernel space
some data before being passed to accept. Values less than 3
<
title>Periodic Task Intervals</
title>
<
term><
command>cleaning-interval</
command></
term>
The server will remove expired resource records
from the cache every <
command>cleaning-interval</
command> minutes.
The default is 60 minutes. The maximum value is 28 days
If set to 0, no periodic cleaning will occur.
<
term><
command>heartbeat-interval</
command></
term>
The server will perform zone maintenance tasks
for all zones marked as <
command>dialup</
command> whenever this
interval expires. The default is 60 minutes. Reasonable
to 1 day (1440 minutes). The maximum value is 28 days
If set to 0, no zone maintenance for these zones will occur.
<
term><
command>interface-interval</
command></
term>
The server will scan the network interface list
every <
command>interface-interval</
command>
is 60 minutes. The maximum value is 28 days (40320 minutes).
If set to 0, interface scanning will only occur when
the configuration file is loaded. After the scan, the
begin listening for queries on any newly discovered
interfaces (provided they are allowed by the
<
command>listen-on</
command> configuration), and
stop listening on interfaces that have gone away.
<
term><
command>statistics-interval</
command></
term>
Name server statistics will be logged
every <
command>statistics-interval</
command>
60. The maximum value is 28 days (40320 minutes).
If set to 0, no statistics will be logged.
<
acronym>BIND</
acronym>9.
All other things being equal, when the server chooses a name
to query from a list of name servers, it prefers the one that is
topologically closest to itself. The <
command>topology</
command> statement
takes an <
command>address_match_list</
command> and
in a special way. Each top-level list element is assigned a
Non-negated elements get a distance based on their position in the
list, where the closer the match is to the start of the list, the
shorter the distance is between it and the server. A negated match
will be assigned the maximum distance from the server. If there
is no match, the address will get a distance which is further than
any non-negated list element, and closer than any negated element.
<
programlisting>topology {
will prefer servers on network 10 the most, followed by hosts
on network 1.2.0.0 (netmask 255.255.0.0) and network 3, with the
exception of hosts on network 1.2.3 (netmask 255.255.255.0), which
is preferred least of all.
<
programlisting> topology { localhost; localnets; };
The <
command>topology</
command> option
is not implemented in <
acronym>BIND</
acronym> 9.
<
sect3 id="the_sortlist_statement">
<
title>The <
command>sortlist</
command> Statement</
title>
The response to a DNS query may consist of multiple resource
records (RRs) forming a resource records set (RRset).
The name server will normally return the
RRs within the RRset in an indeterminate order
(but see the <
command>rrset-order</
command>
statement in <
xref linkend="rrset_ordering"/>).
The client resolver code should rearrange the RRs as appropriate,
that is, using any addresses on the local net in preference to
However, not all resolvers can do this or are correctly
When a client is using a local server the sorting can be performed
in the server, based on the client's address. This only requires
configuring the name servers, not all the clients.
The <
command>sortlist</
command> statement (see below)
an <
command>address_match_list</
command> and
more specifically than the <
command>topology</
command>
does (<
xref linkend="topology"/>).
Each top level statement in the <
command>sortlist</
command> must
itself be an explicit <
command>address_match_list</
command> with
one or two elements. The first element (which may be an IP
an IP prefix, an ACL name or a nested <
command>address_match_list</
command>)
of each top level list is checked against the source address of
the query until a match is found.
Once the source address of the query has been matched, if
the top level statement contains only one element, the actual
element that matched the source address is used to select the
in the response to move to the beginning of the response. If the
statement is a list of two elements, then the second element is
treated the same as the <
command>address_match_list</
command> in
a <
command>topology</
command> statement. Each top
is assigned a distance and the address in the response with the
distance is moved to the beginning of the response.
In the following example, any queries received from any of
the addresses of the host itself will get responses preferring
on any of the locally connected networks. Next most preferred are
192.168.3/
24 network with no preference shown between these two
networks. Queries received from a host on the
192.168.1/
24 network
will prefer other addresses on that network to the
192.168.2/
24 192.168.3/
24 networks. Queries received from a host on the
or the
192.168.5/
24 network will only prefer other addresses on
their directly connected networks.
<
programlisting>sortlist {
{ localhost; // IF the local host
{ localnets; // THEN first fit on the
The following example will give reasonable behavior for the
local host and hosts on directly connected networks. It is similar
to the behavior of the address sort in <
acronym>BIND</
acronym>
4.9.x. Responses sent
to queries from the local host will favor any of the directly
networks. Responses sent to queries from any other hosts on a
connected network will prefer addresses on that same network.
to other queries will not be sorted.
<
programlisting>sortlist {
{ localhost; localnets; };
<
sect3 id="rrset_ordering">
<
title id="rrset_ordering_title">RRset Ordering</
title>
When multiple records are returned in an answer it may be
useful to configure the order of the records placed into the
The <
command>rrset-order</
command> statement permits
of the ordering of the records in a multiple record response.
See also the <
command>sortlist</
command> statement,
<
xref linkend="the_sortlist_statement"/>.
An <
command>order_spec</
command> is defined as
<
optional>class <
replaceable>class_name</
replaceable></
optional>
<
optional>type <
replaceable>type_name</
replaceable></
optional>
<
optional>name <
replaceable>"domain_name"</
replaceable></
optional>
order <
replaceable>ordering</
replaceable>
If no class is specified, the default is <
command>ANY</
command>.
If no type is specified, the default is <
command>ANY</
command>.
If no name is specified, the default is "<
command>*</
command>".
The legal values for <
command>ordering</
command> are:
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="0.750in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="3.750in"/>
<
para><
command>fixed</
command></
para>
Records are returned in the order they
are defined in the zone file.
<
para><
command>random</
command></
para>
Records are returned in some random order.
<
para><
command>cyclic</
command></
para>
Records are returned in a round-robin
<
programlisting>rrset-order {
will cause any responses for type A records in class IN that
suffix, to always be returned
in random order. All other records are returned in cyclic order.
If multiple <
command>rrset-order</
command> statements
they are not combined — the last one applies.
The <
command>rrset-order</
command> statement
is not yet fully implemented in <
acronym>BIND</
acronym> 9.
BIND 9 currently does not fully support "fixed" ordering.
<
term><
command>lame-ttl</
command></
term>
Sets the number of seconds to cache a
lame server indication. 0 disables caching. (This is
<
emphasis role="bold">NOT</
emphasis> recommended.)
Default is <
literal>600</
literal> (10 minutes).
<
literal>1800</
literal> (30 minutes).
<
term><
command>max-ncache-ttl</
command></
term>
To reduce network traffic and increase performance
the server stores negative answers. <
command>max-ncache-ttl</
command> is
used to set a maximum retention time for these answers in
<
command>max-ncache-ttl</
command> is <
literal>10800</
literal> seconds (3 hours).
<
command>max-ncache-ttl</
command> cannot exceed
be silently truncated to 7 days if set to a greater value.
<
term><
command>max-cache-ttl</
command></
term>
<
para><
command>max-cache-ttl</
command>
sets the maximum time for which the server will
cache ordinary (positive) answers. The default is
<
term><
command>min-roots</
command></
term>
The minimum number of root servers that
is required for a request for the root servers to be
is <
userinput>2</
userinput>.
Not implemented in <
acronym>BIND</
acronym>9.
<
term><
command>sig-validity-interval</
command></
term>
Specifies the number of days into the
future when DNSSEC signatures automatically generated as a
of dynamic updates (<
xref linkend="dynamic_update"/>)
will expire. The default is <
literal>30</
literal> days.
The maximum value is 10 years (3660 days). The signature
inception time is unconditionally set to one hour before the
to allow for a limited amount of clock skew.
<
term><
command>min-refresh-time</
command></
term>
<
term><
command>max-refresh-time</
command></
term>
<
term><
command>min-retry-time</
command></
term>
<
term><
command>max-retry-time</
command></
term>
These options control the server's behavior on refreshing a
(querying for SOA changes) or retrying failed transfers.
Usually the SOA values for the zone are used, but these
are set by the master, giving slave server administrators
control over their contents.
These options allow the administrator to set a minimum and
refresh and retry time either per-zone, per-view, or
These options are valid for slave and stub zones,
and clamp the SOA refresh and retry times to the specified
<
term><
command>edns-udp-size</
command></
term>
Sets the advertised EDNS UDP buffer size. Valid
values are 512 to 4096 (values outside this range
will be silently adjusted). The default value is
4096. The usual reason for setting edns-udp-size to
a non default value it to get UDP answers to pass
through broken firewalls that block fragmented
packets
and/
or block UDP packets that are greater
<
term><
command>masterfile-format</
command></
term>
<
para><
command>masterfile-format</
command> specifies
the file format of zone files (see
<
xref linkend="zonefile_format"/>).
The default value is <
constant>text</
constant>, which is the
standard textual representation. Files in other formats
than <
constant>text</
constant> are typically expected
to be generated by the <
command>named-compilezone</
command>.
Note that when a zone file in a different format than
<
constant>text</
constant> is loaded, <
command>named</
command>
may omit some of the checks which would be performed for a
file in the <
constant>text</
constant> format. In particular,
<
command>check-names</
command> checks do not apply
for the <
constant>raw</
constant> format. This means
a zone file in the <
constant>raw</
constant> format
must be generated with the same check level as that
specified in the <
command>named</
command> configuration
file. This statement sets the
<
command>masterfile-format</
command> for all zones,
but can be overridden on a per-zone / per-view basis
by including a <
command>masterfile-format</
command>
statement within the <
command>zone</
command> or
<
command>view</
command> block in the configuration
<
title>Built-in server information zones</
title>
The server provides some helpful diagnostic information
through a number of built-in zones under the
pseudo-top-level-domain <
literal>bind</
literal> in the
<
command>CHAOS</
command> class. These zones are part
built-in view (see <
xref linkend="view_statement_grammar"/>) of
<
command>CHAOS</
command> which is separate from the
class <
command>IN</
command>; therefore, any global
such as <
command>allow-query</
command> do not apply
If you feel the need to disable these zones, use the options
below, or hide the built-in <
command>CHAOS</
command>
defining an explicit view of class <
command>CHAOS</
command>
that matches all clients.
<
term><
command>version</
command></
term>
The version the server should report
with type <
command>TXT</
command>, class <
command>CHAOS</
command>.
The default is the real version number of this server.
Specifying <
command>version none</
command>
disables processing of the queries.
<
term><
command>hostname</
command></
term>
The hostname the server should report via a query of
with type <
command>TXT</
command>, class <
command>CHAOS</
command>.
This defaults to the hostname of the machine hosting the
found by gethostname(). The primary purpose of such queries
identify which of a group of anycast servers is actually
answering your queries. Specifying <
command>hostname none;</
command>
disables processing of the queries.
<
term><
command>server-id</
command></
term>
The ID of the server should report via a query of
with type <
command>TXT</
command>, class <
command>CHAOS</
command>.
The primary purpose of such queries is to
identify which of a group of anycast servers is actually
answering your queries. Specifying <
command>server-id none;</
command>
disables processing of the queries.
Specifying <
command>server-id hostname;</
command> will cause named to
use the hostname as found by gethostname().
The default <
command>server-id</
command> is <
command>none</
command>.
<
title>The Statistics File</
title>
The statistics file generated by <
acronym>BIND</
acronym> 9
is similar, but not identical, to that
generated by <
acronym>BIND</
acronym> 8.
The statistics dump begins with the line <
command>+++ Statistics Dump
+++ (973798949)</
command>, where the number in parentheses is a standard
Unix-style timestamp, measured as seconds since January 1, 1970.
that line are a series of lines containing a counter type, the
counter, optionally a zone name, and optionally a view name.
The lines without view and zone listed are global statistics for
Lines with a zone and view name for the given view and zone (the
omitted for the default view). The statistics dump ends
with the line <
command>--- Statistics Dump --- (973798949)</
command>, where the
number is identical to the number in the beginning line.
The following statistics counters are maintained:
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="3.350in"/>
<
para><
command>success</
command></
para>
successful queries made to the server or zone. A
is defined as query which returns a NOERROR response
<
para><
command>referral</
command></
para>
The number of queries which resulted
<
para><
command>nxrrset</
command></
para>
The number of queries which resulted in
NOERROR responses with no data.
<
para><
command>nxdomain</
command></
para>
of queries which resulted in NXDOMAIN responses.
<
para><
command>failure</
command></
para>
The number of queries which resulted in a
failure response other than those above.
<
para><
command>recursion</
command></
para>
The number of queries which caused the server
to perform recursion in order to find the final answer.
Each query received by the server will cause exactly one of
<
command>success</
command>,
<
command>referral</
command>,
<
command>nxrrset</
command>,
<
command>nxdomain</
command>, or
<
command>failure</
command>
to be incremented, and may additionally cause the
<
command>recursion</
command> counter to be
<
title>Additional Section Caching</
title>
The additional section cache, also called <
command>acache</
command>,
is an internal cache to improve the response performance of BIND 9.
When additional section caching is enabled, BIND 9 will
cache an internal short-cut to the additional section content for
Note that <
command>acache</
command> is an internal caching
mechanism of BIND 9, and is not related to the DNS caching
Additional section caching does not change the
response content (except the RRsets ordering of the additional
section, see below), but can improve the response performance
It is particularly effective when BIND 9 acts as an authoritative
server for a zone that has many delegations with many glue RRs.
In order to obtain the maximum performance improvement
from additional section caching, setting
<
command>additional-from-cache</
command>
to <
command>no</
command> is recommended, since the current
implementation of <
command>acache</
command>
does not short-cut of additional section information from the
One obvious disadvantage of <
command>acache</
command> is
that it requires much more
memory for the internal cached data.
Thus, if the response performance does not matter and memory
consumption is much more critical, the
<
command>acache</
command> mechanism can be
disabled by setting <
command>use-additional-cache</
command> to
It is also possible to specify the upper limit of memory
for acache by using <
command>max-acache-size</
command>.
Additional section caching also has a minor effect on the
RRset ordering in the additional section.
Without <
command>acache</
command>,
<
command>cyclic</
command> order is effective for the additional
section as well as the answer and authority sections.
However, additional section caching fixes the ordering when it
first caches an RRset for the additional section, and the same
ordering will be kept in succeeding responses, regardless of the
setting of <
command>rrset-order</
command>.
The effect of this should be minor, however, since an
RRset in the additional section
typically only contains a small number of RRs (and in many cases
it only contains a single RR), in which case the
ordering does not matter much.
The following is a summary of options related to
<
command>acache</
command>.
<
term><
command>use-additional-cache</
command></
term>
If <
command>yes</
command>, additional section caching is enabled.
The default value is <
command>yes</
command>.
<
term><
command>acache-cleaning-interval</
command></
term>
The server will remove stale cache entries, based on an LRU
algorithm, every <
command>acache-cleaning-interval</
command> minutes.
The default is 60 minutes.
If set to 0, no periodic cleaning will occur.
<
term><
command>max-acache-size</
command></
term>
The maximum amount of memory to use for the server's acache,
When the amount of data in the acache reaches this limit,
will clean more aggressivly so that the limit is not
In a server with multiple views, the limit applies
The default is <
literal>unlimited</
literal>,
entries are purged from the acache only at the
<
sect2 id="server_statement_grammar">
<
title><
command>server</
command> Statement Grammar</
title>
<
programlisting>server <
replaceable>ip_addr[/prefixlen]</
replaceable> {
<
optional> bogus <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> provide-ixfr <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> request-ixfr <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> edns <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> edns-udp-size <
replaceable>number</
replaceable> ; </
optional>
<
optional> transfers <
replaceable>number</
replaceable> ; </
optional>
<
optional> transfer-format <
replaceable>( one-answer | many-answers )</
replaceable> ; ]</
optional>
<
optional> keys <
replaceable>{ string ; <
optional> string ; <
optional>...</
optional></
optional> }</
replaceable> ; </
optional>
<
optional> transfer-source (<
replaceable>ip4_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> transfer-source-v6 (<
replaceable>ip6_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
sect2 id="server_statement_definition_and_usage">
<
title><
command>server</
command> Statement Definition and
The <
command>server</
command> statement defines
to be associated with a remote name server. If a prefix length is
specified then a range of servers is covered. Only the most
server clause applies regardless of the order in
The <
command>server</
command> statement can occur at
configuration file or inside a <
command>view</
command>
If a <
command>view</
command> statement contains
one or more <
command>server</
command> statements, only
apply to the view and any top-level ones are ignored.
If a view contains no <
command>server</
command>
any top-level <
command>server</
command> statements are
If you discover that a remote server is giving out bad data,
marking it as bogus will prevent further queries to it. The
value of <
command>bogus</
command> is <
command>no</
command>.
The <
command>provide-ixfr</
command> clause determines
the local server, acting as master, will respond with an
zone transfer when the given remote server, a slave, requests it.
If set to <
command>yes</
command>, incremental transfer
whenever possible. If set to <
command>no</
command>,
to the remote server will be non-incremental. If not set, the
of the <
command>provide-ixfr</
command> option in the
global options block is used as a default.
The <
command>request-ixfr</
command> clause determines
the local server, acting as a slave, will request incremental zone
transfers from the given remote server, a master. If not set, the
value of the <
command>request-ixfr</
command> option in
global options block is used as a default.
IXFR requests to servers that do not support IXFR will
fall back to AXFR. Therefore, there is no need to manually list
which servers support IXFR and which ones do not; the global
of <
command>yes</
command> should always work.
The purpose of the <
command>provide-ixfr</
command> and
<
command>request-ixfr</
command> clauses is
to make it possible to disable the use of IXFR even when both
and slave claim to support it, for example if one of the servers
is buggy and crashes or corrupts data when IXFR is used.
The <
command>edns</
command> clause determines whether
the local server will attempt to use EDNS when communicating
with the remote server. The default is <
command>yes</
command>.
The <
command>edns-udp-size</
command> option sets the EDNS UDP size
that is advertised by named when querying the remote server.
Valid values are 512 to 4096 (values outside this range will be
silently adjusted). This option is useful when you wish to
advertises a different value to this server than the value you
advertise globally, for example, when there is a firewall at the
remote site that is blocking large replies.
The server supports two zone transfer methods. The first, <
command>one-answer</
command>,
uses one DNS message per resource record transferred. <
command>many-answers</
command> packs
as many resource records as possible into a message. <
command>many-answers</
command> is
more efficient, but is only known to be understood by <
acronym>BIND</
acronym> 9, <
acronym>BIND</
acronym>
8.x, and patched versions of <
acronym>BIND</
acronym>
4.9.5. You can specify which method
to use for a server with the <
command>transfer-format</
command> option.
If <
command>transfer-format</
command> is not
specified, the <
command>transfer-format</
command>
by the <
command>options</
command> statement will be
<
para><
command>transfers</
command>
is used to limit the number of concurrent inbound zone
transfers from the specified server. If no
<
command>transfers</
command> clause is specified, the
limit is set according to the
<
command>transfers-per-ns</
command> option.
The <
command>keys</
command> clause identifies a
<
command>key_id</
command> defined by the <
command>key</
command> statement,
to be used for transaction security (TSIG, <
xref linkend="tsig"/>)
when talking to the remote server.
When a request is sent to the remote server, a request signature
will be generated using the key specified here and appended to the
message. A request originating from the remote server is not
to be signed by this key.
Although the grammar of the <
command>keys</
command>
allows for multiple keys, only a single key per server is
The <
command>transfer-source</
command> and
<
command>transfer-source-v6</
command> clauses specify
address to be used for zone transfer with the remote server,
For an IPv4 remote server, only <
command>transfer-source</
command> can
Similarly, for an IPv6 remote server, only
<
command>transfer-source-v6</
command> can be
Form more details, see the description of
<
command>transfer-source</
command> and
<
command>transfer-source-v6</
command> in
<
xref linkend="zone_transfers"/>.
<
title><
command>trusted-keys</
command> Statement Grammar</
title>
<
programlisting>trusted-keys {
<
replaceable>string</
replaceable> <
replaceable>number</
replaceable> <
replaceable>number</
replaceable> <
replaceable>number</
replaceable> <
replaceable>string</
replaceable> ;
<
optional> <
replaceable>string</
replaceable> <
replaceable>number</
replaceable> <
replaceable>number</
replaceable> <
replaceable>number</
replaceable> <
replaceable>string</
replaceable> ; <
optional>...</
optional></
optional>
<
title><
command>trusted-keys</
command> Statement Definition
The <
command>trusted-keys</
command> statement defines
security roots. DNSSEC is described in <
xref linkend="DNSSEC"/>. A
security root is defined when the public key for a
zone is known, but cannot be securely obtained through DNS, either
because it is the DNS root zone or because its parent zone is
Once a key has been configured as a trusted key, it is treated as
if it had been validated and proven secure. The resolver attempts
DNSSEC validation on all DNS data in subdomains of a security
The <
command>trusted-keys</
command> statement can
multiple key entries, each consisting of the key's domain name,
flags, protocol, algorithm, and the Base-64 representation of the
<
sect2 id="view_statement_grammar">
<
title><
command>view</
command> Statement Grammar</
title>
<
programlisting>view <
replaceable>view_name</
replaceable>
<
optional><
replaceable>class</
replaceable></
optional> {
match-clients { <
replaceable>address_match_list</
replaceable> };
match-destinations { <
replaceable>address_match_list</
replaceable> };
match-recursive-only <
replaceable>yes_or_no</
replaceable> ;
<
optional> <
replaceable>view_option</
replaceable>; ...</
optional>
<
optional> <
replaceable>zone_statement</
replaceable>; ...</
optional>
<
title><
command>view</
command> Statement Definition and Usage</
title>
The <
command>view</
command> statement is a powerful
of <
acronym>BIND</
acronym> 9 that lets a name server
answer a DNS query differently
depending on who is asking. It is particularly useful for
split DNS setups without having to run multiple servers.
Each <
command>view</
command> statement defines a view
DNS namespace that will be seen by a subset of clients. A client
a view if its source IP address matches the
<
varname>address_match_list</
varname> of the view's
<
command>match-clients</
command> clause and its
destination IP address matches
the <
varname>address_match_list</
varname> of the
<
command>match-destinations</
command> clause. If not
<
command>match-clients</
command> and <
command>match-destinations</
command>
default to matching all addresses. In addition to checking IP
<
command>match-clients</
command> and <
command>match-destinations</
command>
can also take <
command>keys</
command> which provide an
client to select the view. A view can also be specified
as <
command>match-recursive-only</
command>, which
means that only recursive
requests from matching clients will match that view.
The order of the <
command>view</
command> statements is
a client request will be resolved in the context of the first
<
command>view</
command> that it matches.
Zones defined within a <
command>view</
command>
be only be accessible to clients that match the <
command>view</
command>.
By defining a zone of the same name in multiple views, different
zone data can be given to different clients, for example,
and "external" clients in a split DNS setup.
Many of the options given in the <
command>options</
command> statement
can also be used within a <
command>view</
command>
apply only when resolving queries with that view. When no
value is given, the value in the <
command>options</
command> statement
is used as a default. Also, zone options can have default values
in the <
command>view</
command> statement; these
take precedence over those in the <
command>options</
command> statement.
Views are class specific. If no class is given, class IN
is assumed. Note that all non-IN views must contain a hint zone,
since only the IN class has compiled-in default hints.
If there are no <
command>view</
command> statements in
file, a default view that matches any client is automatically
in class IN. Any <
command>zone</
command> statements
the top level of the configuration file are considered to be part
this default view, and the <
command>options</
command>
apply to the default view. If any explicit <
command>view</
command>
statements are present, all <
command>zone</
command>
occur inside <
command>view</
command> statements.
Here is an example of a typical split DNS setup implemented
using <
command>view</
command> statements.
<
programlisting>view "internal" {
// This should match our internal networks.
match-clients { 10.0.0.0/8; };
// Provide recursive service to internal clients only.
// including addresses of internal hosts.
// Match all clients not matched by the previous view.
// Refuse recursive service to external clients.
// containing only publicly accessible hosts.
<
sect2 id="zone_statement_grammar">
<
title><
command>zone</
command>
Statement Grammar</
title>
<
programlisting>zone <
replaceable>zone_name</
replaceable> <
optional><
replaceable>class</
replaceable></
optional> <
optional>{
type ( master | slave | hint | stub | forward | delegation-only ) ;
<
optional> allow-notify { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-query { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-transfer { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> allow-update { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> update-policy { <
replaceable>update_policy_rule</
replaceable> <
optional>...</
optional> }; </
optional>
<
optional> allow-update-forwarding { <
replaceable>address_match_list</
replaceable> }; </
optional>
<
optional> also-notify { <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; <
optional> <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; ... </
optional> }; </
optional>
<
optional> check-names (<
constant>warn</
constant>|<
constant>fail</
constant>|<
constant>ignore</
constant>) ; </
optional>
<
optional> check-mx (<
constant>warn</
constant>|<
constant>fail</
constant>|<
constant>ignore</
constant>) ; </
optional>
<
optional> check-wildcard <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> integrity-checks <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> dialup <
replaceable>dialup_option</
replaceable> ; </
optional>
<
optional> delegation-only <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> file <
replaceable>string</
replaceable> ; </
optional>
<
optional> masterfile-format (<
constant>text</
constant>|<
constant>raw</
constant>) ; </
optional>
<
optional> journal <
replaceable>string</
replaceable> ; </
optional>
<
optional> forward (<
constant>only</
constant>|<
constant>first</
constant>) ; </
optional>
<
optional> forwarders { <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; <
optional> <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; ... </
optional> }; </
optional>
<
optional> ixfr-base <
replaceable>string</
replaceable> ; </
optional>
<
optional> ixfr-tmp-file <
replaceable>string</
replaceable> ; </
optional>
<
optional> maintain-ixfr-base <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> masters <
optional>port <
replaceable>ip_port</
replaceable></
optional> { ( <
replaceable>masters_list</
replaceable> | <
replaceable>ip_addr</
replaceable> <
optional>port <
replaceable>ip_port</
replaceable></
optional> <
optional>key <
replaceable>key</
replaceable></
optional> ) ; <
optional>...</
optional> }; </
optional>
<
optional> max-ixfr-log-size <
replaceable>number</
replaceable> ; </
optional>
<
optional> max-transfer-idle-in <
replaceable>number</
replaceable> ; </
optional>
<
optional> max-transfer-idle-out <
replaceable>number</
replaceable> ; </
optional>
<
optional> max-transfer-time-in <
replaceable>number</
replaceable> ; </
optional>
<
optional> max-transfer-time-out <
replaceable>number</
replaceable> ; </
optional>
<
optional> notify <
replaceable>yes_or_no</
replaceable> | <
replaceable>explicit</
replaceable> | <
replaceable>master-only</
replaceable> ; </
optional>
<
optional> pubkey <
replaceable>number</
replaceable> <
replaceable>number</
replaceable> <
replaceable>number</
replaceable> <
replaceable>string</
replaceable> ; </
optional>
<
optional> transfer-source (<
replaceable>ip4_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> transfer-source-v6 (<
replaceable>ip6_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> alt-transfer-source (<
replaceable>ip4_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> alt-transfer-source-v6 (<
replaceable>ip6_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> use-alt-transfer-source <
replaceable>yes_or_no</
replaceable>; </
optional>
<
optional> notify-source (<
replaceable>ip4_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> notify-source-v6 (<
replaceable>ip6_addr</
replaceable> | <
constant>*</
constant>) <
optional>port <
replaceable>ip_port</
replaceable></
optional> ; </
optional>
<
optional> zone-statistics <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> sig-validity-interval <
replaceable>number</
replaceable> ; </
optional>
<
optional> database <
replaceable>string</
replaceable> ; </
optional>
<
optional> min-refresh-time <
replaceable>number</
replaceable> ; </
optional>
<
optional> max-refresh-time <
replaceable>number</
replaceable> ; </
optional>
<
optional> min-retry-time <
replaceable>number</
replaceable> ; </
optional>
<
optional> max-retry-time <
replaceable>number</
replaceable> ; </
optional>
<
optional> multi-master <
replaceable>yes_or_no</
replaceable> ; </
optional>
<
optional> key-directory <
replaceable>path_name</
replaceable>; </
optional>
<
title><
command>zone</
command> Statement Definition and Usage</
title>
<
title>Zone Types</
title>
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
<!--colspec colname="1" colnum="1" colsep="0" colwidth="1.108in"/--> <!--colspec colname="2" colnum="2" colsep="0" colwidth="4.017in"/--> <
colspec colname="1" colnum="1" colsep="0"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="4.017in"/>
<
varname>master</
varname>
The server has a master copy of the data
for the zone and will be able to provide authoritative
A slave zone is a replica of a master
zone. The <
command>masters</
command> list
specifies one or more IP addresses
of master servers that the slave contacts to update
Masters list elements can also be names of other
By default, transfers are made from port 53 on the
be changed for all servers by specifying a port number
list of IP addresses, or on a per-server basis after
Authentication to the master can also be done with
If a file is specified, then the
replica will be written to this file whenever the zone
and reloaded from this file on a server restart. Use
recommended, since it often speeds server start-up and
a needless waste of bandwidth. Note that for large
tens or hundreds of thousands) of zones per server, it
use a two level naming scheme for zone file names. For
a slave server for the zone <
literal>
example.com</
literal> might place
the zone contents into a file called
<
filename>
ex/
example.com</
filename> where <
filename>ex/</
filename> is
just the first two letters of the zone name. (Most
behave very slowly if you put 100 000 files into
A stub zone is similar to a slave zone,
except that it replicates only the NS records of a
of the entire zone. Stub zones are not a standard part
they are a feature specific to the <
acronym>BIND</
acronym> implementation.
Stub zones can be used to eliminate the need for glue
in a parent zone at the expense of maintaining a stub
a set of name server addresses in <
filename>
named.conf</
filename>.
This usage is not recommended for new configurations,
supports it only in a limited way.
In <
acronym>BIND</
acronym> 4/8, zone
transfers of a parent zone
included the NS records from stub children of that
that, in some cases, users could get away with
only in the master server for the parent zone. <
acronym>BIND</
acronym>
9 never mixes together zone data from different zones
way. Therefore, if a <
acronym>BIND</
acronym> 9 master serving a parent
zone has child stub zones configured, all the slave
parent zone also need to have the same child stub
Stub zones can also be used as a way of forcing the
of a given domain to use a particular set of
For example, the caching name servers on a private
RFC1918 addressing may be configured with stub zones
to use a set of internal name servers as the
<
varname>forward</
varname>
A "forward zone" is a way to configure
forwarding on a per-domain basis. A <
command>zone</
command> statement
of type <
command>forward</
command> can
contain a <
command>forward</
command>
and/
or <
command>forwarders</
command>
which will apply to queries within the domain given by
name. If no <
command>forwarders</
command>
an empty list for <
command>forwarders</
command> is given, then no
forwarding will be done for the domain, canceling the
any forwarders in the <
command>options</
command> statement. Thus
if you want to use this type of zone to change the
global <
command>forward</
command> option
to", then "forward only", or vice versa, but want to
servers as set globally) you need to re-specify the
The initial set of root name servers is
specified using a "hint zone". When the server starts
the root hints to find a root name server and get the
list of root name servers. If no hint zone is
IN, the server uses a compiled-in default set of root
Classes other than IN have no built-in defaults hints.
<
varname>delegation-only</
varname>
This is used to enforce the delegation only
status of infrastructure zones (
e.g. COM, NET, ORG).
is received without a explicit or implicit delegation
section will be treated as NXDOMAIN. This does not
apex. This SHOULD NOT be applied to leaf zones.
<
varname>delegation-only</
varname> has no
effect on answers received
The zone's name may optionally be followed by a class. If
a class is not specified, class <
literal>IN</
literal> (for <
varname>Internet</
varname>),
is assumed. This is correct for the vast majority of cases.
The <
literal>hesiod</
literal> class is
named for an information service from MIT's Project Athena. It
used to share information about various systems databases, such
as users, groups, printers and so on. The keyword
Another MIT development is CHAOSnet, a LAN protocol created
in the mid-1970s. Zone data for it can be specified with the <
literal>CHAOS</
literal> class.
<
title>Zone Options</
title>
<
term><
command>journal</
command></
term>
Allow the default journal's file name to be overridden.
The default is the zone's file with "<
filename>.jnl</
filename>" appended.
This is applicable to <
command>master</
command> and <
command>slave</
command> zones.
<
term><
command>allow-notify</
command></
term>
<
command>allow-notify</
command> in <
xref linkend="access_control"/>
<
term><
command>allow-query</
command></
term>
<
command>allow-query</
command> in <
xref linkend="access_control"/>
<
term><
command>allow-transfer</
command></
term>
See the description of <
command>allow-transfer</
command>
in <
xref linkend="access_control"/>.
<
term><
command>allow-update</
command></
term>
See the description of <
command>allow-update</
command>
in <
xref linkend="access_control"/>.
<
term><
command>update-policy</
command></
term>
Specifies a "Simple Secure Update" policy. See
<
xref linkend="dynamic_update_policies"/>.
<
term><
command>allow-update-forwarding</
command></
term>
See the description of <
command>allow-update-forwarding</
command>
in <
xref linkend="access_control"/>.
<
term><
command>also-notify</
command></
term>
Only meaningful if <
command>notify</
command>
active for this zone. The set of machines that will
<
literal>DNS NOTIFY</
literal> message
for this zone is made up of all the listed name servers
the primary master) for the zone plus any IP addresses
with <
command>also-notify</
command>. A port
with each <
command>also-notify</
command>
address to send the notify
messages to a port other than the default of 53.
<
command>also-notify</
command> is not
meaningful for stub zones.
The default is the empty list.
<
term><
command>check-names</
command></
term>
This option is used to restrict the character set and
certain domain names in master files
and/
or DNS responses
network. The default varies according to zone type. For <
command>master</
command> zones the default is <
command>fail</
command>. For <
command>slave</
command>
zones the default is <
command>warn</
command>.
<
term><
command>check-mx</
command></
term>
<
command>check-mx</
command> in <
xref linkend="boolean_options"/>.
<
term><
command>check-wildcard</
command></
term>
<
command>check-wildcard</
command> in <
xref linkend="boolean_options"/>.
<
term><
command>integrity-check</
command></
term>
<
command>integrity-check</
command> in <
xref linkend="boolean_options"/>.
<
term><
command>database</
command></
term>
Specify the type of database to be used for storing the
zone data. The string following the <
command>database</
command> keyword
is interpreted as a list of whitespace-delimited words.
identifies the database type, and any subsequent words are
as arguments to the database to be interpreted in a way
The default is <
userinput>"rbt"</
userinput>, BIND 9's
red-black-tree database. This database does not take
Other values are possible if additional database drivers
have been linked into the server. Some sample drivers are
with the distribution but none are linked in by default.
<
term><
command>dialup</
command></
term>
<
command>dialup</
command> in <
xref linkend="boolean_options"/>.
<
term><
command>delegation-only</
command></
term>
The flag only applies to hint and stub zones. If set
to <
userinput>yes</
userinput> then the zone will also be
is also a delegation-only type zone.
<
term><
command>forward</
command></
term>
Only meaningful if the zone has a forwarders
list. The <
command>only</
command> value causes
after trying the forwarders and getting no answer, while <
command>first</
command> would
allow a normal lookup to be tried.
<
term><
command>forwarders</
command></
term>
Used to override the list of global forwarders.
If it is not specified in a zone of type <
command>forward</
command>,
no forwarding is done for the zone; the global options are
<
term><
command>ixfr-base</
command></
term>
Was used in <
acronym>BIND</
acronym> 8 to
of the transaction log (journal) file for dynamic update
<
acronym>BIND</
acronym> 9 ignores the option
and constructs the name of the journal
file by appending "<
filename>.jnl</
filename>"
<
term><
command>ixfr-tmp-file</
command></
term>
Was an undocumented option in <
acronym>BIND</
acronym> 8.
Ignored in <
acronym>BIND</
acronym> 9.
<
term><
command>max-transfer-time-in</
command></
term>
<
command>max-transfer-time-in</
command> in <
xref linkend="zone_transfers"/>.
<
term><
command>max-transfer-idle-in</
command></
term>
<
command>max-transfer-idle-in</
command> in <
xref linkend="zone_transfers"/>.
<
term><
command>max-transfer-time-out</
command></
term>
<
command>max-transfer-time-out</
command> in <
xref linkend="zone_transfers"/>.
<
term><
command>max-transfer-idle-out</
command></
term>
<
command>max-transfer-idle-out</
command> in <
xref linkend="zone_transfers"/>.
<
term><
command>notify</
command></
term>
<
command>notify</
command> in <
xref linkend="boolean_options"/>.
<
term><
command>pubkey</
command></
term>
In <
acronym>BIND</
acronym> 8, this option was
a public zone key for verification of signatures in DNSSEC
zones when they are loaded from disk. <
acronym>BIND</
acronym> 9 does not verify signatures
on load and ignores the option.
<
term><
command>zone-statistics</
command></
term>
If <
userinput>yes</
userinput>, the server will keep
information for this zone, which can be dumped to the
<
command>statistics-file</
command> defined in
<
term><
command>sig-validity-interval</
command></
term>
<
command>sig-validity-interval</
command> in <
xref linkend="tuning"/>.
<
term><
command>transfer-source</
command></
term>
<
command>transfer-source</
command> in <
xref linkend="zone_transfers"/>
<
term><
command>transfer-source-v6</
command></
term>
<
command>transfer-source-v6</
command> in <
xref linkend="zone_transfers"/>
<
term><
command>alt-transfer-source</
command></
term>
<
command>alt-transfer-source</
command> in <
xref linkend="zone_transfers"/>
<
term><
command>alt-transfer-source-v6</
command></
term>
<
command>alt-transfer-source-v6</
command> in <
xref linkend="zone_transfers"/>
<
term><
command>use-alt-transfer-source</
command></
term>
<
command>use-alt-transfer-source</
command> in <
xref linkend="zone_transfers"/>
<
term><
command>notify-source</
command></
term>
<
command>notify-source</
command> in <
xref linkend="zone_transfers"/>
<
term><
command>notify-source-v6</
command></
term>
<
command>notify-source-v6</
command> in <
xref linkend="zone_transfers"/>.
<
term><
command>min-refresh-time</
command></
term>
<
term><
command>max-refresh-time</
command></
term>
<
term><
command>min-retry-time</
command></
term>
<
term><
command>max-retry-time</
command></
term>
See the description in <
xref linkend="tuning"/>.
<
term><
command>ixfr-from-differences</
command></
term>
<
command>ixfr-from-differences</
command> in <
xref linkend="boolean_options"/>.
<
term><
command>key-directory</
command></
term>
<
command>key-directory</
command> in <
xref linkend="options"/>
<
term><
command>multi-master</
command></
term>
See the description of <
command>multi-master</
command> in
<
xref linkend="boolean_options"/>.
<
term><
command>masterfile-format</
command></
term>
See the description of <
command>masterfile-format</
command>
in <
xref linkend="tuning"/>.
<
sect3 id="dynamic_update_policies">
<
title>Dynamic Update Policies</
title>
<
acronym>BIND</
acronym> 9 supports two alternative
methods of granting clients
the right to perform dynamic updates to a zone,
configured by the <
command>allow-update</
command>
<
command>update-policy</
command> option,
The <
command>allow-update</
command> clause works the
way as in previous versions of <
acronym>BIND</
acronym>. It grants given clients the
permission to update any record of any name in the zone.
The <
command>update-policy</
command> clause is new
in <
acronym>BIND</
acronym>
9 and allows more fine-grained control over what updates are
A set of rules is specified, where each rule either grants or
permissions for one or more names to be updated by one or more
If the dynamic update request message is signed (that is, it
either a TSIG or SIG(0) record), the identity of the signer can
Rules are specified in the <
command>update-policy</
command> zone
option, and are only meaningful for master zones. When the <
command>update-policy</
command> statement
is present, it is a configuration error for the <
command>allow-update</
command> statement
to be present. The <
command>update-policy</
command>
examines the signer of a message; the source address is not
This is how a rule definition looks:
( <
command>grant</
command> | <
command>deny</
command> ) <
replaceable>identity</
replaceable> <
replaceable>nametype</
replaceable> <
replaceable>name</
replaceable> <
optional> <
replaceable>types</
replaceable> </
optional>
Each rule grants or denies privileges. Once a message has
successfully matched a rule, the operation is immediately
or denied and no further rules are examined. A rule is matched
when the signer matches the identity field, the name matches the
name field in accordance with the nametype field, and the type
the types specified in the type field.
The identity field specifies a name or a wildcard name.
is the name of the TSIG or SIG(0) key used to sign the update
TKEY exchange has been used to create a shared secret, the
shared secret is the same as the identity of the key used to
TKEY exchange. When the <
replaceable>identity</
replaceable> field specifies a
wildcard name, it is subject to DNS wildcard expansion, so the
to multiple identities. The <
replaceable>identity</
replaceable> field must
contain a fully qualified domain name.
The <
replaceable>nametype</
replaceable> field has 4
<
varname>name</
varname>, <
varname>subdomain</
varname>,
<
varname>wildcard</
varname>, and <
varname>self</
varname>.
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="0.819in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="3.681in"/>
Exact-match semantics. This rule matches when the
name being updated is identical to the contents of the
<
replaceable>name</
replaceable> field.
<
varname>subdomain</
varname>
This rule matches when the name being updated
is a subdomain of, or identical to, the contents of
<
replaceable>name</
replaceable> field.
<
varname>wildcard</
varname>
The <
replaceable>name</
replaceable> field
subject to DNS wildcard expansion, and this rule
being updated name is a valid expansion of the
This rule matches when the name being updated
matches the contents of the <
replaceable>identity</
replaceable> field.
The <
replaceable>name</
replaceable> field
is ignored, but should be
the same as the <
replaceable>identity</
replaceable> field. The
<
varname>self</
varname> nametype is most
useful when allowing using
one key per name to update, where the key has the same
to be updated. The <
replaceable>identity</
replaceable> would be
specified as <
constant>*</
constant> in
In all cases, the <
replaceable>name</
replaceable>
specify a fully qualified domain name.
If no types are explicitly specified, this rule matches all
RRSIG, NS, SOA, and NSEC. Types may be specified by name, including
"ANY" (ANY matches all types except NSEC, which can never be
Note that when an attempt is made to delete all records
name, the rules are checked for each existing record type.
<
sect2 id="types_of_resource_records_and_when_to_use_them">
<
title>Types of Resource Records and When to Use Them</
title>
This section, largely borrowed from RFC 1034, describes the
concept of a Resource Record (RR) and explains when each is used.
Since the publication of RFC 1034, several new RRs have been
and implemented in the DNS. These are also included.
<
title>Resource Records</
title>
A domain name identifies a node. Each node has a set of
resource information, which may be empty. The set of resource
information associated with a particular name is composed of
separate RRs. The order of RRs in a set is not significant and
need not be preserved by name servers, resolvers, or other
parts of the DNS. However, sorting of multiple RRs is
permitted for optimization purposes, for example, to specify
that a particular nearby server be tried first. See <
xref linkend="the_sortlist_statement"/> and <
xref linkend="rrset_ordering"/>.
The components of a Resource Record are:
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.000in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="3.500in"/>
The domain name where the RR is found.
An encoded 16 bit value that specifies
the type of the resource record.
The time to live of the RR. This field
is a 32 bit integer in units of seconds, and is
resolvers when they cache RRs. The TTL describes how
be cached before it should be discarded.
An encoded 16 bit value that identifies
a protocol family or instance of a protocol.
The resource data. The format of the
data is type (and sometimes class) specific.
The following are <
emphasis>types</
emphasis> of valid RRs:
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="0.875in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="3.625in"/>
A host address. In the IN class, this is a
32-bit IP address. Described in RFC 1035.
IPv6 address. Described in RFC 1886.
IPv6 address. This can be a partial
address (a suffix) and an indirection to the name
address (the prefix) can be found. Experimental.
Location of AFS database servers.
Experimental. Described in RFC 1183.
Address prefix list. Experimental.
Holds a digital certificate.
Identifies the canonical name of an alias.
Replaces the domain name specified with
another name to be looked up, effectively aliasing an
subtree of the domain name space rather than a single
as in the case of the CNAME RR.
Stores a public key associated with a signed
DNS zone. Described in RFC 4034.
Stores the hash of a public key associated with a
signed DNS zone. Described in RFC 4034.
Specifies the global position. Superseded by LOC.
Identifies the CPU and OS used by a host.
Representation of ISDN addresses.
Experimental. Described in RFC 1183.
Stores a public key associated with a
DNS name. Used in original DNSSEC; replaced
by DNSKEY in DNSSECbis, but still used with
SIG(0). Described in RFCs 2535 and 2931.
Identifies a key exchanger for this
DNS name. Described in RFC 2230.
For storing GPS info. Described in RFC 1876.
Identifies a mail exchange for the domain.
a 16 bit preference value (lower is better)
followed by the host name of the mail exchange.
Described in RFC 974, RFC 1035.
Name authority pointer. Described in RFC 2915.
A network service access point.
The authoritative name server for the
domain. Described in RFC 1035.
Used in DNSSECbis to securely indicate that
RRs with an owner name in a certain name interval do
a zone and indicate what RR types are present for an
Used in DNSSEC to securely indicate that
RRs with an owner name in a certain name interval do
a zone and indicate what RR types are present for an
Used in original DNSSEC; replaced by NSEC in
A pointer to another part of the domain
name space. Described in RFC 1035.
Provides mappings between RFC 822 and X.400
addresses. Described in RFC 2163.
Information on persons responsible
for the domain. Experimental. Described in RFC 1183.
Contains DNSSECbis signature data. Described
Route-through binding for hosts that
do not have their own direct wide area network
Experimental. Described in RFC 1183.
Contains DNSSEC signature data. Used in
original DNSSEC; replaced by RRSIG in
DNSSECbis, but still used for SIG(0).
Described in RFCs 2535 and 2931.
Identifies the start of a zone of authority.
Information about well known network
services (replaces WKS). Described in RFC 2782.
Text records. Described in RFC 1035.
Information about which well known
network services, such as SMTP, that a domain
Representation of X.25 network addresses.
Experimental. Described in RFC 1183.
The following <
emphasis>classes</
emphasis> of resource records
are currently valid in the DNS:
<
informaltable colsep="0" rowsep="0"><
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="0.875in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="3.625in"/>
CHAOSnet, a LAN protocol created at MIT in the
Rarely used for its historical purpose, but reused for
built-in server information zones,
e.g.,
Hesiod, an information service
developed by MIT's Project Athena. It is used to share
about various systems databases, such as users,
The owner name is often implicit, rather than forming an
part of the RR. For example, many name servers internally form
or hash structures for the name space, and chain RRs off nodes.
The remaining RR parts are the fixed header (type, class, TTL)
which is consistent for all RRs, and a variable part (RDATA)
fits the needs of the resource being described.
The meaning of the TTL field is a time limit on how long an
RR can be kept in a cache. This limit does not apply to
data in zones; it is also timed out, but by the refreshing
for the zone. The TTL is assigned by the administrator for the
zone where the data originates. While short TTLs can be used to
minimize caching, and a zero TTL prohibits caching, the
of Internet performance suggest that these times should be on
order of days for the typical host. If a change can be
the TTL can be reduced prior to the change to minimize
during the change, and then increased back to its former value
The data in the RDATA section of RRs is carried as a combination
of binary strings and domain names. The domain names are
used as "pointers" to other data in the DNS.
<
title>Textual expression of RRs</
title>
RRs are represented in binary form in the packets of the DNS
protocol, and are usually represented in highly encoded form
stored in a name server or resolver. In the examples provided
RFC 1034, a style similar to that used in master files was
in order to show the contents of RRs. In this format, most RRs
are shown on a single line, although continuation lines are
The start of the line gives the owner of the RR. If a line
begins with a blank, then the owner is assumed to be the same as
that of the previous RR. Blank lines are often included for
Following the owner, we list the TTL, type, and class of the
RR. Class and type use the mnemonics defined above, and TTL is
an integer before the type field. In order to avoid ambiguity
parsing, type and class mnemonics are disjoint, TTLs are
and the type mnemonic is always last. The IN class and TTL
are often omitted from examples in the interests of clarity.
The resource data or RDATA section of the RR are given using
knowledge of the typical representation for the data.
For example, we might show the RRs carried in a message as:
<
informaltable colsep="0" rowsep="0"><
tgroup cols="3" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.381in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="1.020in"/>
<
colspec colname="3" colnum="3" colsep="0" colwidth="2.099in"/>
<
literal>128.9.0.32</
literal>
<
literal>10.1.0.52</
literal>
<
literal>10.2.0.27</
literal>
<
literal>128.9.0.33</
literal>
The MX RRs have an RDATA section which consists of a 16 bit
number followed by a domain name. The address RRs use a
IP address format to contain a 32 bit internet address.
This example shows six RRs, with two RRs at each of three
<
informaltable colsep="0" rowsep="0"><
tgroup cols="3" colsep="0" rowsep="0" tgroupstyle="4Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.491in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="1.067in"/>
<
colspec colname="3" colnum="3" colsep="0" colwidth="2.067in"/>
<
literal>10.0.0.44</
literal>
This example shows two addresses for
<
title>Discussion of MX Records</
title>
As described above, domain servers store information as a
series of resource records, each of which contains a particular
piece of information about a given domain name (which is usually,
but not always, a host). The simplest way to think of a RR is as
a typed pair of data, a domain name matched with a relevant datum,
and stored with some additional type information to help systems
determine when the RR is relevant.
MX records are used to control delivery of email. The data
specified in the record is a priority and a domain name. The
controls the order in which email delivery is attempted, with the
lowest number first. If two priorities are the same, a server is
chosen randomly. If no servers at a given priority are responding,
the mail transport agent will fall back to the next largest
Priority numbers do not have any absolute meaning — they are
only respective to other MX records for that domain name. The
name given is the machine to which the mail will be delivered.
It <
emphasis>must</
emphasis> have an associated address record
(A or AAAA) — CNAME is not sufficient.
For a given domain, if there is both a CNAME record and an
MX record, the MX record is in error, and will be ignored.
the mail will be delivered to the server specified in the MX
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="5" colsep="0" rowsep="0" tgroupstyle="3Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.708in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="0.444in"/>
<
colspec colname="3" colnum="3" colsep="0" colwidth="0.444in"/>
<
colspec colname="4" colnum="4" colsep="0" colwidth="0.976in"/>
<
colspec colname="5" colnum="5" colsep="0" colwidth="1.553in"/>
<
literal>10.0.0.1</
literal>
<
literal>10.0.0.2</
literal>
any order), and if neither of those succeed, delivery to <
literal>
mail.backup.org</
literal> will
<
sect2 id="Setting_TTLs">
<
title>Setting TTLs</
title>
The time to live of the RR field is a 32 bit integer represented
in units of seconds, and is primarily used by resolvers when they
cache RRs. The TTL describes how long a RR can be cached before it
should be discarded. The following three types of TTL are
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="0.750in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="4.375in"/>
The last field in the SOA is the negative
caching TTL. This controls how long other servers will
(NXDOMAIN) responses from you.
negative caching is 3 hours (3h).
The $TTL directive at the top of the
zone file (before the SOA) gives a default TTL for every
Each RR can have a TTL as the second
field in the RR, which will control how long other
All of these TTLs default to units of seconds, though units
can be explicitly specified, for example, <
literal>1h30m</
literal>.
<
title>Inverse Mapping in IPv4</
title>
Reverse name resolution (that is, translation from IP address
to name) is achieved by means of the <
emphasis>
in-addr.arpa</
emphasis> domain
and PTR records. Entries in the
in-addr.arpa domain are made in
least-to-most significant order, read left to right. This is the
opposite order to the way IP addresses are usually written. Thus,
a machine with an IP address of 10.1.2.3 would have a
whose data field is the name of the machine or, optionally,
PTR records if the machine has more than one name. For example,
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="1.125in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="4.000in"/>
<
literal>$ORIGIN</
literal>
The <
command>$ORIGIN</
command> lines in the examples
are for providing context to the examples only-they do not
appear in the actual usage. They are only used here to indicate
that the example is relative to the listed origin.
<
title>Other Zone File Directives</
title>
The Master File Format was initially defined in RFC 1035 and
has subsequently been extended. While the Master File Format
is class independent all records in a Master File must be of the
Master File Directives include <
command>$ORIGIN</
command>, <
command>$INCLUDE</
command>,
and <
command>$TTL.</
command>
<
title>The <
command>$ORIGIN</
command> Directive</
title>
Syntax: <
command>$ORIGIN</
command>
<
replaceable>domain-name</
replaceable>
<
optional><
replaceable>comment</
replaceable></
optional>
<
para><
command>$ORIGIN</
command>
sets the domain name that will be appended to any
unqualified records. When a zone is first read in there
is an implicit <
command>$ORIGIN</
command>
<<
varname>zone-name</
varname>><
command>.</
command>
The current <
command>$ORIGIN</
command> is appended to
the domain specified in the <
command>$ORIGIN</
command>
argument if it is not absolute.
<
title>The <
command>$INCLUDE</
command> Directive</
title>
Syntax: <
command>$INCLUDE</
command>
<
replaceable>filename</
replaceable>
<
replaceable>origin</
replaceable> </
optional>
<
optional> <
replaceable>comment</
replaceable> </
optional>
Read and process the file <
filename>filename</
filename> as
if it were included into the file at this point. If <
command>origin</
command> is
specified the file is processed with <
command>$ORIGIN</
command> set
to that value, otherwise the current <
command>$ORIGIN</
command> is
The origin and the current domain name
revert to the values they had prior to the <
command>$INCLUDE</
command> once
RFC 1035 specifies that the current origin should be restored
an <
command>$INCLUDE</
command>, but it is silent
domain name should also be restored. BIND 9 restores both of
This could be construed as a deviation from RFC 1035, a
<
title>The <
command>$TTL</
command> Directive</
title>
Syntax: <
command>$TTL</
command>
<
replaceable>default-ttl</
replaceable>
<
replaceable>comment</
replaceable> </
optional>
Set the default Time To Live (TTL) for subsequent records
with undefined TTLs. Valid TTLs are of the range 0-2147483647
<
para><
command>$TTL</
command>
<
title><
acronym>BIND</
acronym> Master File Extension: the <
command>$GENERATE</
command> Directive</
title>
Syntax: <
command>$GENERATE</
command>
<
replaceable>range</
replaceable>
<
replaceable>lhs</
replaceable>
<
optional><
replaceable>ttl</
replaceable></
optional>
<
optional><
replaceable>class</
replaceable></
optional>
<
replaceable>type</
replaceable>
<
replaceable>rhs</
replaceable>
<
optional><
replaceable>comment</
replaceable></
optional>
<
para><
command>$GENERATE</
command>
is used to create a series of resource records that only
differ from each other by an
iterator. <
command>$GENERATE</
command> can be used to
easily generate the sets of records required to support
sub /24 reverse delegations described in RFC 2317:
$GENERATE 1-2 0 NS SERVER$.EXAMPLE.
$GENERATE 1-127 $ CNAME $.0</
programlisting>
<
informaltable colsep="0" rowsep="0">
<
tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
<
colspec colname="1" colnum="1" colsep="0" colwidth="0.875in"/>
<
colspec colname="2" colnum="2" colsep="0" colwidth="4.250in"/>
<
para><
command>range</
command></
para>
This can be one of two forms: start-stop
1. All of start, stop and step must be positive.
<
para><
command>lhs</
command></
para>
<
para><
command>lhs</
command>
describes the owner name of the resource records
to be created. Any single <
command>$</
command>
symbols within the <
command>lhs</
command> side
are replaced by the iterator value.
To get a $ in the output you need to escape the
<
command>$</
command> using a backslash
e.g. <
command>\$</
command>. The
<
command>$</
command> may optionally be followed
by modifiers which change the offset from the
iterator, field width and base.
Modifiers are introduced by a
<
command>{</
command> immediately following the
<
command>${offset[,width[,base]]}</
command>.
e.g. <
command>${-20,3,d}</
command> which
subtracts 20 from the current value, prints the
result as a decimal in a zero padded field of
Available output forms are decimal
(<
command>d</
command>), octal
(<
command>o</
command>) and hexadecimal
(<
command>x</
command> or <
command>X</
command>
for uppercase). The default modifier is
<
command>${0,0,d}</
command>. If the
<
command>lhs</
command> is not absolute, the
current <
command>$ORIGIN</
command> is appended
For compatibility with earlier versions <
command>$$</
command> is still
recognized a indicating a literal $ in the output.
<
para><
command>ttl</
command></
para>
<
para><
command>ttl</
command>
specifies the ttl of the generated records. If
not specified this will be inherited using the
normal ttl inheritance rules.
<
para><
command>class</
command>
and <
command>ttl</
command> can be
<
para><
command>class</
command></
para>
<
para><
command>class</
command>
specifies the class of the generated records.
This must match the zone class if it is
<
para><
command>class</
command>
and <
command>ttl</
command> can be
<
para><
command>type</
command></
para>
At present the only supported types are
PTR, CNAME, DNAME, A, AAAA and NS.
<
para><
command>rhs</
command></
para>
rhs is a domain name. It is processed
The <
command>$GENERATE</
command> directive is a <
acronym>BIND</
acronym> extension
and not part of the standard zone file format.
BIND 8 does not support the optional TTL and CLASS fields.
<
sect2 id="zonefile_format">
<
title>Additional File Formats</
title>
In addition to the standard textual format, BIND 9
supports the ability to read or dump to zone files in
other formats. The <
constant>raw</
constant> format is
currently available as an additional format. It is a
binary format representing BIND 9's internal data
structure directly, thereby remarkably improving the
For a primary server, a zone file in the
<
constant>raw</
constant> format is expected to be
generated from a textual zone file by the
<
command>named-compilezone</
command> command. For a
secondary server or for a dynamic zone, it is automatically
generated (if this format is specified by the
<
command>masterfile-format</
command> option) when
<
command>named</
command> dumps the zone contents after
zone transfer or when applying prior updates.
If a zone file in a binary format needs manual modification,
it first must be converted to a textual form by the
<
command>named-compilezone</
command> command. All
necessary modification should go to the text file, which
should then be converted to the binary form by the
<
command>named-compilezone</
command> command again.
Although the <
constant>raw</
constant> format uses the
network byte order and avoids architecture-dependent
data alignment so that it is as much portable as
possible, it is primarily expected to be used inside
the same single system. In order to export a zone
file in the <
constant>raw</
constant> format or make a
portable backup of the file, it is recommended to
convert the file to the standard textual representation.
<
title><
acronym>BIND</
acronym> 9 Security Considerations</
title>
<
sect1 id="Access_Control_Lists">
<
title>Access Control Lists</
title>
Access Control Lists (ACLs), are address match lists that
you can set up and nickname for future use in <
command>allow-notify</
command>,
<
command>allow-query</
command>, <
command>allow-recursion</
command>,
<
command>blackhole</
command>, <
command>allow-transfer</
command>,
Using ACLs allows you to have finer control over who can access
your name server, without cluttering up your config files with huge
It is a <
emphasis>good idea</
emphasis> to use ACLs, and to
control access to your server. Limiting access to your server by
outside parties can help prevent spoofing and DoS attacks against
Here is an example of how to properly apply ACLs:
// Set up an ACL named "bogusnets" that will block RFC1918 space
// and some reserved space, which is commonly used in spoofing attacks.
0.0.0.0/8; 1.0.0.0/8; 2.0.0.0/8;
192.0.2.0/
24; 224.0.0.0/3;
// Set up an ACL called our-nets. Replace this with the real IP numbers.
allow-query { our-nets; };
allow-recursion { our-nets; };
blackhole { bogusnets; };
This allows recursive queries of the server from the outside
unless recursion has been previously disabled.
For more information on how to use ACLs to protect your server,
see the <
emphasis>AUSCERT</
emphasis> advisory at:
<
title><
command>chroot</
command> and <
command>setuid</
command></
title>
On UNIX servers, it is possible to run <
acronym>BIND</
acronym> in a <
emphasis>chrooted</
emphasis> environment
(<
command>chroot()</
command>) by specifying the "<
option>-t</
option>"
option. This can help improve system security by placing <
acronym>BIND</
acronym> in
a "sandbox", which will limit the damage done if a server is
Another useful feature in the UNIX version of <
acronym>BIND</
acronym> is the
ability to run the daemon as an unprivileged user ( <
option>-u</
option> <
replaceable>user</
replaceable> ).
We suggest running as an unprivileged user when using the <
command>chroot</
command> feature.
Here is an example command line to load <
acronym>BIND</
acronym> in a <
command>chroot()</
command> sandbox,
<
command>/
var/
named</
command>, and to run <
command>named</
command> <
command>setuid</
command> to
<
title>The <
command>chroot</
command> Environment</
title>
In order for a <
command>chroot()</
command> environment
work properly in a particular directory
(for example, <
filename>/
var/
named</
filename>),
you will need to set up an environment that includes everything
<
acronym>BIND</
acronym> needs to run.
From <
acronym>BIND</
acronym>'s point of view, <
filename>/
var/
named</
filename> is
the root of the filesystem. You will need to adjust the values of
like <
command>directory</
command> and <
command>pid-file</
command> to account
Unlike with earlier versions of BIND, you will typically
<
emphasis>not</
emphasis> need to compile <
command>named</
command>
statically nor install shared libraries under the new root.
However, depending on your operating system, you may need
<
title>Using the <
command>setuid</
command> Function</
title>
Prior to running the <
command>named</
command> daemon,
the <
command>touch</
command> utility (to change file
modification times) or the <
command>chown</
command>
set the user id
and/
or group id) on files
to which you want <
acronym>BIND</
acronym>
Note that if the <
command>named</
command> daemon is running as an
unprivileged user, it will not be able to bind to new restricted
ports if the server is reloaded.
<
sect1 id="dynamic_update_security">
<
title>Dynamic Update Security</
title>
update facility should be strictly limited. In earlier versions of
<
acronym>BIND</
acronym> the only way to do this was
address of the host requesting the update, by listing an IP address
network prefix in the <
command>allow-update</
command>
This method is insecure since the source address of the update UDP
is easily forged. Also note that if the IP addresses allowed by the
<
command>allow-update</
command> option include the
server which performs forwarding of dynamic updates, the master can
trivially attacked by sending the update to the slave, which will
forward it to the master with its own source IP address causing the
master to approve it without question.
For these reasons, we strongly recommend that updates be
cryptographically authenticated by means of transaction signatures
(TSIG). That is, the <
command>allow-update</
command>
list only TSIG key names, not IP addresses or network
prefixes. Alternatively, the new <
command>update-policy</
command>
Some sites choose to keep all dynamically updated DNS data
in a subdomain and delegate that subdomain to a separate zone. This
way, the top-level zone containing critical data such as the IP
of public web and mail servers need not allow dynamic update at
<
title>Troubleshooting</
title>
<
title>Common Problems</
title>
<
title>It's not working; how can I figure out what's wrong?</
title>
The best solution to solving installation and
configuration issues is to take preventative measures by setting
up logging files beforehand. The log files provide a
source of hints and information that can be used to figure out
what went wrong and how to fix the problem.
<
title>Incrementing and Changing the Serial Number</
title>
Zone serial numbers are just numbers-they aren't date
related. A lot of people set them to a number that represents a
date, usually of the form YYYYMMDDRR. A number of people have been
testing these numbers for Y2K compliance and have set the number
to the year 2000 to see if it will work. They then try to restore
the old serial number. This will cause problems because serial
numbers are used to indicate that a zone has been updated. If the
serial number on the slave server is lower than the serial number
on the master, the slave server will attempt to update its copy of
Setting the serial number to a lower number on the master
server than the slave server means that the slave will not perform
updates to its copy of the zone.
The solution to this is to add 2147483647 (2^31-1) to the
number, reload the zone and make sure all slaves have updated to
the new zone serial number, then reset the number to what you want
it to be, and reload the zone again.
<
title>Where Can I Get Help?</
title>
The Internet Systems Consortium
(<
acronym>ISC</
acronym>) offers a wide range
of support and service agreements for <
acronym>BIND</
acronym> and <
acronym>DHCP</
acronym> servers. Four
levels of premium support are available and each level includes
support for all <
acronym>ISC</
acronym> programs,
significant discounts on products
and training, and a recognized priority on bug fixes and
non-funded feature requests. In addition, <
acronym>ISC</
acronym> offers a standard
support agreement package which includes services ranging from bug
fix announcements to remote support. It also includes training in
<
acronym>BIND</
acronym> and <
acronym>DHCP</
acronym>.
To discuss arrangements for support, contact
<
ulink url="mailto:info@isc.org">info@isc.org</
ulink> or visit the
<
acronym>ISC</
acronym> web page at
<
title>Appendices</
title>
<
title>Acknowledgments</
title>
<
sect2 id="historical_dns_information">
<
title>A Brief History of the <
acronym>DNS</
acronym> and <
acronym>BIND</
acronym></
title>
Although the "official" beginning of the Domain Name
System occurred in 1984 with the publication of RFC 920, the
core of the new system was described in 1983 in RFCs 882 and
883. From 1984 to 1987, the ARPAnet (the precursor to today's
Internet) became a testbed of experimentation for developing the
operational network environment. New RFCs were written and
published in 1987 that modified the original documents to
incorporate improvements based on the working model. RFC 1034,
"Domain Names-Concepts and Facilities", and RFC 1035, "Domain
Names-Implementation and Specification" were published and
became the standards upon which all <
acronym>DNS</
acronym> implementations are
The first working domain name server, called "Jeeves", was
written in 1983-84 by Paul Mockapetris for operation on DEC
machines located at the University of Southern California's
Sciences Institute (USC-ISI) and SRI International's Network
Center (SRI-NIC). A <
acronym>DNS</
acronym> server for
Unix machines, the Berkeley Internet
Name Domain (<
acronym>BIND</
acronym>) package, was
written soon after by a group of
graduate students at the University of California at Berkeley
a grant from the US Defense Advanced Research Projects
(DARPA). Versions of <
acronym>BIND</
acronym> through
4.8.3 were maintained by the Computer
Systems Research Group (CSRG) at UC Berkeley. Douglas Terry, Mark
Painter, David Riggle and Songnian Zhou made up the initial <
acronym>BIND</
acronym>
project team. After that, additional work on the software package
was done by Ralph Campbell. Kevin Dunlap, a Digital Equipment
employee on loan to the CSRG, worked on <
acronym>BIND</
acronym> for 2 years, from 1985
to 1987. Many other people also contributed to <
acronym>BIND</
acronym> development
during that time: Doug Kingston, Craig Partridge, Smoot
Mike Muuss, Jim Bloom and Mike Schwartz. <
acronym>BIND</
acronym> maintenance was subsequently
handled by Mike Karels and O. Kure.
<
acronym>BIND</
acronym> versions 4.9 and 4.9.1 were
released by Digital Equipment
Corporation (now Compaq Computer Corporation). Paul Vixie, then
a DEC employee, became <
acronym>BIND</
acronym>'s
primary caretaker. Paul was assisted
by Phil Almquist, Robert Elz, Alan Barrett, Paul Albitz, Bryan
Partan, Andy Cherenson, Tom Limoncelli, Berthold Paffrath, Fuat
Baran, Anant Kumar, Art Harkin, Win Treese, Don Lewis, Christophe
<
acronym>BIND</
acronym> Version 4.9.2 was sponsored by
Vixie became <
acronym>BIND</
acronym>'s principal
<
acronym>BIND</
acronym> versions from 4.9.3 onward
have been developed and maintained
by the Internet Systems Consortium and its predecessor,
the Internet Software Consortium, with support being provided
Paul Vixie released the first production-ready version of
<
acronym>BIND</
acronym> version 8 in May 1997.
<
acronym>BIND</
acronym> development work is made
possible today by the sponsorship
of several corporations, and by the tireless work efforts of
<
title>General <
acronym>DNS</
acronym> Reference Information</
title>
<
sect2 id="ipv6addresses">
<
title>IPv6 addresses (AAAA)</
title>
IPv6 addresses are 128-bit identifiers for interfaces and
sets of interfaces which were introduced in the <
acronym>DNS</
acronym> to facilitate
scalable Internet routing. There are three types of addresses: <
emphasis>Unicast</
emphasis>,
an identifier for a single interface;
<
emphasis>Anycast</
emphasis>,
an identifier for a set of interfaces; and <
emphasis>Multicast</
emphasis>,
an identifier for a set of interfaces. Here we describe the global
Unicast address scheme. For more information, see RFC 3587.
IPv6 unicast addresses consist of a
<
emphasis>global routing prefix</
emphasis>, a
<
emphasis>subnet identifier</
emphasis>, and an
<
emphasis>interface identifier</
emphasis>.
The global routing prefix is provided by the
upstream provider or ISP, and (roughly) corresponds to the
IPv4 <
emphasis>network</
emphasis> section
The subnet identifier is for local subnetting, much the
IPv4 /16 network into /24 subnets.
The interface identifier is the address of an individual
interface on a given network; in IPv6, addresses belong to
interfaces rather than to machines.
The subnetting capability of IPv6 is much more flexible than
that of IPv4: subnetting can be carried out on bit boundaries,
in much the same way as Classless InterDomain Routing
(CIDR), and the DNS PTR representation ("nibble" format)
makes setting up reverse zones easier.
The Interface Identifier must be unique on the local link,
and is usually generated automatically by the IPv6
implementation, although it is usually possible to
override the default setting if necessary. A typical IPv6
<
command>2001:db8:201:9:a00:20ff:fe81:2b32</
command>
IPv6 address specifications often contain long strings
of zeros, so the architects have included a shorthand for
them. The double colon (`::') indicates the longest possible
of zeros that can fit, and can be used only once in an address.
<
sect1 id="bibliography">
<
title>Bibliography (and Suggested Reading)</
title>
<
title>Request for Comments (RFCs)</
title>
Specification documents for the Internet protocol suite, including
the <
acronym>DNS</
acronym>, are published as part of
the Request for Comments (RFCs)
series of technical notes. The standards themselves are defined
by the Internet Engineering Task Force (IETF) and the Internet
Engineering Steering Group (IESG). RFCs can be obtained online via FTP at:
(where <
replaceable>xxxx</
replaceable> is
the number of the RFC). RFCs are also available via the Web at:
<!-- one of (BIBLIOENTRY BIBLIOMIXED) --> <
surname>Partridge</
surname>
<
firstname>C.</
firstname>
<
title>Mail Routing and the Domain System</
title>
<
pubdate>January 1986</
pubdate>
<
surname>Mockapetris</
surname>
<
firstname>
P.V.</
firstname>
<
title>Domain Names — Concepts and Facilities</
title>
<
pubdate>November 1987</
pubdate>
<
surname>Mockapetris</
surname>
<
firstname>P. V.</
firstname>
</
author> <
title>Domain Names — Implementation and
<
pubdate>November 1987</
pubdate>
<
bibliodiv id="proposed_standards" xreflabel="Proposed Standards">
<
title>Proposed Standards</
title>
<!-- one of (BIBLIOENTRY BIBLIOMIXED) --> <
firstname>R., R. Bush</
firstname>
<
title>Clarifications to the <
acronym>DNS</
acronym>
<
pubdate>July 1997</
pubdate>
<
surname>Andrews</
surname>
<
firstname>M.</
firstname>
<
title>Negative Caching of <
acronym>DNS</
acronym>
<
pubdate>March 1998</
pubdate>
<
firstname>M.</
firstname>
<
title>Incremental Zone Transfer in <
acronym>DNS</
acronym></
title>
<
pubdate>August 1996</
pubdate>
<
firstname>P.</
firstname>
<
title>A Mechanism for Prompt Notification of Zone Changes</
title>
<
pubdate>August 1996</
pubdate>
<
firstname>P.</
firstname>
<
firstname>S.</
firstname>
<
surname>Thomson</
surname>
<
firstname>Y.</
firstname>
<
surname>Rekhter</
surname>
<
firstname>J.</
firstname>
<
title>Dynamic Updates in the Domain Name System</
title>
<
pubdate>April 1997</
pubdate>
<
title>Extension Mechanisms for DNS (EDNS0)</
title>
<
firstname>P.</
firstname>
<
pubdate>August 1997</
pubdate>
<
firstname>M.</
firstname>
<
surname>Crawford</
surname>
<
title>Non-Terminal DNS Name Redirection</
title>
<
pubdate>August 1999</
pubdate>
<
firstname>P.</
firstname>
<
firstname>O.</
firstname>
<
surname>Gudmundsson</
surname>
<
firstname>D.</
firstname>
<
surname>Eastlake</
surname>
<
firstname>B.</
firstname>
<
surname>Wellington</
surname>
<
title>Secret Key Transaction Authentication for <
acronym>DNS</
acronym> (TSIG)</
title>
<
pubdate>May 2000</
pubdate>
<
firstname>D.</
firstname>
<
surname>Eastlake</
surname>
<
title>Secret Key Establishment for DNS (TKEY RR)</
title>
<
pubdate>September 2000</
pubdate>
<
firstname>D.</
firstname>
<
surname>Eastlake</
surname>
<
title>DNS Request and Transaction Signatures (SIG(0)s)</
title>
<
pubdate>September 2000</
pubdate>
<
firstname>B.</
firstname>
<
surname>Wellington</
surname>
<
title>Secure Domain Name System (DNS) Dynamic Update</
title>
<
pubdate>November 2000</
pubdate>
<
firstname>S.</
firstname>
<
firstname>P.</
firstname>
<
firstname>J.</
firstname>
<
surname>Gilroy</
surname>
<
firstname>L.</
firstname>
<
surname>Esibov</
surname>
<
firstname>J.</
firstname>
<
surname>Westhead</
surname>
<
firstname>R.</
firstname>
<
title>Generic Security Service Algorithm for Secret
Key Transaction Authentication for DNS
<
pubdate>October 2003</
pubdate>
<
title><
acronym>DNS</
acronym> Security Proposed Standards</
title>
<
firstname>D.</
firstname>
<
surname>Conrad</
surname>
<
title>Indicating Resolver Support of DNSSEC</
title>
<
pubdate>December 2001</
pubdate>
<
firstname>D.</
firstname>
<
surname>Atkins</
surname>
<
firstname>R.</
firstname>
<
surname>Austein</
surname>
<
title>Threat Analysis of the Domain Name System (DNS)</
title>
<
pubdate>August 2004</
pubdate>
<
firstname>R.</
firstname>
<
surname>Arends</
surname>
<
firstname>R.</
firstname>
<
surname>Austein</
surname>
<
firstname>M.</
firstname>
<
surname>Larson</
surname>
<
firstname>D.</
firstname>
<
surname>Massey</
surname>
<
firstname>S.</
firstname>
<
title>DNS Security Introduction and Requirements</
title>
<
pubdate>March 2005</
pubdate>
<
firstname>R.</
firstname>
<
surname>Arends</
surname>
<
firstname>R.</
firstname>
<
surname>Austein</
surname>
<
firstname>M.</
firstname>
<
surname>Larson</
surname>
<
firstname>D.</
firstname>
<
surname>Massey</
surname>
<
firstname>S.</
firstname>
<
title>Resource Records for the DNS Security Extensions</
title>
<
pubdate>March 2005</
pubdate>
<
firstname>R.</
firstname>
<
surname>Arends</
surname>
<
firstname>R.</
firstname>
<
surname>Austein</
surname>
<
firstname>M.</
firstname>
<
surname>Larson</
surname>
<
firstname>D.</
firstname>
<
surname>Massey</
surname>
<
firstname>S.</
firstname>
<
title>Protocol Modifications for the DNS
Security Extensions</
title>
<
pubdate>March 2005</
pubdate>
<
title>Other Important RFCs About <
acronym>DNS</
acronym>
<
surname>Gavron</
surname>
<
firstname>E.</
firstname>
<
title>A Security Problem and Proposed Correction With Widely
Deployed <
acronym>DNS</
acronym> Software.</
title>
<
pubdate>October 1993</
pubdate>
<
firstname>A.</
firstname>
<
firstname>J.</
firstname>
<
surname>Postel</
surname>
<
firstname>C.</
firstname>
<
surname>Neuman</
surname>
<
firstname>P.</
firstname>
<
surname>Danzig</
surname>
<
firstname>S.</
firstname>
<
surname>Miller</
surname>
<
title>Common <
acronym>DNS</
acronym> Implementation
Errors and Suggested Fixes</
title>
<
pubdate>October 1993</
pubdate>
<
firstname>R.</
firstname>
<
firstname>R.</
firstname>
<
title>Serial Number Arithmetic</
title>
<
pubdate>August 1996</
pubdate>
<
surname>Morishita</
surname>
<
firstname>Y.</
firstname>
<
firstname>T.</
firstname>
<
surname>Jinmei</
surname>
<
title>Common Misbehaviour Against <
acronym>DNS</
acronym>
Queries for IPv6 Addresses</
title>
<
pubdate>May 2005</
pubdate>
<
title>Resource Record Types</
title>
<
surname>Everhart</
surname>
<
firstname>
C.F.</
firstname>
<
firstname>L. A.</
firstname>
<
surname>Mamakos</
surname>
<
firstname>R.</
firstname>
<
surname>Ullmann</
surname>
<
firstname>P.</
firstname>
<
surname>Mockapetris</
surname>
<
title>New <
acronym>DNS</
acronym> RR Definitions</
title>
<
pubdate>October 1990</
pubdate>
<
surname>Manning</
surname>
<
firstname>B.</
firstname>
<
firstname>R.</
firstname>
<
surname>Colella</
surname>
<
title><
acronym>DNS</
acronym> NSAP Resource Records</
title>
<
pubdate>October 1994</
pubdate>
<
surname>Daniel</
surname>
<
firstname>R.</
firstname>
<
firstname>M.</
firstname>
<
surname>Mealling</
surname>
<
title>Resolution of Uniform Resource Identifiers using
the Domain Name System</
title>
<
pubdate>June 1997</
pubdate>
<
firstname>C.</
firstname>
<
firstname>P.</
firstname>
<
firstname>T.</
firstname>
<
firstname>Goodwin</
firstname>
<
firstname>I.</
firstname>
<
surname>Dickinson</
surname>
<
title>A Means for Expressing Location Information in the
<
pubdate>January 1996</
pubdate>
<
surname>Gulbrandsen</
surname>
<
firstname>A.</
firstname>
<
firstname>P.</
firstname>
<
title>A <
acronym>DNS</
acronym> RR for Specifying the
<
pubdate>October 1996</
pubdate>
<
surname>Allocchio</
surname>
<
firstname>A.</
firstname>
<
title>Using the Internet <
acronym>DNS</
acronym> to
Conformant Global Address Mapping</
title>
<
pubdate>January 1998</
pubdate>
<
surname>Atkinson</
surname>
<
firstname>R.</
firstname>
<
title>Key Exchange Delegation Record for the <
acronym>DNS</
acronym></
title>
<
pubdate>October 1997</
pubdate>
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
title>DSA KEYs and SIGs in the Domain Name System (DNS)</
title>
<
pubdate>March 1999</
pubdate>
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
title>
RSA/
MD5 KEYs and SIGs in the Domain Name System (DNS)</
title>
<
pubdate>March 1999</
pubdate>
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
surname>Gudmundsson</
surname>
<
firstname>O.</
firstname>
<
title>Storing Certificates in the Domain Name System (DNS)</
title>
<
pubdate>March 1999</
pubdate>
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
title>Storage of Diffie-Hellman Keys in the Domain Name System (DNS)</
title>
<
pubdate>March 1999</
pubdate>
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
title>Detached Domain Name System (DNS) Information</
title>
<
pubdate>March 1999</
pubdate>
<
surname>Gulbrandsen</
surname>
<
firstname>A.</
firstname>
<
firstname>P.</
firstname>
<
surname>Esibov</
surname>
<
firstname>L.</
firstname>
<
title>A DNS RR for specifying the location of services (DNS SRV)</
title>
<
pubdate>February 2000</
pubdate>
<
surname>Mealling</
surname>
<
firstname>M.</
firstname>
<
surname>Daniel</
surname>
<
firstname>R.</
firstname>
<
title>The Naming Authority Pointer (NAPTR) DNS Resource Record</
title>
<
pubdate>September 2000</
pubdate>
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
title>
RSA/
SHA-1 SIGs and RSA KEYs in the Domain Name System (DNS)</
title>
<
pubdate>May 2001</
pubdate>
<
firstname>P.</
firstname>
<
title>A DNS RR Type for Lists of Address Prefixes (APL RR)</
title>
<
pubdate>June 2001</
pubdate>
<
surname>Thomson</
surname>
<
firstname>S.</
firstname>
<
firstname>C.</
firstname>
<
surname>Huitema</
surname>
<
firstname>V.</
firstname>
<
surname>Ksinant</
surname>
<
firstname>M.</
firstname>
<
surname>Souissi</
surname>
<
title><
acronym>DNS</
acronym> Extensions to support IP
<
pubdate>October 2003</
pubdate>
<
surname>Gustafsson</
surname>
<
firstname>A.</
firstname>
<
title>Handling of Unknown DNS Resource Record (RR) Types</
title>
<
pubdate>September 2003</
pubdate>
<
title><
acronym>DNS</
acronym> and the Internet</
title>
<
surname>Mockapetris</
surname>
<
firstname>P. V.</
firstname>
<
title><
acronym>DNS</
acronym> Encoding of Network Names
<
pubdate>April 1989</
pubdate>
<
surname>Braden</
surname>
<
title>Requirements for Internet Hosts - Application and
<
pubdate>October 1989</
pubdate>
<
surname>Postel</
surname>
<
firstname>J.</
firstname>
<
title>Domain Name System Structure and Delegation</
title>
<
pubdate>March 1994</
pubdate>
<
surname>Eidnes</
surname>
<
firstname>H.</
firstname>
<
firstname>G.</
firstname>
<
surname>de Groot</
surname>
<
firstname>P.</
firstname>
<
pubdate>March 1998</
pubdate>
<
surname>Internet Architecture Board</
surname>
<
title>IAB Technical Comment on the Unique DNS Root</
title>
<
pubdate>May 2000</
pubdate>
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
surname>Brunner-Williams</
surname>
<
firstname>E.</
firstname>
<
surname>Manning</
surname>
<
firstname>B.</
firstname>
<
title>Domain Name System (DNS) IANA Considerations</
title>
<
pubdate>September 2000</
pubdate>
<
title><
acronym>DNS</
acronym> Operations</
title>
<
surname>Lottor</
surname>
<
firstname>M.</
firstname>
<
title>Domain administrators operations guide.</
title>
<
pubdate>November 1987</
pubdate>
<
surname>Beertema</
surname>
<
firstname>P.</
firstname>
<
title>Common <
acronym>DNS</
acronym> Data File
Configuration Errors</
title>
<
pubdate>October 1993</
pubdate>
<
firstname>D.</
firstname>
<
title>Common <
acronym>DNS</
acronym> Operational and
Configuration Errors</
title>
<
pubdate>February 1996</
pubdate>
<
surname>Manning</
surname>
<
firstname>B.</
firstname>
<
firstname>P.</
firstname>
<
title>Operational Criteria for Root Name Servers.</
title>
<
pubdate>October 1996</
pubdate>
<
surname>Hamilton</
surname>
<
firstname>M.</
firstname>
<
firstname>R.</
firstname>
<
surname>Wright</
surname>
<
title>Use of <
acronym>DNS</
acronym> Aliases for
Network Services.</
title>
<
pubdate>October 1997</
pubdate>
<
title>Internationalized Domain Names</
title>
<
surname>Daigle</
surname>
<
firstname>R.</
firstname>
<
title>A Tangled Web: Issues of I18N, Domain Names,
and the Other Internet protocols</
title>
<
pubdate>May 2000</
pubdate>
<
surname>Faltstrom</
surname>
<
firstname>P.</
firstname>
<
surname>Hoffman</
surname>
<
firstname>P.</
firstname>
<
surname>Costello</
surname>
<
firstname>A.</
firstname>
<
title>Internationalizing Domain Names in Applications (IDNA)</
title>
<
pubdate>March 2003</
pubdate>
<
surname>Hoffman</
surname>
<
firstname>P.</
firstname>
<
surname>Blanchet</
surname>
<
firstname>M.</
firstname>
<
title>Nameprep: A Stringprep Profile for Internationalized Domain Names</
title>
<
pubdate>March 2003</
pubdate>
<
surname>Costello</
surname>
<
firstname>A.</
firstname>
<
title>Punycode: A Bootstring encoding of Unicode
for Internationalized Domain Names in
Applications (IDNA)</
title>
<
pubdate>March 2003</
pubdate>
<
title>Other <
acronym>DNS</
acronym>-related RFCs</
title>
Note: the following list of RFCs, although
<
acronym>DNS</
acronym>-related, are not
concerned with implementing software.
<
surname>Rosenbaum</
surname>
<
firstname>R.</
firstname>
<
title>Using the Domain Name System To Store Arbitrary String
<
pubdate>May 1993</
pubdate>
<
firstname>A.</
firstname>
<
title>Tools for <
acronym>DNS</
acronym> Debugging</
title>
<
pubdate>November 1994</
pubdate>
<
surname>Brisco</
surname>
<
firstname>T.</
firstname>
<
title><
acronym>DNS</
acronym> Support for Load
<
pubdate>April 1995</
pubdate>
<
surname>Vaughan</
surname>
<
firstname>O.</
firstname>
<
title>A Legal Basis for Domain Name Allocation</
title>
<
pubdate>November 1997</
pubdate>
<
surname>Klensin</
surname>
<
firstname>J.</
firstname>
<
firstname>T.</
firstname>
<
firstname>G.</
firstname>
<
surname>Oglesby</
surname>
<
title>Domain Names and Company Name Retrieval</
title>
<
pubdate>May 1998</
pubdate>
<
surname>Vaughan</
surname>
<
firstname>O.</
firstname>
<
title>A Convention For Using Legal Names as Domain Names</
title>
<
pubdate>May 1998</
pubdate>
<
surname>Klensin</
surname>
<
firstname>J.</
firstname>
<
title>Reflections on the DNS, RFC 1591, and Categories of Domains</
title>
<
pubdate>February 2001</
pubdate>
<
surname>Hardie</
surname>
<
firstname>T.</
firstname>
<
title>Distributing Authoritative Name Servers via
Shared Unicast Addresses</
title>
<
pubdate>April 2002</
pubdate>
<
surname>Durand</
surname>
<
firstname>A.</
firstname>
<
firstname>J.</
firstname>
<
title>DNS IPv6 Transport Operational Guidelines</
title>
<
pubdate>September 2004</
pubdate>
<
surname>Vaughan</
surname>
<
firstname>O.</
firstname>
<
title>A Convention For Using Legal Names as Domain Names</
title>
<
pubdate>May 1998</
pubdate>
<
title>Obsolete and Unimplemented Experimental RFC</
title>
<
surname>Farrell</
surname>
<
firstname>C.</
firstname>
<
firstname>M.</
firstname>
<
surname>Schulze</
surname>
<
firstname>S.</
firstname>
<
surname>Pleitner</
surname>
<
firstname>D.</
firstname>
<
surname>Baldoni</
surname>
<
title><
acronym>DNS</
acronym> Encoding of Geographical
<
pubdate>November 1994</
pubdate>
<
surname>Crawford</
surname>
<
firstname>M.</
firstname>
<
title>Binary Labels in the Domain Name System</
title>
<
pubdate>August 1999</
pubdate>
<
surname>Crawford</
surname>
<
firstname>M.</
firstname>
<
surname>Huitema</
surname>
<
firstname>C.</
firstname>
<
title>DNS Extensions to Support IPv6 Address Aggregation
<
pubdate>July 2000</
pubdate>
<
title>Obsoleted DNS Security RFC</
title>
Most of these have been consolidated into RFC4033,
RFC4034 and RFC4035 which collectively describe DNSSECbis.
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
firstname>C.</
firstname>
<
surname>Kaufman</
surname>
<
title>Domain Name System Security Extensions</
title>
<
pubdate>January 1997</
pubdate>
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
title>Secure Domain Name System Dynamic Update</
title>
<
pubdate>April 1997</
pubdate>
<
surname>Eastlake</
surname>
<
firstname>D.</
firstname>
<
title>Domain Name System Security Extensions</
title>
<
pubdate>March 1999</
pubdate>
<
surname>Wellington</
surname>
<
firstname>B.</
firstname>
<
title>Domain Name System Security (DNSSEC)
Signing Authority</
title>
<
pubdate>November 2000</
pubdate>
<
firstname>E.</
firstname>
<
title>DNS Security Extension Clarification on Zone Status</
title>
<
pubdate>March 2001</
pubdate>
<
surname>Massey</
surname>
<
firstname>D.</
firstname>
<
firstname>S.</
firstname>
<
title>Limiting the Scope of the KEY Resource Record (RR)</
title>
<
pubdate>December 2002</
pubdate>
<
surname>Wellington</
surname>
<
firstname>B.</
firstname>
<
surname>Gudmundsson</
surname>
<
firstname>O.</
firstname>
<
title>Redefinition of DNS Authenticated Data (AD) bit</
title>
<
pubdate>November 2003</
pubdate>
<
surname>Gudmundsson</
surname>
<
firstname>O.</
firstname>
<
title>Delegation Signer (DS) Resource Record (RR)</
title>
<
pubdate>December 2003</
pubdate>
<
surname>Weiler</
surname>
<
firstname>S.</
firstname>
<
title>Legacy Resolver Compatibility for Delegation Signer (DS)</
title>
<
pubdate>May 2004</
pubdate>
<
surname>Kolkman</
surname>
<
firstname>O.</
firstname>
<
surname>Schlyter</
surname>
<
firstname>J.</
firstname>
<
firstname>E.</
firstname>
<
title>Domain Name System KEY (DNSKEY) Resource Record
(RR) Secure Entry Point (SEP) Flag</
title>
<
pubdate>April 2004</
pubdate>
<
surname>Schlyter</
surname>
<
firstname>J.</
firstname>
<
title>DNS Security (DNSSEC) NextSECure (NSEC) RDATA Format</
title>
<
pubdate>August 2004</
pubdate>
<
sect2 id="internet_drafts">
<
title>Internet Drafts</
title>
Internet Drafts (IDs) are rough-draft working documents of
the Internet Engineering Task Force. They are, in essence, RFCs
in the preliminary stages of development. Implementors are
to regard IDs as archival, and they should not be quoted or cited
in any formal documents unless accompanied by the disclaimer that
they are "works in progress." IDs have a lifespan of six months
after which they are deleted unless updated by their authors.
<
title>Other Documents About <
acronym>BIND</
acronym></
title>
<
surname>Albitz</
surname>
<
firstname>Paul</
firstname>
<
firstname>Cricket</
firstname>
<
title><
acronym>DNS</
acronym> and <
acronym>BIND</
acronym></
title>
<
holder>Sebastopol, CA: O'Reilly and Associates</
holder>
<
title>Manual pages</
title>
<!-- nsupdate gives db2latex indigestion, markup problems? -->