No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / doc / arm / Bv9ARM-book.xml
blob5a880d17493ef08ff7812b3c88a73aca430032a8
1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2               "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
3                [<!ENTITY mdash "&#8212;">]>
4 <!--
5  - Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
6  - Copyright (C) 2000-2003  Internet Software Consortium.
7  -
8  - Permission to use, copy, modify, and/or distribute this software for any
9  - purpose with or without fee is hereby granted, provided that the above
10  - copyright notice and this permission notice appear in all copies.
11  -
12  - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
13  - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14  - AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15  - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16  - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17  - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18  - PERFORMANCE OF THIS SOFTWARE.
19 -->
21 <!-- File: Id: Bv9ARM-book.xml,v 1.450 2009/12/04 21:59:23 marka Exp -->
22 <book xmlns:xi="http://www.w3.org/2001/XInclude">
23   <title>BIND 9 Administrator Reference Manual</title>
25   <bookinfo>
26     <copyright>
27       <year>2004</year>
28       <year>2005</year>
29       <year>2006</year>
30       <year>2007</year>
31       <year>2008</year>
32       <year>2009</year>
33       <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
34     </copyright>
35     <copyright>
36       <year>2000</year>
37       <year>2001</year>
38       <year>2002</year>
39       <year>2003</year>
40       <holder>Internet Software Consortium.</holder>
41     </copyright>
42   </bookinfo>
44   <chapter id="Bv9ARM.ch01">
45     <title>Introduction</title>
46     <para>
47       The Internet Domain Name System (<acronym>DNS</acronym>)
48       consists of the syntax
49       to specify the names of entities in the Internet in a hierarchical
50       manner, the rules used for delegating authority over names, and the
51       system implementation that actually maps names to Internet
52       addresses.  <acronym>DNS</acronym> data is maintained in a
53       group of distributed
54       hierarchical databases.
55     </para>
57     <sect1>
58       <title>Scope of Document</title>
60       <para>
61         The Berkeley Internet Name Domain
62         (<acronym>BIND</acronym>) implements a
63         domain name server for a number of operating systems. This
64         document provides basic information about the installation and
65         care of the Internet Systems Consortium (<acronym>ISC</acronym>)
66         <acronym>BIND</acronym> version 9 software package for
67         system administrators.
68       </para>
70       <para>
71         This version of the manual corresponds to BIND version 9.7.
72       </para>
74     </sect1>
75     <sect1>
76       <title>Organization of This Document</title>
77       <para>
78         In this document, <emphasis>Chapter 1</emphasis> introduces
79         the basic <acronym>DNS</acronym> and <acronym>BIND</acronym> concepts. <emphasis>Chapter 2</emphasis>
80         describes resource requirements for running <acronym>BIND</acronym> in various
81         environments. Information in <emphasis>Chapter 3</emphasis> is
82         <emphasis>task-oriented</emphasis> in its presentation and is
83         organized functionally, to aid in the process of installing the
84         <acronym>BIND</acronym> 9 software. The task-oriented
85         section is followed by
86         <emphasis>Chapter 4</emphasis>, which contains more advanced
87         concepts that the system administrator may need for implementing
88         certain options. <emphasis>Chapter 5</emphasis>
89         describes the <acronym>BIND</acronym> 9 lightweight
90         resolver.  The contents of <emphasis>Chapter 6</emphasis> are
91         organized as in a reference manual to aid in the ongoing
92         maintenance of the software. <emphasis>Chapter 7</emphasis> addresses
93         security considerations, and
94         <emphasis>Chapter 8</emphasis> contains troubleshooting help. The
95         main body of the document is followed by several
96         <emphasis>appendices</emphasis> which contain useful reference
97         information, such as a <emphasis>bibliography</emphasis> and
98         historic information related to <acronym>BIND</acronym>
99         and the Domain Name
100         System.
101       </para>
102     </sect1>
103     <sect1>
104       <title>Conventions Used in This Document</title>
106       <para>
107         In this document, we use the following general typographic
108         conventions:
109       </para>
111       <informaltable>
112         <tgroup cols="2">
113           <colspec colname="1" colnum="1" colwidth="3.000in"/>
114           <colspec colname="2" colnum="2" colwidth="2.625in"/>
115           <tbody>
116             <row>
117               <entry colname="1">
118                 <para>
119                   <emphasis>To describe:</emphasis>
120                 </para>
121               </entry>
122               <entry colname="2">
123                 <para>
124                   <emphasis>We use the style:</emphasis>
125                 </para>
126               </entry>
127             </row>
128             <row>
129               <entry colname="1">
130                 <para>
131                   a pathname, filename, URL, hostname,
132                   mailing list name, or new term or concept
133                 </para>
134               </entry>
135               <entry colname="2">
136                 <para>
137                   <filename>Fixed width</filename>
138                 </para>
139               </entry>
140             </row>
141             <row>
142               <entry colname="1">
143                 <para>
144                   literal user
145                   input
146                 </para>
147               </entry>
148               <entry colname="2">
149                 <para>
150                   <userinput>Fixed Width Bold</userinput>
151                 </para>
152               </entry>
153             </row>
154             <row>
155               <entry colname="1">
156                 <para>
157                   program output
158                 </para>
159               </entry>
160               <entry colname="2">
161                 <para>
162                   <computeroutput>Fixed Width</computeroutput>
163                 </para>
164               </entry>
165             </row>
166           </tbody>
167         </tgroup>
168       </informaltable>
170       <para>
171         The following conventions are used in descriptions of the
172         <acronym>BIND</acronym> configuration file:<informaltable colsep="0" frame="all" rowsep="0">
173                   <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="2Level-table">
174                       <colspec colname="1" colnum="1" colsep="0" colwidth="3.000in"/>
175             <colspec colname="2" colnum="2" colsep="0" colwidth="2.625in"/>
176             <tbody>
177               <row rowsep="0">
178                 <entry colname="1" colsep="1" rowsep="1">
179                   <para>
180                     <emphasis>To describe:</emphasis>
181                   </para>
182                 </entry>
183                 <entry colname="2" rowsep="1">
184                   <para>
185                     <emphasis>We use the style:</emphasis>
186                   </para>
187                 </entry>
188               </row>
189               <row rowsep="0">
190                 <entry colname="1" colsep="1" rowsep="1">
191                   <para>
192                     keywords
193                   </para>
194                 </entry>
195                 <entry colname="2" rowsep="1">
196                   <para>
197                     <literal>Fixed Width</literal>
198                   </para>
199                 </entry>
200               </row>
201               <row rowsep="0">
202                 <entry colname="1" colsep="1" rowsep="1">
203                   <para>
204                     variables
205                   </para>
206                 </entry>
207                 <entry colname="2" rowsep="1">
208                   <para>
209                     <varname>Fixed Width</varname>
210                   </para>
211                 </entry>
212               </row>
213               <row rowsep="0">
214                 <entry colname="1" colsep="1">
215                   <para>
216                     Optional input
217                   </para>
218                 </entry>
219                 <entry colname="2">
220                   <para>
221                     <optional>Text is enclosed in square brackets</optional>
222                   </para>
223                 </entry>
224               </row>
225             </tbody>
226           </tgroup>
227         </informaltable>
228       </para>
229     </sect1>
230     <sect1>
231       <title>The Domain Name System (<acronym>DNS</acronym>)</title>
232       <para>
233         The purpose of this document is to explain the installation
234         and upkeep of the <acronym>BIND</acronym> (Berkeley Internet
235         Name Domain) software package, and we
236         begin by reviewing the fundamentals of the Domain Name System
237         (<acronym>DNS</acronym>) as they relate to <acronym>BIND</acronym>.
238       </para>
240       <sect2>
241         <title>DNS Fundamentals</title>
243         <para>
244           The Domain Name System (DNS) is a hierarchical, distributed
245           database.  It stores information for mapping Internet host names to
246           IP
247           addresses and vice versa, mail routing information, and other data
248           used by Internet applications.
249         </para>
251         <para>
252           Clients look up information in the DNS by calling a
253           <emphasis>resolver</emphasis> library, which sends queries to one or
254           more <emphasis>name servers</emphasis> and interprets the responses.
255           The <acronym>BIND</acronym> 9 software distribution
256           contains a
257           name server, <command>named</command>, and a resolver
258           library, <command>liblwres</command>.  The older
259           <command>libbind</command> resolver library is also available
260           from ISC as a separate download.
261         </para>
263         </sect2><sect2>
264         <title>Domains and Domain Names</title>
266         <para>
267           The data stored in the DNS is identified by <emphasis>domain names</emphasis> that are organized as a tree according to
268           organizational or administrative boundaries. Each node of the tree,
269           called a <emphasis>domain</emphasis>, is given a label. The domain
270           name of the
271           node is the concatenation of all the labels on the path from the
272           node to the <emphasis>root</emphasis> node.  This is represented
273           in written form as a string of labels listed from right to left and
274           separated by dots. A label need only be unique within its parent
275           domain.
276         </para>
278         <para>
279           For example, a domain name for a host at the
280           company <emphasis>Example, Inc.</emphasis> could be
281           <literal>ourhost.example.com</literal>,
282           where <literal>com</literal> is the
283           top level domain to which
284           <literal>ourhost.example.com</literal> belongs,
285           <literal>example</literal> is
286           a subdomain of <literal>com</literal>, and
287           <literal>ourhost</literal> is the
288           name of the host.
289         </para>
291         <para>
292           For administrative purposes, the name space is partitioned into
293           areas called <emphasis>zones</emphasis>, each starting at a node and
294           extending down to the leaf nodes or to nodes where other zones
295           start.
296           The data for each zone is stored in a <emphasis>name server</emphasis>, which answers queries about the zone using the
297           <emphasis>DNS protocol</emphasis>.
298         </para>
300         <para>
301           The data associated with each domain name is stored in the
302           form of <emphasis>resource records</emphasis> (<acronym>RR</acronym>s).
303           Some of the supported resource record types are described in
304           <xref linkend="types_of_resource_records_and_when_to_use_them"/>.
305         </para>
307         <para>
308           For more detailed information about the design of the DNS and
309           the DNS protocol, please refer to the standards documents listed in
310           <xref linkend="rfcs"/>.
311         </para>
312       </sect2>
314       <sect2>
315         <title>Zones</title>
316         <para>
317           To properly operate a name server, it is important to understand
318           the difference between a <emphasis>zone</emphasis>
319           and a <emphasis>domain</emphasis>.
320         </para>
322         <para>
323           As stated previously, a zone is a point of delegation in
324           the <acronym>DNS</acronym> tree. A zone consists of
325           those contiguous parts of the domain
326           tree for which a name server has complete information and over which
327           it has authority. It contains all domain names from a certain point
328           downward in the domain tree except those which are delegated to
329           other zones. A delegation point is marked by one or more
330           <emphasis>NS records</emphasis> in the
331           parent zone, which should be matched by equivalent NS records at
332           the root of the delegated zone.
333         </para>
335         <para>
336           For instance, consider the <literal>example.com</literal>
337           domain which includes names
338           such as <literal>host.aaa.example.com</literal> and
339           <literal>host.bbb.example.com</literal> even though
340           the <literal>example.com</literal> zone includes
341           only delegations for the <literal>aaa.example.com</literal> and
342           <literal>bbb.example.com</literal> zones.  A zone can
343           map
344           exactly to a single domain, but could also include only part of a
345           domain, the rest of which could be delegated to other
346           name servers. Every name in the <acronym>DNS</acronym>
347           tree is a
348           <emphasis>domain</emphasis>, even if it is
349           <emphasis>terminal</emphasis>, that is, has no
350           <emphasis>subdomains</emphasis>.  Every subdomain is a domain and
351           every domain except the root is also a subdomain. The terminology is
352           not intuitive and we suggest that you read RFCs 1033, 1034 and 1035
353           to
354           gain a complete understanding of this difficult and subtle
355           topic.
356         </para>
358         <para>
359           Though <acronym>BIND</acronym> is called a "domain name
360           server",
361           it deals primarily in terms of zones. The master and slave
362           declarations in the <filename>named.conf</filename> file
363           specify
364           zones, not domains. When you ask some other site if it is willing to
365           be a slave server for your <emphasis>domain</emphasis>, you are
366           actually asking for slave service for some collection of zones.
367         </para>
368       </sect2>
370       <sect2>
371         <title>Authoritative Name Servers</title>
373         <para>
374           Each zone is served by at least
375           one <emphasis>authoritative name server</emphasis>,
376           which contains the complete data for the zone.
377           To make the DNS tolerant of server and network failures,
378           most zones have two or more authoritative servers, on
379           different networks.
380         </para>
382         <para>
383           Responses from authoritative servers have the "authoritative
384           answer" (AA) bit set in the response packets.  This makes them
385           easy to identify when debugging DNS configurations using tools like
386           <command>dig</command> (<xref linkend="diagnostic_tools"/>).
387         </para>
389         <sect3>
390           <title>The Primary Master</title>
392           <para>
393             The authoritative server where the master copy of the zone
394             data is maintained is called the
395             <emphasis>primary master</emphasis> server, or simply the
396             <emphasis>primary</emphasis>.  Typically it loads the zone
397             contents from some local file edited by humans or perhaps
398             generated mechanically from some other local file which is
399             edited by humans.  This file is called the
400             <emphasis>zone file</emphasis> or
401             <emphasis>master file</emphasis>.
402           </para>
404           <para>
405             In some cases, however, the master file may not be edited
406             by humans at all, but may instead be the result of
407             <emphasis>dynamic update</emphasis> operations.
408           </para>
409         </sect3>
411         <sect3>
412           <title>Slave Servers</title>
413           <para>
414             The other authoritative servers, the <emphasis>slave</emphasis>
415             servers (also known as <emphasis>secondary</emphasis> servers)
416             load
417             the zone contents from another server using a replication process
418             known as a <emphasis>zone transfer</emphasis>.  Typically the data
419             are
420             transferred directly from the primary master, but it is also
421             possible
422             to transfer it from another slave.  In other words, a slave server
423             may itself act as a master to a subordinate slave server.
424           </para>
425         </sect3>
427         <sect3>
428           <title>Stealth Servers</title>
430           <para>
431             Usually all of the zone's authoritative servers are listed in
432             NS records in the parent zone.  These NS records constitute
433             a <emphasis>delegation</emphasis> of the zone from the parent.
434             The authoritative servers are also listed in the zone file itself,
435             at the <emphasis>top level</emphasis> or <emphasis>apex</emphasis>
436             of the zone.  You can list servers in the zone's top-level NS
437             records that are not in the parent's NS delegation, but you cannot
438             list servers in the parent's delegation that are not present at
439             the zone's top level.
440           </para>
442           <para>
443             A <emphasis>stealth server</emphasis> is a server that is
444             authoritative for a zone but is not listed in that zone's NS
445             records.  Stealth servers can be used for keeping a local copy of
446             a
447             zone to speed up access to the zone's records or to make sure that
448             the
449             zone is available even if all the "official" servers for the zone
450             are
451             inaccessible.
452           </para>
454           <para>
455             A configuration where the primary master server itself is a
456             stealth server is often referred to as a "hidden primary"
457             configuration.  One use for this configuration is when the primary
458             master
459             is behind a firewall and therefore unable to communicate directly
460             with the outside world.
461           </para>
463         </sect3>
465       </sect2>
466       <sect2>
468         <title>Caching Name Servers</title>
470         <!--
471           - Terminology here is inconsistent.  Probably ought to
472           - convert to using "recursive name server" everywhere
473           - with just a note about "caching" terminology.
474           -->
476         <para>
477           The resolver libraries provided by most operating systems are
478           <emphasis>stub resolvers</emphasis>, meaning that they are not
479           capable of
480           performing the full DNS resolution process by themselves by talking
481           directly to the authoritative servers.  Instead, they rely on a
482           local
483           name server to perform the resolution on their behalf.  Such a
484           server
485           is called a <emphasis>recursive</emphasis> name server; it performs
486           <emphasis>recursive lookups</emphasis> for local clients.
487         </para>
489         <para>
490           To improve performance, recursive servers cache the results of
491           the lookups they perform.  Since the processes of recursion and
492           caching are intimately connected, the terms
493           <emphasis>recursive server</emphasis> and
494           <emphasis>caching server</emphasis> are often used synonymously.
495         </para>
497         <para>
498           The length of time for which a record may be retained in
499           the cache of a caching name server is controlled by the
500           Time To Live (TTL) field associated with each resource record.
501         </para>
503         <sect3>
504           <title>Forwarding</title>
506           <para>
507             Even a caching name server does not necessarily perform
508             the complete recursive lookup itself.  Instead, it can
509             <emphasis>forward</emphasis> some or all of the queries
510             that it cannot satisfy from its cache to another caching name
511             server,
512             commonly referred to as a <emphasis>forwarder</emphasis>.
513           </para>
515           <para>
516             There may be one or more forwarders,
517             and they are queried in turn until the list is exhausted or an
518             answer
519             is found. Forwarders are typically used when you do not
520             wish all the servers at a given site to interact directly with the
521             rest of
522             the Internet servers. A typical scenario would involve a number
523             of internal <acronym>DNS</acronym> servers and an
524             Internet firewall. Servers unable
525             to pass packets through the firewall would forward to the server
526             that can do it, and that server would query the Internet <acronym>DNS</acronym> servers
527             on the internal server's behalf.
528           </para>
529         </sect3>
531       </sect2>
533       <sect2>
534         <title>Name Servers in Multiple Roles</title>
536         <para>
537           The <acronym>BIND</acronym> name server can
538           simultaneously act as
539           a master for some zones, a slave for other zones, and as a caching
540           (recursive) server for a set of local clients.
541         </para>
543         <para>
544           However, since the functions of authoritative name service
545           and caching/recursive name service are logically separate, it is
546           often advantageous to run them on separate server machines.
548           A server that only provides authoritative name service
549           (an <emphasis>authoritative-only</emphasis> server) can run with
550           recursion disabled, improving reliability and security.
552           A server that is not authoritative for any zones and only provides
553           recursive service to local
554           clients (a <emphasis>caching-only</emphasis> server)
555           does not need to be reachable from the Internet at large and can
556           be placed inside a firewall.
557         </para>
559       </sect2>
560     </sect1>
562   </chapter>
564   <chapter id="Bv9ARM.ch02">
565     <title><acronym>BIND</acronym> Resource Requirements</title>
567     <sect1>
568       <title>Hardware requirements</title>
570       <para>
571         <acronym>DNS</acronym> hardware requirements have
572         traditionally been quite modest.
573         For many installations, servers that have been pensioned off from
574         active duty have performed admirably as <acronym>DNS</acronym> servers.
575       </para>
576       <para>
577         The DNSSEC features of <acronym>BIND</acronym> 9
578         may prove to be quite
579         CPU intensive however, so organizations that make heavy use of these
580         features may wish to consider larger systems for these applications.
581         <acronym>BIND</acronym> 9 is fully multithreaded, allowing
582         full utilization of
583         multiprocessor systems for installations that need it.
584       </para>
585     </sect1>
586     <sect1>
587       <title>CPU Requirements</title>
588       <para>
589         CPU requirements for <acronym>BIND</acronym> 9 range from
590         i486-class machines
591         for serving of static zones without caching, to enterprise-class
592         machines if you intend to process many dynamic updates and DNSSEC
593         signed zones, serving many thousands of queries per second.
594       </para>
595     </sect1>
597     <sect1>
598       <title>Memory Requirements</title>
599       <para>
600         The memory of the server has to be large enough to fit the
601         cache and zones loaded off disk.  The <command>max-cache-size</command>
602         option can be used to limit the amount of memory used by the cache,
603         at the expense of reducing cache hit rates and causing more <acronym>DNS</acronym>
604         traffic.
605         Additionally, if additional section caching
606         (<xref linkend="acache"/>) is enabled,
607         the <command>max-acache-size</command> option can be used to
608         limit the amount
609         of memory used by the mechanism.
610         It is still good practice to have enough memory to load
611         all zone and cache data into memory &mdash; unfortunately, the best
612         way
613         to determine this for a given installation is to watch the name server
614         in operation. After a few weeks the server process should reach
615         a relatively stable size where entries are expiring from the cache as
616         fast as they are being inserted.
617       </para>
618       <!--
619         - Add something here about leaving overhead for attacks?
620         - How much overhead?  Percentage?
621         -->
622     </sect1>
624     <sect1>
625       <title>Name Server Intensive Environment Issues</title>
626       <para>
627         For name server intensive environments, there are two alternative
628         configurations that may be used. The first is where clients and
629         any second-level internal name servers query a main name server, which
630         has enough memory to build a large cache. This approach minimizes
631         the bandwidth used by external name lookups. The second alternative
632         is to set up second-level internal name servers to make queries
633         independently.
634         In this configuration, none of the individual machines needs to
635         have as much memory or CPU power as in the first alternative, but
636         this has the disadvantage of making many more external queries,
637         as none of the name servers share their cached data.
638       </para>
639     </sect1>
641     <sect1>
642       <title>Supported Operating Systems</title>
643       <para>
644         ISC <acronym>BIND</acronym> 9 compiles and runs on a large
645         number
646         of Unix-like operating systems and on 
647         Microsoft Windows Server 2003 and 2008, and Windows XP and Vista.
648         For an up-to-date
649         list of supported systems, see the README file in the top level
650         directory
651         of the BIND 9 source distribution.
652       </para>
653     </sect1>
654   </chapter>
656   <chapter id="Bv9ARM.ch03">
657     <title>Name Server Configuration</title>
658     <para>
659       In this chapter we provide some suggested configurations along
660       with guidelines for their use.  We suggest reasonable values for
661       certain option settings.
662     </para>
664     <sect1 id="sample_configuration">
665       <title>Sample Configurations</title>
666       <sect2>
667         <title>A Caching-only Name Server</title>
668         <para>
669           The following sample configuration is appropriate for a caching-only
670           name server for use by clients internal to a corporation.  All
671           queries
672           from outside clients are refused using the <command>allow-query</command>
673           option.  Alternatively, the same effect could be achieved using
674           suitable
675           firewall rules.
676         </para>
678 <programlisting>
679 // Two corporate subnets we wish to allow queries from.
680 acl corpnets { 192.168.4.0/24; 192.168.7.0/24; };
681 options {
682      // Working directory
683      directory "/etc/namedb";
685      allow-query { corpnets; };
687 // Provide a reverse mapping for the loopback
688 // address 127.0.0.1
689 zone "0.0.127.in-addr.arpa" {
690      type master;
691      file "localhost.rev";
692      notify no;
694 </programlisting>
696       </sect2>
698       <sect2>
699         <title>An Authoritative-only Name Server</title>
700         <para>
701           This sample configuration is for an authoritative-only server
702           that is the master server for "<filename>example.com</filename>"
703           and a slave for the subdomain "<filename>eng.example.com</filename>".
704         </para>
706 <programlisting>
707 options {
708      // Working directory
709      directory "/etc/namedb";
710      // Do not allow access to cache
711      allow-query-cache { none; };
712      // This is the default
713      allow-query { any; };
714      // Do not provide recursive service
715      recursion no;
718 // Provide a reverse mapping for the loopback
719 // address 127.0.0.1
720 zone "0.0.127.in-addr.arpa" {
721      type master;
722      file "localhost.rev";
723      notify no;
725 // We are the master server for example.com
726 zone "example.com" {
727      type master;
728      file "example.com.db";
729      // IP addresses of slave servers allowed to
730      // transfer example.com
731      allow-transfer {
732           192.168.4.14;
733           192.168.5.53;
734      };
736 // We are a slave server for eng.example.com
737 zone "eng.example.com" {
738      type slave;
739      file "eng.example.com.bk";
740      // IP address of eng.example.com master server
741      masters { 192.168.4.12; };
743 </programlisting>
745       </sect2>
746     </sect1>
748     <sect1>
749       <title>Load Balancing</title>
750       <!--
751         - Add explanation of why load balancing is fragile at best
752         - and completely pointless in the general case.
753         -->
755       <para>
756         A primitive form of load balancing can be achieved in
757         the <acronym>DNS</acronym> by using multiple records
758         (such as multiple A records) for one name.
759       </para>
761       <para>
762         For example, if you have three WWW servers with network addresses
763         of 10.0.0.1, 10.0.0.2 and 10.0.0.3, a set of records such as the
764         following means that clients will connect to each machine one third
765         of the time:
766       </para>
768       <informaltable colsep="0" rowsep="0">
769         <tgroup cols="5" colsep="0" rowsep="0" tgroupstyle="2Level-table">
770           <colspec colname="1" colnum="1" colsep="0" colwidth="0.875in"/>
771           <colspec colname="2" colnum="2" colsep="0" colwidth="0.500in"/>
772           <colspec colname="3" colnum="3" colsep="0" colwidth="0.750in"/>
773           <colspec colname="4" colnum="4" colsep="0" colwidth="0.750in"/>
774           <colspec colname="5" colnum="5" colsep="0" colwidth="2.028in"/>
775           <tbody>
776             <row rowsep="0">
777               <entry colname="1">
778                 <para>
779                   Name
780                 </para>
781               </entry>
782               <entry colname="2">
783                 <para>
784                   TTL
785                 </para>
786               </entry>
787               <entry colname="3">
788                 <para>
789                   CLASS
790                 </para>
791               </entry>
792               <entry colname="4">
793                 <para>
794                   TYPE
795                 </para>
796               </entry>
797               <entry colname="5">
798                 <para>
799                   Resource Record (RR) Data
800                 </para>
801               </entry>
802             </row>
803             <row rowsep="0">
804               <entry colname="1">
805                 <para>
806                   <literal>www</literal>
807                 </para>
808               </entry>
809               <entry colname="2">
810                 <para>
811                   <literal>600</literal>
812                 </para>
813               </entry>
814               <entry colname="3">
815                 <para>
816                   <literal>IN</literal>
817                 </para>
818               </entry>
819               <entry colname="4">
820                 <para>
821                   <literal>A</literal>
822                 </para>
823               </entry>
824               <entry colname="5">
825                 <para>
826                   <literal>10.0.0.1</literal>
827                 </para>
828               </entry>
829             </row>
830             <row rowsep="0">
831               <entry colname="1">
832                 <para/>
833               </entry>
834               <entry colname="2">
835                 <para>
836                   <literal>600</literal>
837                 </para>
838               </entry>
839               <entry colname="3">
840                 <para>
841                   <literal>IN</literal>
842                 </para>
843               </entry>
844               <entry colname="4">
845                 <para>
846                   <literal>A</literal>
847                 </para>
848               </entry>
849               <entry colname="5">
850                 <para>
851                   <literal>10.0.0.2</literal>
852                 </para>
853               </entry>
854             </row>
855             <row rowsep="0">
856               <entry colname="1">
857                 <para/>
858               </entry>
859               <entry colname="2">
860                 <para>
861                   <literal>600</literal>
862                 </para>
863               </entry>
864               <entry colname="3">
865                 <para>
866                   <literal>IN</literal>
867                 </para>
868               </entry>
869               <entry colname="4">
870                 <para>
871                   <literal>A</literal>
872                 </para>
873               </entry>
874               <entry colname="5">
875                 <para>
876                   <literal>10.0.0.3</literal>
877                 </para>
878               </entry>
879             </row>
880           </tbody>
881         </tgroup>
882       </informaltable>
883       <para>
884         When a resolver queries for these records, <acronym>BIND</acronym> will rotate
885         them and respond to the query with the records in a different
886         order.  In the example above, clients will randomly receive
887         records in the order 1, 2, 3; 2, 3, 1; and 3, 1, 2. Most clients
888         will use the first record returned and discard the rest.
889       </para>
890       <para>
891         For more detail on ordering responses, check the
892         <command>rrset-order</command> substatement in the
893         <command>options</command> statement, see
894         <xref endterm="rrset_ordering_title" linkend="rrset_ordering"/>.
895       </para>
897     </sect1>
899     <sect1>
900       <title>Name Server Operations</title>
902       <sect2>
903         <title>Tools for Use With the Name Server Daemon</title>
904         <para>
905           This section describes several indispensable diagnostic,
906           administrative and monitoring tools available to the system
907           administrator for controlling and debugging the name server
908           daemon.
909         </para>
910         <sect3 id="diagnostic_tools">
911           <title>Diagnostic Tools</title>
912           <para>
913             The <command>dig</command>, <command>host</command>, and
914             <command>nslookup</command> programs are all command
915             line tools
916             for manually querying name servers.  They differ in style and
917             output format.
918           </para>
920           <variablelist>
921             <varlistentry>
922               <term id="dig"><command>dig</command></term>
923               <listitem>
924                 <para>
925                   The domain information groper (<command>dig</command>)
926                   is the most versatile and complete of these lookup tools.
927                   It has two modes: simple interactive
928                   mode for a single query, and batch mode which executes a
929                   query for
930                   each in a list of several query lines. All query options are
931                   accessible
932                   from the command line.
933                 </para>
934                 <cmdsynopsis label="Usage">
935                   <command>dig</command>
936                   <arg>@<replaceable>server</replaceable></arg>
937                   <arg choice="plain"><replaceable>domain</replaceable></arg>
938                   <arg><replaceable>query-type</replaceable></arg>
939                   <arg><replaceable>query-class</replaceable></arg>
940                   <arg>+<replaceable>query-option</replaceable></arg>
941                   <arg>-<replaceable>dig-option</replaceable></arg>
942                   <arg>%<replaceable>comment</replaceable></arg>
943                 </cmdsynopsis>
944                 <para>
945                   The usual simple use of <command>dig</command> will take the form
946                 </para>
947                 <simpara>
948                   <command>dig @server domain query-type query-class</command>
949                 </simpara>
950                 <para>
951                   For more information and a list of available commands and
952                   options, see the <command>dig</command> man
953                   page.
954                 </para>
955               </listitem>
956             </varlistentry>
958             <varlistentry>
959               <term><command>host</command></term>
960               <listitem>
961                 <para>
962                   The <command>host</command> utility emphasizes
963                   simplicity
964                   and ease of use.  By default, it converts
965                   between host names and Internet addresses, but its
966                   functionality
967                   can be extended with the use of options.
968                 </para>
969                 <cmdsynopsis label="Usage">
970                   <command>host</command>
971                   <arg>-aCdlnrsTwv</arg>
972                   <arg>-c <replaceable>class</replaceable></arg>
973                   <arg>-N <replaceable>ndots</replaceable></arg>
974                   <arg>-t <replaceable>type</replaceable></arg>
975                   <arg>-W <replaceable>timeout</replaceable></arg>
976                   <arg>-R <replaceable>retries</replaceable></arg>
977                   <arg>-m <replaceable>flag</replaceable></arg>
978                   <arg>-4</arg>
979                   <arg>-6</arg>
980                   <arg choice="plain"><replaceable>hostname</replaceable></arg>
981                   <arg><replaceable>server</replaceable></arg>
982                 </cmdsynopsis>
983                 <para>
984                   For more information and a list of available commands and
985                   options, see the <command>host</command> man
986                   page.
987                 </para>
988               </listitem>
989             </varlistentry>
991             <varlistentry>
992               <term><command>nslookup</command></term>
993               <listitem>
994                 <para><command>nslookup</command>
995                   has two modes: interactive and
996                   non-interactive. Interactive mode allows the user to
997                   query name servers for information about various
998                   hosts and domains or to print a list of hosts in a
999                   domain. Non-interactive mode is used to print just
1000                   the name and requested information for a host or
1001                   domain.
1002                 </para>
1003                 <cmdsynopsis label="Usage">
1004                   <command>nslookup</command>
1005                   <arg rep="repeat">-option</arg>
1006                   <group>
1007                     <arg><replaceable>host-to-find</replaceable></arg>
1008                     <arg>- <arg>server</arg></arg>
1009                   </group>
1010                 </cmdsynopsis>
1011                 <para>
1012                   Interactive mode is entered when no arguments are given (the
1013                   default name server will be used) or when the first argument
1014                   is a
1015                   hyphen (`-') and the second argument is the host name or
1016                   Internet address
1017                   of a name server.
1018                 </para>
1019                 <para>
1020                   Non-interactive mode is used when the name or Internet
1021                   address
1022                   of the host to be looked up is given as the first argument.
1023                   The
1024                   optional second argument specifies the host name or address
1025                   of a name server.
1026                 </para>
1027                 <para>
1028                   Due to its arcane user interface and frequently inconsistent
1029                   behavior, we do not recommend the use of <command>nslookup</command>.
1030                   Use <command>dig</command> instead.
1031                 </para>
1032               </listitem>
1034             </varlistentry>
1035           </variablelist>
1036         </sect3>
1038         <sect3 id="admin_tools">
1039           <title>Administrative Tools</title>
1040           <para>
1041             Administrative tools play an integral part in the management
1042             of a server.
1043           </para>
1044           <variablelist>
1045             <varlistentry id="named-checkconf" xreflabel="Named Configuration Checking application">
1047               <term><command>named-checkconf</command></term>
1048               <listitem>
1049                 <para>
1050                   The <command>named-checkconf</command> program
1051                   checks the syntax of a <filename>named.conf</filename> file.
1052                 </para>
1053                 <cmdsynopsis label="Usage">
1054                   <command>named-checkconf</command>
1055                   <arg>-jvz</arg>
1056                   <arg>-t <replaceable>directory</replaceable></arg>
1057                   <arg><replaceable>filename</replaceable></arg>
1058                 </cmdsynopsis>
1059               </listitem>
1060             </varlistentry>
1061             <varlistentry id="named-checkzone" xreflabel="Zone Checking application">
1063               <term><command>named-checkzone</command></term>
1064               <listitem>
1065                 <para>
1066                   The <command>named-checkzone</command> program
1067                   checks a master file for
1068                   syntax and consistency.
1069                 </para>
1070                 <cmdsynopsis label="Usage">
1071                   <command>named-checkzone</command>
1072                   <arg>-djqvD</arg>
1073                   <arg>-c <replaceable>class</replaceable></arg>
1074                   <arg>-o <replaceable>output</replaceable></arg>
1075                   <arg>-t <replaceable>directory</replaceable></arg>
1076                   <arg>-w <replaceable>directory</replaceable></arg>
1077                   <arg>-k <replaceable>(ignore|warn|fail)</replaceable></arg>
1078                   <arg>-n <replaceable>(ignore|warn|fail)</replaceable></arg>
1079                   <arg>-W <replaceable>(ignore|warn)</replaceable></arg>
1080                   <arg choice="plain"><replaceable>zone</replaceable></arg>
1081                   <arg><replaceable>filename</replaceable></arg>
1082                 </cmdsynopsis>
1083               </listitem>
1084             </varlistentry>
1085             <varlistentry id="named-compilezone" xreflabel="Zone Compilation application">
1086               <term><command>named-compilezone</command></term>
1087               <listitem>
1088                 <para>
1089                   Similar to <command>named-checkzone,</command> but
1090                   it always dumps the zone content to a specified file
1091                   (typically in a different format).
1092                 </para>
1093               </listitem>
1094             </varlistentry>
1095             <varlistentry id="rndc" xreflabel="Remote Name Daemon Control application">
1097               <term><command>rndc</command></term>
1098               <listitem>
1099                 <para>
1100                   The remote name daemon control
1101                   (<command>rndc</command>) program allows the
1102                   system
1103                   administrator to control the operation of a name server.
1104                   Since <acronym>BIND</acronym> 9.2, <command>rndc</command>
1105                   supports all the commands of the BIND 8 <command>ndc</command>
1106                   utility except <command>ndc start</command> and
1107                   <command>ndc restart</command>, which were also
1108                   not supported in <command>ndc</command>'s
1109                   channel mode.
1110                   If you run <command>rndc</command> without any
1111                   options
1112                   it will display a usage message as follows:
1113                 </para>
1114                 <cmdsynopsis label="Usage">
1115                   <command>rndc</command>
1116                   <arg>-c <replaceable>config</replaceable></arg>
1117                   <arg>-s <replaceable>server</replaceable></arg>
1118                   <arg>-p <replaceable>port</replaceable></arg>
1119                   <arg>-y <replaceable>key</replaceable></arg>
1120                   <arg choice="plain"><replaceable>command</replaceable></arg>
1121                   <arg rep="repeat"><replaceable>command</replaceable></arg>
1122                 </cmdsynopsis>
1123                 <para>The <command>command</command>
1124                   is one of the following:
1125                 </para>
1127                 <variablelist>
1129                   <varlistentry>
1130                     <term><userinput>reload</userinput></term>
1131                     <listitem>
1132                       <para>
1133                         Reload configuration file and zones.
1134                       </para>
1135                     </listitem>
1136                   </varlistentry>
1138                   <varlistentry>
1139                     <term><userinput>reload <replaceable>zone</replaceable>
1140                         <optional><replaceable>class</replaceable>
1141            <optional><replaceable>view</replaceable></optional></optional></userinput></term>
1142                     <listitem>
1143                       <para>
1144                         Reload the given zone.
1145                       </para>
1146                     </listitem>
1147                   </varlistentry>
1149                   <varlistentry>
1150                     <term><userinput>refresh <replaceable>zone</replaceable>
1151                         <optional><replaceable>class</replaceable>
1152            <optional><replaceable>view</replaceable></optional></optional></userinput></term>
1153                     <listitem>
1154                       <para>
1155                         Schedule zone maintenance for the given zone.
1156                       </para>
1157                     </listitem>
1158                   </varlistentry>
1160                   <varlistentry>
1161                     <term><userinput>retransfer <replaceable>zone</replaceable>
1163                         <optional><replaceable>class</replaceable>
1164            <optional><replaceable>view</replaceable></optional></optional></userinput></term>
1165                     <listitem>
1166                       <para>
1167                         Retransfer the given zone from the master.
1168                       </para>
1169                     </listitem>
1170                   </varlistentry>
1172                   <varlistentry>
1173                     <term><userinput>sign <replaceable>zone</replaceable>
1174                         <optional><replaceable>class</replaceable>
1175            <optional><replaceable>view</replaceable></optional></optional></userinput></term>
1176                     <listitem>
1177                       <para>
1178                         Fetch all DNSSEC keys for the given zone
1179                         from the key directory (see
1180                         <command>key-directory</command> in
1181                         <xref linkend="options"/>), and merge them
1182                         into the zone's DNSKEY RRset.  If the DNSKEY RRset
1183                         is changed as a result of this, then the zone is
1184                         automatically re-signed with the new key set.
1185                       </para>
1186                       <para>
1187                         This command requires that the
1188                         <command>auto-dnssec</command> zone option to be set
1189                         to <literal>allow</literal>,
1190                         <literal>maintain</literal>, or
1191                         <literal>create</literal>,  and also requires
1192                         the zone to be configured to allow dynamic DNS.
1193                         See <xref linkend="dynamic_update_policies"/> for
1194                         more details.
1195                       </para>
1196                     </listitem>
1197                   </varlistentry>
1199                   <varlistentry>
1200                     <term><userinput>freeze
1201                         <optional><replaceable>zone</replaceable>
1202        <optional><replaceable>class</replaceable>
1203            <optional><replaceable>view</replaceable></optional></optional></optional></userinput></term>
1204                     <listitem>
1205                       <para>
1206                         Suspend updates to a dynamic zone.  If no zone is
1207                         specified,
1208                         then all zones are suspended.  This allows manual
1209                         edits to be made to a zone normally updated by dynamic
1210                         update.  It
1211                         also causes changes in the journal file to be synced
1212                         into the master
1213                         and the journal file to be removed.  All dynamic
1214                         update attempts will
1215                         be refused while the zone is frozen.
1216                       </para>
1217                     </listitem>
1218                   </varlistentry>
1220                   <varlistentry>
1221                     <term><userinput>thaw
1222                         <optional><replaceable>zone</replaceable>
1223        <optional><replaceable>class</replaceable>
1224            <optional><replaceable>view</replaceable></optional></optional></optional></userinput></term>
1225                     <listitem>
1226                       <para>
1227                         Enable updates to a frozen dynamic zone.  If no zone
1228                         is
1229                         specified, then all frozen zones are enabled.  This
1230                         causes
1231                         the server to reload the zone from disk, and
1232                         re-enables dynamic updates
1233                         after the load has completed.  After a zone is thawed,
1234                         dynamic updates
1235                         will no longer be refused.
1236                       </para>
1237                     </listitem>
1238                   </varlistentry>
1240                   <varlistentry>
1241                     <term><userinput>notify <replaceable>zone</replaceable>
1242                         <optional><replaceable>class</replaceable>
1243            <optional><replaceable>view</replaceable></optional></optional></userinput></term>
1244                     <listitem>
1245                       <para>
1246                         Resend NOTIFY messages for the zone.
1247                       </para>
1248                     </listitem>
1249                   </varlistentry>
1251                   <varlistentry>
1252                     <term><userinput>reconfig</userinput></term>
1253                     <listitem>
1254                       <para>
1255                         Reload the configuration file and load new zones,
1256                         but do not reload existing zone files even if they
1257                         have changed.
1258                         This is faster than a full <command>reload</command> when there
1259                         is a large number of zones because it avoids the need
1260                         to examine the
1261                         modification times of the zones files.
1262                       </para>
1263                     </listitem>
1264                   </varlistentry>
1266                   <varlistentry>
1267                     <term><userinput>stats</userinput></term>
1268                     <listitem>
1269                       <para>
1270                         Write server statistics to the statistics file.
1271                       </para>
1272                     </listitem>
1273                   </varlistentry>
1275                   <varlistentry>
1276                     <term><userinput>querylog</userinput></term>
1277                     <listitem>
1278                       <para>
1279                         Toggle query logging. Query logging can also be enabled
1280                         by explicitly directing the <command>queries</command>
1281                         <command>category</command> to a
1282                         <command>channel</command> in the
1283                         <command>logging</command> section of
1284                         <filename>named.conf</filename> or by specifying
1285                         <command>querylog yes;</command> in the
1286                         <command>options</command> section of
1287                         <filename>named.conf</filename>.
1288                       </para>
1289                     </listitem>
1290                   </varlistentry>
1292                   <varlistentry>
1293                     <term><userinput>dumpdb
1294                         <optional>-all|-cache|-zone</optional>
1295                         <optional><replaceable>view ...</replaceable></optional></userinput></term>
1296                     <listitem>
1297                       <para>
1298                         Dump the server's caches (default) and/or zones to
1299                         the
1300                         dump file for the specified views.  If no view is
1301                         specified, all
1302                         views are dumped.
1303                       </para>
1304                     </listitem>
1305                   </varlistentry>
1307                   <varlistentry>
1308                     <term><userinput>stop <optional>-p</optional></userinput></term>
1309                     <listitem>
1310                       <para>
1311                         Stop the server, making sure any recent changes
1312                         made through dynamic update or IXFR are first saved to
1313                         the master files of the updated zones.
1314                         If <option>-p</option> is specified <command>named</command>'s process id is returned.
1315                         This allows an external process to determine when <command>named</command>
1316                         had completed stopping.
1317                       </para>
1318                     </listitem>
1319                   </varlistentry>
1321                   <varlistentry>
1322                     <term><userinput>halt <optional>-p</optional></userinput></term>
1323                     <listitem>
1324                       <para>
1325                         Stop the server immediately.  Recent changes
1326                         made through dynamic update or IXFR are not saved to
1327                         the master files, but will be rolled forward from the
1328                         journal files when the server is restarted.
1329                         If <option>-p</option> is specified <command>named</command>'s process id is returned.
1330                         This allows an external process to determine when <command>named</command>
1331                         had completed halting.
1332                       </para>
1333                     </listitem>
1334                   </varlistentry>
1336                   <varlistentry>
1337                     <term><userinput>trace</userinput></term>
1338                     <listitem>
1339                       <para>
1340                         Increment the servers debugging level by one.
1341                       </para>
1342                     </listitem>
1343                   </varlistentry>
1345                   <varlistentry>
1346                     <term><userinput>trace <replaceable>level</replaceable></userinput></term>
1347                     <listitem>
1348                       <para>
1349                         Sets the server's debugging level to an explicit
1350                         value.
1351                       </para>
1352                     </listitem>
1353                   </varlistentry>
1355                   <varlistentry>
1356                     <term><userinput>notrace</userinput></term>
1357                     <listitem>
1358                       <para>
1359                         Sets the server's debugging level to 0.
1360                       </para>
1361                     </listitem>
1362                   </varlistentry>
1364                   <varlistentry>
1365                     <term><userinput>flush</userinput></term>
1366                     <listitem>
1367                       <para>
1368                         Flushes the server's cache.
1369                       </para>
1370                     </listitem>
1371                   </varlistentry>
1373                   <varlistentry>
1374                     <term><userinput>flushname</userinput> <replaceable>name</replaceable></term>
1375                     <listitem>
1376                       <para>
1377                         Flushes the given name from the server's cache.
1378                       </para>
1379                     </listitem>
1380                   </varlistentry>
1382                   <varlistentry>
1383                     <term><userinput>status</userinput></term>
1384                     <listitem>
1385                       <para>
1386                         Display status of the server.
1387                         Note that the number of zones includes the internal <command>bind/CH</command> zone
1388                         and the default <command>./IN</command>
1389                         hint zone if there is not an
1390                         explicit root zone configured.
1391                       </para>
1392                     </listitem>
1393                   </varlistentry>
1395                   <varlistentry>
1396                     <term><userinput>recursing</userinput></term>
1397                     <listitem>
1398                       <para>
1399                         Dump the list of queries <command>named</command> is currently recursing
1400                         on.
1401                       </para>
1402                     </listitem>
1403                   </varlistentry>
1405                   <varlistentry>
1406                     <term><userinput>validation
1407                         <optional>on|off</optional>
1408                         <optional><replaceable>view ...</replaceable></optional>
1409                     </userinput></term>
1410                     <listitem>
1411                       <para>
1412                         Enable or disable DNSSEC validation.
1413                         Note <command>dnssec-enable</command> also needs to be
1414                         set to <userinput>yes</userinput> to be effective.
1415                         It defaults to enabled.
1416                       </para>
1417                     </listitem>
1418                   </varlistentry>
1420                 </variablelist>
1422                 <para>
1423                   A configuration file is required, since all
1424                   communication with the server is authenticated with
1425                   digital signatures that rely on a shared secret, and
1426                   there is no way to provide that secret other than with a
1427                   configuration file.  The default location for the
1428                   <command>rndc</command> configuration file is
1429                   <filename>/etc/rndc.conf</filename>, but an
1430                   alternate
1431                   location can be specified with the <option>-c</option>
1432                   option.  If the configuration file is not found,
1433                   <command>rndc</command> will also look in
1434                   <filename>/etc/rndc.key</filename> (or whatever
1435                   <varname>sysconfdir</varname> was defined when
1436                   the <acronym>BIND</acronym> build was
1437                   configured).
1438                   The <filename>rndc.key</filename> file is
1439                   generated by
1440                   running <command>rndc-confgen -a</command> as
1441                   described in
1442                   <xref linkend="controls_statement_definition_and_usage"/>.
1443                 </para>
1445                 <para>
1446                   The format of the configuration file is similar to
1447                   that of <filename>named.conf</filename>, but
1448                   limited to
1449                   only four statements, the <command>options</command>,
1450                   <command>key</command>, <command>server</command> and
1451                   <command>include</command>
1452                   statements.  These statements are what associate the
1453                   secret keys to the servers with which they are meant to
1454                   be shared.  The order of statements is not
1455                   significant.
1456                 </para>
1458                 <para>
1459                   The <command>options</command> statement has
1460                   three clauses:
1461                   <command>default-server</command>, <command>default-key</command>,
1462                   and <command>default-port</command>.
1463                   <command>default-server</command> takes a
1464                   host name or address argument  and represents the server
1465                   that will
1466                   be contacted if no <option>-s</option>
1467                   option is provided on the command line.
1468                   <command>default-key</command> takes
1469                   the name of a key as its argument, as defined by a <command>key</command> statement.
1470                   <command>default-port</command> specifies the
1471                   port to which
1472                   <command>rndc</command> should connect if no
1473                   port is given on the command line or in a
1474                   <command>server</command> statement.
1475                 </para>
1477                 <para>
1478                   The <command>key</command> statement defines a
1479                   key to be used
1480                   by <command>rndc</command> when authenticating
1481                   with
1482                   <command>named</command>.  Its syntax is
1483                   identical to the
1484                   <command>key</command> statement in <filename>named.conf</filename>.
1485                   The keyword <userinput>key</userinput> is
1486                   followed by a key name, which must be a valid
1487                   domain name, though it need not actually be hierarchical;
1488                   thus,
1489                   a string like "<userinput>rndc_key</userinput>" is a valid
1490                   name.
1491                   The <command>key</command> statement has two
1492                   clauses:
1493                   <command>algorithm</command> and <command>secret</command>.
1494                   While the configuration parser will accept any string as the
1495                   argument
1496                   to algorithm, currently only the string "<userinput>hmac-md5</userinput>"
1497                   has any meaning.  The secret is a base-64 encoded string
1498                   as specified in RFC 3548.
1499                 </para>
1501                 <para>
1502                   The <command>server</command> statement
1503                   associates a key
1504                   defined using the <command>key</command>
1505                   statement with a server.
1506                   The keyword <userinput>server</userinput> is followed by a
1507                   host name or address.  The <command>server</command> statement
1508                   has two clauses: <command>key</command> and <command>port</command>.
1509                   The <command>key</command> clause specifies the
1510                   name of the key
1511                   to be used when communicating with this server, and the
1512                   <command>port</command> clause can be used to
1513                   specify the port <command>rndc</command> should
1514                   connect
1515                   to on the server.
1516                 </para>
1518                 <para>
1519                   A sample minimal configuration file is as follows:
1520                 </para>
1522 <programlisting>
1523 key rndc_key {
1524      algorithm "hmac-md5";
1525      secret
1526        "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
1528 options {
1529      default-server 127.0.0.1;
1530      default-key    rndc_key;
1532 </programlisting>
1534                 <para>
1535                   This file, if installed as <filename>/etc/rndc.conf</filename>,
1536                   would allow the command:
1537                 </para>
1539                 <para>
1540                   <prompt>$ </prompt><userinput>rndc reload</userinput>
1541                 </para>
1543                 <para>
1544                   to connect to 127.0.0.1 port 953 and cause the name server
1545                   to reload, if a name server on the local machine were
1546                   running with
1547                   following controls statements:
1548                 </para>
1550 <programlisting>
1551 controls {
1552         inet 127.0.0.1
1553             allow { localhost; } keys { rndc_key; };
1555 </programlisting>
1557                 <para>
1558                   and it had an identical key statement for
1559                   <literal>rndc_key</literal>.
1560                 </para>
1562                 <para>
1563                   Running the <command>rndc-confgen</command>
1564                   program will
1565                   conveniently create a <filename>rndc.conf</filename>
1566                   file for you, and also display the
1567                   corresponding <command>controls</command>
1568                   statement that you need to
1569                   add to <filename>named.conf</filename>.
1570                   Alternatively,
1571                   you can run <command>rndc-confgen -a</command>
1572                   to set up
1573                   a <filename>rndc.key</filename> file and not
1574                   modify
1575                   <filename>named.conf</filename> at all.
1576                 </para>
1578               </listitem>
1579             </varlistentry>
1580           </variablelist>
1582         </sect3>
1583       </sect2>
1584       <sect2>
1586         <title>Signals</title>
1587         <para>
1588           Certain UNIX signals cause the name server to take specific
1589           actions, as described in the following table.  These signals can
1590           be sent using the <command>kill</command> command.
1591         </para>
1592         <informaltable frame="all">
1593           <tgroup cols="2">
1594             <colspec colname="1" colnum="1" colsep="0" colwidth="1.125in"/>
1595             <colspec colname="2" colnum="2" colsep="0" colwidth="4.000in"/>
1596             <tbody>
1597               <row rowsep="0">
1598                 <entry colname="1">
1599                   <para><command>SIGHUP</command></para>
1600                 </entry>
1601                 <entry colname="2">
1602                   <para>
1603                     Causes the server to read <filename>named.conf</filename> and
1604                     reload the database.
1605                   </para>
1606                 </entry>
1607               </row>
1608               <row rowsep="0">
1609                 <entry colname="1">
1610                   <para><command>SIGTERM</command></para>
1611                 </entry>
1612                 <entry colname="2">
1613                   <para>
1614                     Causes the server to clean up and exit.
1615                   </para>
1616                 </entry>
1617               </row>
1618               <row rowsep="0">
1619                 <entry colname="1">
1620                   <para><command>SIGINT</command></para>
1621                 </entry>
1622                 <entry colname="2">
1623                   <para>
1624                     Causes the server to clean up and exit.
1625                   </para>
1626                 </entry>
1627               </row>
1628             </tbody>
1629           </tgroup>
1630         </informaltable>
1631       </sect2>
1632     </sect1>
1633   </chapter>
1635   <chapter id="Bv9ARM.ch04">
1636     <title>Advanced DNS Features</title>
1638     <sect1 id="notify">
1640       <title>Notify</title>
1641       <para>
1642         <acronym>DNS</acronym> NOTIFY is a mechanism that allows master
1643         servers to notify their slave servers of changes to a zone's data. In
1644         response to a <command>NOTIFY</command> from a master server, the
1645         slave will check to see that its version of the zone is the
1646         current version and, if not, initiate a zone transfer.
1647       </para>
1649       <para>
1650         For more information about <acronym>DNS</acronym>
1651         <command>NOTIFY</command>, see the description of the
1652         <command>notify</command> option in <xref linkend="boolean_options"/> and
1653         the description of the zone option <command>also-notify</command> in
1654         <xref linkend="zone_transfers"/>.  The <command>NOTIFY</command>
1655         protocol is specified in RFC 1996.
1656       </para>
1658       <note>
1659         As a slave zone can also be a master to other slaves, <command>named</command>,
1660         by default, sends <command>NOTIFY</command> messages for every zone
1661         it loads.  Specifying <command>notify master-only;</command> will
1662         cause <command>named</command> to only send <command>NOTIFY</command> for master
1663         zones that it loads.
1664       </note>
1666     </sect1>
1668     <sect1 id="dynamic_update">
1669       <title>Dynamic Update</title>
1671       <para>
1672         Dynamic Update is a method for adding, replacing or deleting
1673         records in a master server by sending it a special form of DNS
1674         messages.  The format and meaning of these messages is specified
1675         in RFC 2136.
1676       </para>
1678       <para>
1679         Dynamic update is enabled by including an
1680         <command>allow-update</command> or an <command>update-policy</command>
1681         clause in the <command>zone</command> statement.
1682       </para>
1683       
1684       <para>
1685         If the zone's <command>update-policy</command> is set to
1686         <userinput>local</userinput>, updates to the zone
1687         will be permitted for the key <varname>local-ddns</varname>,
1688         which will be generated by <command>named</command> at startup.
1689         See <xref linkend="dynamic_update_policies"/> for more details.
1690       </para>
1692       <para>
1693         The <command>tkey-gssapi-credential</command> and
1694         <command>tkey-domain</command> clauses in the
1695         <command>options</command> statement enable the
1696         server to negotiate keys that can be matched against those
1697         in <command>update-policy</command> or
1698         <command>allow-update</command>.
1699       </para>
1701       <para>
1702         Updating of secure zones (zones using DNSSEC) follows RFC
1703         3007: RRSIG, NSEC and NSEC3 records affected by updates are
1704         automatically regenerated by the server using an online
1705         zone key.  Update authorization is based on transaction
1706         signatures and an explicit server policy.
1707       </para>
1709       <sect2 id="journal">
1710         <title>The journal file</title>
1712         <para>
1713           All changes made to a zone using dynamic update are stored
1714           in the zone's journal file.  This file is automatically created
1715           by the server when the first dynamic update takes place.
1716           The name of the journal file is formed by appending the extension
1717           <filename>.jnl</filename> to the name of the
1718           corresponding zone
1719           file unless specifically overridden.  The journal file is in a
1720           binary format and should not be edited manually.
1721         </para>
1723         <para>
1724           The server will also occasionally write ("dump")
1725           the complete contents of the updated zone to its zone file.
1726           This is not done immediately after
1727           each dynamic update, because that would be too slow when a large
1728           zone is updated frequently.  Instead, the dump is delayed by
1729           up to 15 minutes, allowing additional updates to take place.
1730           During the dump process, transient files will be created
1731           with the extensions <filename>.jnw</filename> and
1732           <filename>.jbk</filename>; under ordinary circumstances, these
1733           will be removed when the dump is complete, and can be safely
1734           ignored.
1735         </para>
1737         <para>
1738           When a server is restarted after a shutdown or crash, it will replay
1739               the journal file to incorporate into the zone any updates that
1740           took
1741           place after the last zone dump.
1742         </para>
1744         <para>
1745           Changes that result from incoming incremental zone transfers are
1746           also
1747           journalled in a similar way.
1748         </para>
1750         <para>
1751           The zone files of dynamic zones cannot normally be edited by
1752           hand because they are not guaranteed to contain the most recent
1753           dynamic changes &mdash; those are only in the journal file.
1754           The only way to ensure that the zone file of a dynamic zone
1755           is up to date is to run <command>rndc stop</command>.
1756         </para>
1758         <para>
1759           If you have to make changes to a dynamic zone
1760           manually, the following procedure will work: Disable dynamic updates
1761               to the zone using
1762           <command>rndc freeze <replaceable>zone</replaceable></command>.
1763           This will also remove the zone's <filename>.jnl</filename> file
1764           and update the master file.  Edit the zone file.  Run
1765           <command>rndc thaw <replaceable>zone</replaceable></command>
1766           to reload the changed zone and re-enable dynamic updates.
1767         </para>
1769       </sect2>
1771     </sect1>
1773     <sect1 id="incremental_zone_transfers">
1774       <title>Incremental Zone Transfers (IXFR)</title>
1776       <para>
1777         The incremental zone transfer (IXFR) protocol is a way for
1778         slave servers to transfer only changed data, instead of having to
1779         transfer the entire zone. The IXFR protocol is specified in RFC
1780         1995. See <xref linkend="proposed_standards"/>.
1781       </para>
1783       <para>
1784         When acting as a master, <acronym>BIND</acronym> 9
1785         supports IXFR for those zones
1786         where the necessary change history information is available. These
1787         include master zones maintained by dynamic update and slave zones
1788         whose data was obtained by IXFR.  For manually maintained master
1789         zones, and for slave zones obtained by performing a full zone
1790         transfer (AXFR), IXFR is supported only if the option
1791         <command>ixfr-from-differences</command> is set
1792         to <userinput>yes</userinput>.
1793       </para>
1795       <para>
1796         When acting as a slave, <acronym>BIND</acronym> 9 will
1797         attempt to use IXFR unless
1798         it is explicitly disabled. For more information about disabling
1799         IXFR, see the description of the <command>request-ixfr</command> clause
1800         of the <command>server</command> statement.
1801       </para>
1802     </sect1>
1804     <sect1>
1805       <title>Split DNS</title>
1806       <para>
1807         Setting up different views, or visibility, of the DNS space to
1808         internal and external resolvers is usually referred to as a
1809         <emphasis>Split DNS</emphasis> setup. There are several
1810         reasons an organization would want to set up its DNS this way.
1811       </para>
1812       <para>
1813         One common reason for setting up a DNS system this way is
1814         to hide "internal" DNS information from "external" clients on the
1815         Internet. There is some debate as to whether or not this is actually
1816         useful.
1817         Internal DNS information leaks out in many ways (via email headers,
1818         for example) and most savvy "attackers" can find the information
1819         they need using other means.
1820         However, since listing addresses of internal servers that
1821         external clients cannot possibly reach can result in
1822         connection delays and other annoyances, an organization may
1823         choose to use a Split DNS to present a consistent view of itself
1824         to the outside world.
1825       </para>
1826       <para>
1827         Another common reason for setting up a Split DNS system is
1828         to allow internal networks that are behind filters or in RFC 1918
1829         space (reserved IP space, as documented in RFC 1918) to resolve DNS
1830         on the Internet. Split DNS can also be used to allow mail from outside
1831         back in to the internal network.
1832       </para>
1833      <sect2>
1834       <title>Example split DNS setup</title>
1835       <para>
1836         Let's say a company named <emphasis>Example, Inc.</emphasis>
1837         (<literal>example.com</literal>)
1838         has several corporate sites that have an internal network with
1839         reserved
1840         Internet Protocol (IP) space and an external demilitarized zone (DMZ),
1841         or "outside" section of a network, that is available to the public.
1842       </para>
1843       <para>
1844         <emphasis>Example, Inc.</emphasis> wants its internal clients
1845         to be able to resolve external hostnames and to exchange mail with
1846         people on the outside. The company also wants its internal resolvers
1847         to have access to certain internal-only zones that are not available
1848         at all outside of the internal network.
1849       </para>
1850       <para>
1851         In order to accomplish this, the company will set up two sets
1852         of name servers. One set will be on the inside network (in the
1853         reserved
1854         IP space) and the other set will be on bastion hosts, which are
1855         "proxy"
1856         hosts that can talk to both sides of its network, in the DMZ.
1857       </para>
1858       <para>
1859         The internal servers will be configured to forward all queries,
1860         except queries for <filename>site1.internal</filename>, <filename>site2.internal</filename>, <filename>site1.example.com</filename>,
1861         and <filename>site2.example.com</filename>, to the servers
1862         in the
1863         DMZ. These internal servers will have complete sets of information
1864         for <filename>site1.example.com</filename>, <filename>site2.example.com</filename>, <filename>site1.internal</filename>,
1865         and <filename>site2.internal</filename>.
1866       </para>
1867       <para>
1868         To protect the <filename>site1.internal</filename> and <filename>site2.internal</filename> domains,
1869         the internal name servers must be configured to disallow all queries
1870         to these domains from any external hosts, including the bastion
1871         hosts.
1872       </para>
1873       <para>
1874         The external servers, which are on the bastion hosts, will
1875         be configured to serve the "public" version of the <filename>site1</filename> and <filename>site2.example.com</filename> zones.
1876         This could include things such as the host records for public servers
1877         (<filename>www.example.com</filename> and <filename>ftp.example.com</filename>),
1878         and mail exchange (MX)  records (<filename>a.mx.example.com</filename> and <filename>b.mx.example.com</filename>).
1879       </para>
1880       <para>
1881         In addition, the public <filename>site1</filename> and <filename>site2.example.com</filename> zones
1882         should have special MX records that contain wildcard (`*') records
1883         pointing to the bastion hosts. This is needed because external mail
1884         servers do not have any other way of looking up how to deliver mail
1885         to those internal hosts. With the wildcard records, the mail will
1886         be delivered to the bastion host, which can then forward it on to
1887         internal hosts.
1888       </para>
1889       <para>
1890         Here's an example of a wildcard MX record:
1891       </para>
1892       <programlisting>*   IN MX 10 external1.example.com.</programlisting>
1893       <para>
1894         Now that they accept mail on behalf of anything in the internal
1895         network, the bastion hosts will need to know how to deliver mail
1896         to internal hosts. In order for this to work properly, the resolvers
1897         on
1898         the bastion hosts will need to be configured to point to the internal
1899         name servers for DNS resolution.
1900       </para>
1901       <para>
1902         Queries for internal hostnames will be answered by the internal
1903         servers, and queries for external hostnames will be forwarded back
1904         out to the DNS servers on the bastion hosts.
1905       </para>
1906       <para>
1907         In order for all this to work properly, internal clients will
1908         need to be configured to query <emphasis>only</emphasis> the internal
1909         name servers for DNS queries. This could also be enforced via
1910         selective
1911         filtering on the network.
1912       </para>
1913       <para>
1914         If everything has been set properly, <emphasis>Example, Inc.</emphasis>'s
1915         internal clients will now be able to:
1916       </para>
1917       <itemizedlist>
1918         <listitem>
1919           <simpara>
1920             Look up any hostnames in the <literal>site1</literal>
1921             and
1922             <literal>site2.example.com</literal> zones.
1923           </simpara>
1924         </listitem>
1925         <listitem>
1926           <simpara>
1927             Look up any hostnames in the <literal>site1.internal</literal> and
1928             <literal>site2.internal</literal> domains.
1929           </simpara>
1930         </listitem>
1931         <listitem>
1932           <simpara>Look up any hostnames on the Internet.</simpara>
1933         </listitem>
1934         <listitem>
1935           <simpara>Exchange mail with both internal and external people.</simpara>
1936         </listitem>
1937       </itemizedlist>
1938       <para>
1939         Hosts on the Internet will be able to:
1940       </para>
1941       <itemizedlist>
1942         <listitem>
1943           <simpara>
1944             Look up any hostnames in the <literal>site1</literal>
1945             and
1946             <literal>site2.example.com</literal> zones.
1947           </simpara>
1948         </listitem>
1949         <listitem>
1950           <simpara>
1951             Exchange mail with anyone in the <literal>site1</literal> and
1952             <literal>site2.example.com</literal> zones.
1953           </simpara>
1954         </listitem>
1955       </itemizedlist>
1957       <para>
1958         Here is an example configuration for the setup we just
1959         described above. Note that this is only configuration information;
1960         for information on how to configure your zone files, see <xref linkend="sample_configuration"/>.
1961       </para>
1963       <para>
1964         Internal DNS server config:
1965       </para>
1967 <programlisting>
1969 acl internals { 172.16.72.0/24; 192.168.1.0/24; };
1971 acl externals { <varname>bastion-ips-go-here</varname>; };
1973 options {
1974     ...
1975     ...
1976     forward only;
1977     // forward to external servers
1978     forwarders {
1979         <varname>bastion-ips-go-here</varname>;
1980     };
1981     // sample allow-transfer (no one)
1982     allow-transfer { none; };
1983     // restrict query access
1984     allow-query { internals; externals; };
1985     // restrict recursion
1986     allow-recursion { internals; };
1987     ...
1988     ...
1991 // sample master zone
1992 zone "site1.example.com" {
1993   type master;
1994   file "m/site1.example.com";
1995   // do normal iterative resolution (do not forward)
1996   forwarders { };
1997   allow-query { internals; externals; };
1998   allow-transfer { internals; };
2001 // sample slave zone
2002 zone "site2.example.com" {
2003   type slave;
2004   file "s/site2.example.com";
2005   masters { 172.16.72.3; };
2006   forwarders { };
2007   allow-query { internals; externals; };
2008   allow-transfer { internals; };
2011 zone "site1.internal" {
2012   type master;
2013   file "m/site1.internal";
2014   forwarders { };
2015   allow-query { internals; };
2016   allow-transfer { internals; }
2019 zone "site2.internal" {
2020   type slave;
2021   file "s/site2.internal";
2022   masters { 172.16.72.3; };
2023   forwarders { };
2024   allow-query { internals };
2025   allow-transfer { internals; }
2027 </programlisting>
2029       <para>
2030         External (bastion host) DNS server config:
2031       </para>
2033 <programlisting>
2034 acl internals { 172.16.72.0/24; 192.168.1.0/24; };
2036 acl externals { bastion-ips-go-here; };
2038 options {
2039   ...
2040   ...
2041   // sample allow-transfer (no one)
2042   allow-transfer { none; };
2043   // default query access
2044   allow-query { any; };
2045   // restrict cache access
2046   allow-query-cache { internals; externals; };
2047   // restrict recursion
2048   allow-recursion { internals; externals; };
2049   ...
2050   ...
2053 // sample slave zone
2054 zone "site1.example.com" {
2055   type master;
2056   file "m/site1.foo.com";
2057   allow-transfer { internals; externals; };
2060 zone "site2.example.com" {
2061   type slave;
2062   file "s/site2.foo.com";
2063   masters { another_bastion_host_maybe; };
2064   allow-transfer { internals; externals; }
2066 </programlisting>
2068       <para>
2069         In the <filename>resolv.conf</filename> (or equivalent) on
2070         the bastion host(s):
2071       </para>
2073 <programlisting>
2074 search ...
2075 nameserver 172.16.72.2
2076 nameserver 172.16.72.3
2077 nameserver 172.16.72.4
2078 </programlisting>
2080      </sect2>
2081     </sect1>
2082     <sect1 id="tsig">
2083       <title>TSIG</title>
2084       <para>
2085         This is a short guide to setting up Transaction SIGnatures
2086         (TSIG) based transaction security in <acronym>BIND</acronym>. It describes changes
2087         to the configuration file as well as what changes are required for
2088         different features, including the process of creating transaction
2089         keys and using transaction signatures with <acronym>BIND</acronym>.
2090       </para>
2091       <para>
2092         <acronym>BIND</acronym> primarily supports TSIG for server
2093         to server communication.
2094         This includes zone transfer, notify, and recursive query messages.
2095         Resolvers based on newer versions of <acronym>BIND</acronym> 8 have limited support
2096         for TSIG.
2097       </para>
2099       <para>
2100         TSIG can also be useful for dynamic update. A primary
2101         server for a dynamic zone should control access to the dynamic
2102         update service, but IP-based access control is insufficient.
2103         The cryptographic access control provided by TSIG
2104         is far superior. The <command>nsupdate</command>
2105         program supports TSIG via the <option>-k</option> and
2106         <option>-y</option> command line options or inline by use
2107         of the <command>key</command>.
2108       </para>
2110       <sect2>
2111         <title>Generate Shared Keys for Each Pair of Hosts</title>
2112         <para>
2113           A shared secret is generated to be shared between <emphasis>host1</emphasis> and <emphasis>host2</emphasis>.
2114           An arbitrary key name is chosen: "host1-host2.". The key name must
2115           be the same on both hosts.
2116         </para>
2117         <sect3>
2118           <title>Automatic Generation</title>
2119           <para>
2120             The following command will generate a 128-bit (16 byte) HMAC-SHA256
2121             key as described above. Longer keys are better, but shorter keys
2122             are easier to read. Note that the maximum key length is the digest
2123             length, here 256 bits.
2124           </para>
2125           <para>
2126             <userinput>dnssec-keygen -a hmac-sha256 -b 128 -n HOST host1-host2.</userinput>
2127           </para>
2128           <para>
2129             The key is in the file <filename>Khost1-host2.+163+00000.private</filename>.
2130             Nothing directly uses this file, but the base-64 encoded string
2131             following "<literal>Key:</literal>"
2132             can be extracted from the file and used as a shared secret:
2133           </para>
2134           <programlisting>Key: La/E5CjG9O+os1jq0a2jdA==</programlisting>
2135           <para>
2136             The string "<literal>La/E5CjG9O+os1jq0a2jdA==</literal>" can
2137             be used as the shared secret.
2138           </para>
2139         </sect3>
2140         <sect3>
2141           <title>Manual Generation</title>
2142           <para>
2143             The shared secret is simply a random sequence of bits, encoded
2144             in base-64. Most ASCII strings are valid base-64 strings (assuming
2145             the length is a multiple of 4 and only valid characters are used),
2146             so the shared secret can be manually generated.
2147           </para>
2148           <para>
2149             Also, a known string can be run through <command>mmencode</command> or
2150             a similar program to generate base-64 encoded data.
2151           </para>
2152         </sect3>
2153       </sect2>
2154       <sect2>
2155         <title>Copying the Shared Secret to Both Machines</title>
2156         <para>
2157           This is beyond the scope of DNS. A secure transport mechanism
2158           should be used. This could be secure FTP, ssh, telephone, etc.
2159         </para>
2160       </sect2>
2161       <sect2>
2162         <title>Informing the Servers of the Key's Existence</title>
2163         <para>
2164           Imagine <emphasis>host1</emphasis> and <emphasis>host 2</emphasis>
2165           are
2166           both servers. The following is added to each server's <filename>named.conf</filename> file:
2167         </para>
2169 <programlisting>
2170 key host1-host2. {
2171   algorithm hmac-sha256;
2172   secret "La/E5CjG9O+os1jq0a2jdA==";
2174 </programlisting>
2176         <para>
2177           The secret is the one generated above. Since this is a secret, it
2178           is recommended that either <filename>named.conf</filename> be
2179           non-world readable, or the key directive be added to a non-world
2180           readable file that is included by <filename>named.conf</filename>.
2181         </para>
2182         <para>
2183           At this point, the key is recognized. This means that if the
2184           server receives a message signed by this key, it can verify the
2185           signature. If the signature is successfully verified, the
2186           response is signed by the same key.
2187         </para>
2188       </sect2>
2190       <sect2>
2191         <title>Instructing the Server to Use the Key</title>
2192         <para>
2193           Since keys are shared between two hosts only, the server must
2194           be told when keys are to be used. The following is added to the <filename>named.conf</filename> file
2195           for <emphasis>host1</emphasis>, if the IP address of <emphasis>host2</emphasis> is
2196           10.1.2.3:
2197         </para>
2199 <programlisting>
2200 server 10.1.2.3 {
2201   keys { host1-host2. ;};
2203 </programlisting>
2205         <para>
2206           Multiple keys may be present, but only the first is used.
2207           This directive does not contain any secrets, so it may be in a
2208           world-readable
2209           file.
2210         </para>
2211         <para>
2212           If <emphasis>host1</emphasis> sends a message that is a request
2213           to that address, the message will be signed with the specified key. <emphasis>host1</emphasis> will
2214           expect any responses to signed messages to be signed with the same
2215           key.
2216         </para>
2217         <para>
2218           A similar statement must be present in <emphasis>host2</emphasis>'s
2219           configuration file (with <emphasis>host1</emphasis>'s address) for <emphasis>host2</emphasis> to
2220           sign request messages to <emphasis>host1</emphasis>.
2221         </para>
2222       </sect2>
2223       <sect2>
2224         <title>TSIG Key Based Access Control</title>
2225         <para>
2226           <acronym>BIND</acronym> allows IP addresses and ranges
2227           to be specified in ACL
2228           definitions and
2229           <command>allow-{ query | transfer | update }</command>
2230           directives.
2231           This has been extended to allow TSIG keys also. The above key would
2232           be denoted <command>key host1-host2.</command>
2233         </para>
2234         <para>
2235           An example of an <command>allow-update</command> directive would be:
2236         </para>
2238 <programlisting>
2239 allow-update { key host1-host2. ;};
2240 </programlisting>
2242         <para>
2243           This allows dynamic updates to succeed only if the request
2244           was signed by a key named "<command>host1-host2.</command>".
2245         </para>
2247         <para>
2248           See <xref linkend="dynamic_update_policies"/> for a discussion of
2249           the more flexible <command>update-policy</command> statement.
2250         </para>
2252       </sect2>
2253       <sect2>
2254         <title>Errors</title>
2256         <para>
2257           The processing of TSIG signed messages can result in
2258           several errors. If a signed message is sent to a non-TSIG aware
2259           server, a FORMERR (format error) will be returned, since the server will not
2260           understand the record. This is a result of misconfiguration,
2261           since the server must be explicitly configured to send a TSIG
2262           signed message to a specific server.
2263         </para>
2265         <para>
2266           If a TSIG aware server receives a message signed by an
2267           unknown key, the response will be unsigned with the TSIG
2268           extended error code set to BADKEY. If a TSIG aware server
2269           receives a message with a signature that does not validate, the
2270           response will be unsigned with the TSIG extended error code set
2271           to BADSIG. If a TSIG aware server receives a message with a time
2272           outside of the allowed range, the response will be signed with
2273           the TSIG extended error code set to BADTIME, and the time values
2274           will be adjusted so that the response can be successfully
2275           verified. In any of these cases, the message's rcode (response code) is set to
2276           NOTAUTH (not authenticated).
2277         </para>
2279       </sect2>
2280     </sect1>
2281     <sect1>
2282       <title>TKEY</title>
2284       <para><command>TKEY</command>
2285         is a mechanism for automatically generating a shared secret
2286         between two hosts.  There are several "modes" of
2287         <command>TKEY</command> that specify how the key is generated
2288         or assigned.  <acronym>BIND</acronym> 9 implements only one of
2289         these modes, the Diffie-Hellman key exchange.  Both hosts are
2290         required to have a Diffie-Hellman KEY record (although this
2291         record is not required to be present in a zone).  The
2292         <command>TKEY</command> process must use signed messages,
2293         signed either by TSIG or SIG(0).  The result of
2294         <command>TKEY</command> is a shared secret that can be used to
2295         sign messages with TSIG.  <command>TKEY</command> can also be
2296         used to delete shared secrets that it had previously
2297         generated.
2298       </para>
2300       <para>
2301         The <command>TKEY</command> process is initiated by a
2302         client
2303         or server by sending a signed <command>TKEY</command>
2304         query
2305         (including any appropriate KEYs) to a TKEY-aware server.  The
2306         server response, if it indicates success, will contain a
2307         <command>TKEY</command> record and any appropriate keys.
2308         After
2309         this exchange, both participants have enough information to
2310         determine the shared secret; the exact process depends on the
2311         <command>TKEY</command> mode.  When using the
2312         Diffie-Hellman
2313         <command>TKEY</command> mode, Diffie-Hellman keys are
2314         exchanged,
2315         and the shared secret is derived by both participants.
2316       </para>
2318     </sect1>
2319     <sect1>
2320       <title>SIG(0)</title>
2322       <para>
2323         <acronym>BIND</acronym> 9 partially supports DNSSEC SIG(0)
2324             transaction signatures as specified in RFC 2535 and RFC 2931.
2325         SIG(0)
2326         uses public/private keys to authenticate messages.  Access control
2327         is performed in the same manner as TSIG keys; privileges can be
2328         granted or denied based on the key name.
2329       </para>
2331       <para>
2332         When a SIG(0) signed message is received, it will only be
2333         verified if the key is known and trusted by the server; the server
2334         will not attempt to locate and/or validate the key.
2335       </para>
2337       <para>
2338         SIG(0) signing of multiple-message TCP streams is not
2339         supported.
2340       </para>
2342       <para>
2343         The only tool shipped with <acronym>BIND</acronym> 9 that
2344         generates SIG(0) signed messages is <command>nsupdate</command>.
2345       </para>
2347     </sect1>
2348     <sect1 id="DNSSEC">
2349       <title>DNSSEC</title>
2351       <para>
2352         Cryptographic authentication of DNS information is possible
2353         through the DNS Security (<emphasis>DNSSEC-bis</emphasis>) extensions,
2354         defined in RFC 4033, RFC 4034, and RFC 4035.
2355         This section describes the creation and use of DNSSEC signed zones.
2356       </para>
2358       <para>
2359         In order to set up a DNSSEC secure zone, there are a series
2360         of steps which must be followed.  <acronym>BIND</acronym>
2361         9 ships
2362         with several tools
2363         that are used in this process, which are explained in more detail
2364         below.  In all cases, the <option>-h</option> option prints a
2365         full list of parameters.  Note that the DNSSEC tools require the
2366         keyset files to be in the working directory or the
2367         directory specified by the <option>-d</option> option, and
2368         that the tools shipped with BIND 9.2.x and earlier are not compatible
2369         with the current ones.
2370       </para>
2372       <para>
2373         There must also be communication with the administrators of
2374         the parent and/or child zone to transmit keys.  A zone's security
2375         status must be indicated by the parent zone for a DNSSEC capable
2376         resolver to trust its data.  This is done through the presence
2377         or absence of a <literal>DS</literal> record at the
2378         delegation
2379         point.
2380       </para>
2382       <para>
2383         For other servers to trust data in this zone, they must
2384         either be statically configured with this zone's zone key or the
2385         zone key of another zone above this one in the DNS tree.
2386       </para>
2388       <sect2>
2389         <title>Generating Keys</title>
2391         <para>
2392           The <command>dnssec-keygen</command> program is used to
2393           generate keys.
2394         </para>
2396         <para>
2397           A secure zone must contain one or more zone keys.  The
2398           zone keys will sign all other records in the zone, as well as
2399           the zone keys of any secure delegated zones.  Zone keys must
2400           have the same name as the zone, a name type of
2401           <command>ZONE</command>, and must be usable for
2402           authentication.
2403           It is recommended that zone keys use a cryptographic algorithm
2404           designated as "mandatory to implement" by the IETF; currently
2405           the only one is RSASHA1.
2406         </para>
2408         <para>
2409           The following command will generate a 768-bit RSASHA1 key for
2410           the <filename>child.example</filename> zone:
2411         </para>
2413         <para>
2414           <userinput>dnssec-keygen -a RSASHA1 -b 768 -n ZONE child.example.</userinput>
2415         </para>
2417         <para>
2418           Two output files will be produced:
2419           <filename>Kchild.example.+005+12345.key</filename> and
2420           <filename>Kchild.example.+005+12345.private</filename>
2421           (where
2422           12345 is an example of a key tag).  The key filenames contain
2423           the key name (<filename>child.example.</filename>),
2424           algorithm (3
2425           is DSA, 1 is RSAMD5, 5 is RSASHA1, etc.), and the key tag (12345 in
2426           this case).
2427           The private key (in the <filename>.private</filename>
2428           file) is
2429           used to generate signatures, and the public key (in the
2430           <filename>.key</filename> file) is used for signature
2431           verification.
2432         </para>
2434         <para>
2435           To generate another key with the same properties (but with
2436           a different key tag), repeat the above command.
2437         </para>
2439         <para>
2440           The <command>dnssec-keyfromlabel</command> program is used
2441           to get a key pair from a crypto hardware and build the key
2442           files. Its usage is similar to <command>dnssec-keygen</command>.
2443         </para>
2445         <para>
2446           The public keys should be inserted into the zone file by
2447           including the <filename>.key</filename> files using
2448           <command>$INCLUDE</command> statements.
2449         </para>
2451       </sect2>
2452       <sect2>
2453         <title>Signing the Zone</title>
2455         <para>
2456           The <command>dnssec-signzone</command> program is used
2457           to sign a zone.
2458         </para>
2460         <para>
2461           Any <filename>keyset</filename> files corresponding to
2462           secure subzones should be present.  The zone signer will
2463           generate <literal>NSEC</literal>, <literal>NSEC3</literal>
2464           and <literal>RRSIG</literal> records for the zone, as
2465           well as <literal>DS</literal> for the child zones if
2466           <literal>'-g'</literal> is specified.  If <literal>'-g'</literal>
2467           is not specified, then DS RRsets for the secure child
2468           zones need to be added manually.
2469         </para>
2471         <para>
2472           The following command signs the zone, assuming it is in a
2473           file called <filename>zone.child.example</filename>.  By
2474                 default, all zone keys which have an available private key are
2475                 used to generate signatures.
2476         </para>
2478         <para>
2479           <userinput>dnssec-signzone -o child.example zone.child.example</userinput>
2480         </para>
2482         <para>
2483           One output file is produced:
2484           <filename>zone.child.example.signed</filename>.  This
2485           file
2486           should be referenced by <filename>named.conf</filename>
2487           as the
2488           input file for the zone.
2489         </para>
2491         <para><command>dnssec-signzone</command>
2492           will also produce a keyset and dsset files and optionally a
2493           dlvset file.  These are used to provide the parent zone
2494           administrators with the <literal>DNSKEYs</literal> (or their
2495           corresponding <literal>DS</literal> records) that are the
2496           secure entry point to the zone.
2497         </para>
2499       </sect2>
2501       <sect2>
2502         <title>Configuring Servers</title>
2504         <para>
2505           To enable <command>named</command> to respond appropriately
2506           to DNS requests from DNSSEC aware clients,
2507           <command>dnssec-enable</command> must be set to yes.
2508           (This is the default setting.)
2509         </para>
2511         <para>
2512           To enable <command>named</command> to validate answers from
2513           other servers, the <command>dnssec-enable</command> and
2514           <command>dnssec-validation</command> options must both be
2515           set to yes (the default setting in <acronym>BIND</acronym> 9.5
2516           and later), and at least one trust anchor must be configured
2517           with a <command>trusted-keys</command> or
2518           <command>managed-keys</command> statement in
2519           <filename>named.conf</filename>.
2520         </para>
2521           
2522         <para>
2523           <command>trusted-keys</command> are copies of DNSKEY RRs
2524           for zones that are used to form the first link in the
2525           cryptographic chain of trust.  All keys listed in
2526           <command>trusted-keys</command> (and corresponding zones)
2527           are deemed to exist and only the listed keys will be used
2528           to validated the DNSKEY RRset that they are from.
2529         </para>
2531         <para>
2532           <command>managed-keys</command> are trusted keys which are
2533           automatically kept up to date via RFC 5011 trust anchor
2534           maintenance.
2535         </para>
2537         <para>
2538           <command>trusted-keys</command> and
2539           <command>managed-keys</command> are described in more detail
2540           later in this document.
2541         </para>
2543         <para>
2544           Unlike <acronym>BIND</acronym> 8, <acronym>BIND</acronym>
2545           9 does not verify signatures on load, so zone keys for
2546           authoritative zones do not need to be specified in the
2547           configuration file.
2548         </para>
2550         <para>
2551           After DNSSEC gets established, a typical DNSSEC configuration
2552           will look something like the following.  It has one or
2553           more public keys for the root.  This allows answers from
2554           outside the organization to be validated.  It will also
2555           have several keys for parts of the namespace the organization
2556           controls.  These are here to ensure that <command>named</command>
2557           is immune to compromises in the DNSSEC components of the security
2558           of parent zones.
2559         </para>
2561 <programlisting>
2562 managed-keys {
2563         /* Root Key */
2564         "." initial-key 257 3 3 "BNY4wrWM1nCfJ+CXd0rVXyYmobt7sEEfK3clRbGaTwS
2565                                  JxrGkxJWoZu6I7PzJu/E9gx4UC1zGAHlXKdE4zYIpRh
2566                                  aBKnvcC2U9mZhkdUpd1Vso/HAdjNe8LmMlnzY3zy2Xy
2567                                  4klWOADTPzSv9eamj8V18PHGjBLaVtYvk/ln5ZApjYg
2568                                  hf+6fElrmLkdaz MQ2OCnACR817DF4BBa7UR/beDHyp
2569                                  5iWTXWSi6XmoJLbG9Scqc7l70KDqlvXR3M/lUUVRbke
2570                                  g1IPJSidmK3ZyCllh4XSKbje/45SKucHgnwU5jefMtq
2571                                  66gKodQj+MiA21AfUVe7u99WzTLzY3qlxDhxYQQ20FQ
2572                                  97S+LKUTpQcq27R7AT3/V5hRQxScINqwcz4jYqZD2fQ
2573                                  dgxbcDTClU0CRBdiieyLMNzXG3";
2576 trusted-keys {
2577         /* Key for our organization's forward zone */
2578         example.com. 257 3 5 "AwEAAaxPMcR2x0HbQV4WeZB6oEDX+r0QM6
2579                               5KbhTjrW1ZaARmPhEZZe3Y9ifgEuq7vZ/z
2580                               GZUdEGNWy+JZzus0lUptwgjGwhUS1558Hb
2581                               4JKUbbOTcM8pwXlj0EiX3oDFVmjHO444gL
2582                               kBOUKUf/mC7HvfwYH/Be22GnClrinKJp1O
2583                               g4ywzO9WglMk7jbfW33gUKvirTHr25GL7S
2584                               TQUzBb5Usxt8lgnyTUHs1t3JwCY5hKZ6Cq
2585                               FxmAVZP20igTixin/1LcrgX/KMEGd/biuv
2586                               F4qJCyduieHukuY3H4XMAcR+xia2nIUPvm
2587                               /oyWR8BW/hWdzOvnSCThlHf3xiYleDbt/o
2588                               1OTQ09A0=";
2590         /* Key for our reverse zone. */
2591         2.0.192.IN-ADDRPA.NET. 257 3 5 "AQOnS4xn/IgOUpBPJ3bogzwc
2592                                        xOdNax071L18QqZnQQQAVVr+i
2593                                        LhGTnNGp3HoWQLUIzKrJVZ3zg
2594                                        gy3WwNT6kZo6c0tszYqbtvchm
2595                                        gQC8CzKojM/W16i6MG/eafGU3
2596                                        siaOdS0yOI6BgPsw+YZdzlYMa
2597                                        IJGf4M4dyoKIhzdZyQ2bYQrjy
2598                                        Q4LB0lC7aOnsMyYKHHYeRvPxj
2599                                        IQXmdqgOJGq+vsevG06zW+1xg
2600                                        YJh9rCIfnm1GX/KMgxLPG2vXT
2601                                        D/RnLX+D3T3UL7HJYHJhAZD5L
2602                                        59VvjSPsZJHeDCUyWYrvPZesZ
2603                                        DIRvhDD52SKvbheeTJUm6Ehkz
2604                                        ytNN2SN96QRk8j/iI8ib";
2607 options {
2608         ...
2609         dnssec-enable yes;
2610         dnssec-validation yes;
2612 </programlisting>
2614         <note>
2615           None of the keys listed in this example are valid.  In particular,
2616           the root key is not valid.
2617         </note>
2619         <para>
2620           When DNSSEC validation is enabled and properly configured,
2621           the resolver will reject any answers from signed, secure zones
2622           which fail to validate, and will return SERVFAIL to the client.
2623         </para>
2625         <para>
2626           Responses may fail to validate for any of several reasons,
2627           including missing, expired, or invalid signatures, a key which
2628           does not match the DS RRset in the parent zone, or an insecure
2629           response from a zone which, according to its parent, should have
2630           been secure.  
2631         </para>
2633         <note>
2634           <para>
2635             When the validator receives a response from an unsigned zone
2636             that has a signed parent, it must confirm with the parent
2637             that the zone was intentionally left unsigned.  It does
2638             this by verifying, via signed and validated NSEC/NSEC3 records,
2639             that the parent zone contains no DS records for the child.
2640           </para>
2641           <para>
2642             If the validator <emphasis>can</emphasis> prove that the zone
2643             is insecure, then the response is accepted.  However, if it
2644             cannot, then it must assume an insecure response to be a
2645             forgery; it rejects the response and logs an error.
2646           </para>
2647           <para>
2648             The logged error reads "insecurity proof failed" and
2649             "got insecure response; parent indicates it should be secure".
2650             (Prior to BIND 9.7, the logged error was "not insecure".
2651             This referred to the zone, not the response.)
2652           </para>
2653         </note>
2654       </sect2>
2656     </sect1>
2657     <sect1>
2658       <title>IPv6 Support in <acronym>BIND</acronym> 9</title>
2660       <para>
2661         <acronym>BIND</acronym> 9 fully supports all currently
2662         defined forms of IPv6 name to address and address to name
2663         lookups.  It will also use IPv6 addresses to make queries when
2664         running on an IPv6 capable system.
2665       </para>
2667       <para>
2668         For forward lookups, <acronym>BIND</acronym> 9 supports
2669         only AAAA records.  RFC 3363 deprecated the use of A6 records,
2670         and client-side support for A6 records was accordingly removed
2671         from <acronym>BIND</acronym> 9.
2672         However, authoritative <acronym>BIND</acronym> 9 name servers still
2673         load zone files containing A6 records correctly, answer queries
2674         for A6 records, and accept zone transfer for a zone containing A6
2675         records.
2676       </para>
2678       <para>
2679         For IPv6 reverse lookups, <acronym>BIND</acronym> 9 supports
2680         the traditional "nibble" format used in the
2681         <emphasis>ip6.arpa</emphasis> domain, as well as the older, deprecated
2682         <emphasis>ip6.int</emphasis> domain.
2683         Older versions of <acronym>BIND</acronym> 9 
2684         supported the "binary label" (also known as "bitstring") format,
2685         but support of binary labels has been completely removed per
2686         RFC 3363.
2687         Many applications in <acronym>BIND</acronym> 9 do not understand
2688         the binary label format at all any more, and will return an
2689         error if given.
2690         In particular, an authoritative <acronym>BIND</acronym> 9
2691         name server will not load a zone file containing binary labels.
2692       </para>
2694       <para>
2695         For an overview of the format and structure of IPv6 addresses,
2696         see <xref linkend="ipv6addresses"/>.
2697       </para>
2699       <sect2>
2700         <title>Address Lookups Using AAAA Records</title>
2702         <para>
2703           The IPv6 AAAA record is a parallel to the IPv4 A record,
2704           and, unlike the deprecated A6 record, specifies the entire
2705           IPv6 address in a single record.  For example,
2706         </para>
2708 <programlisting>
2709 $ORIGIN example.com.
2710 host            3600    IN      AAAA    2001:db8::1
2711 </programlisting>
2713         <para>
2714           Use of IPv4-in-IPv6 mapped addresses is not recommended.
2715           If a host has an IPv4 address, use an A record, not
2716           a AAAA, with <literal>::ffff:192.168.42.1</literal> as
2717           the address.
2718         </para>
2719       </sect2>
2720       <sect2>
2721         <title>Address to Name Lookups Using Nibble Format</title>
2723         <para>
2724           When looking up an address in nibble format, the address
2725           components are simply reversed, just as in IPv4, and
2726           <literal>ip6.arpa.</literal> is appended to the
2727           resulting name.
2728           For example, the following would provide reverse name lookup for
2729           a host with address
2730           <literal>2001:db8::1</literal>.
2731         </para>
2733 <programlisting>
2734 $ORIGIN 0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.
2735 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0  14400   IN    PTR    (
2736                                     host.example.com. )
2737 </programlisting>
2739       </sect2>
2740     </sect1>
2741   </chapter>
2743   <chapter id="Bv9ARM.ch05">
2744     <title>The <acronym>BIND</acronym> 9 Lightweight Resolver</title>
2745     <sect1>
2746       <title>The Lightweight Resolver Library</title>
2747       <para>
2748         Traditionally applications have been linked with a stub resolver
2749         library that sends recursive DNS queries to a local caching name
2750         server.
2751       </para>
2752       <para>
2753         IPv6 once introduced new complexity into the resolution process,
2754         such as following A6 chains and DNAME records, and simultaneous
2755         lookup of IPv4 and IPv6 addresses.  Though most of the complexity was
2756         then removed, these are hard or impossible
2757         to implement in a traditional stub resolver.
2758       </para>
2759       <para>
2760         <acronym>BIND</acronym> 9 therefore can also provide resolution
2761         services to local clients
2762         using a combination of a lightweight resolver library and a resolver
2763         daemon process running on the local host.  These communicate using
2764         a simple UDP-based protocol, the "lightweight resolver protocol"
2765         that is distinct from and simpler than the full DNS protocol.
2766       </para>
2767     </sect1>
2768     <sect1 id="lwresd">
2769       <title>Running a Resolver Daemon</title>
2771       <para>
2772         To use the lightweight resolver interface, the system must
2773         run the resolver daemon <command>lwresd</command> or a
2774         local
2775         name server configured with a <command>lwres</command>
2776         statement.
2777       </para>
2779       <para>
2780         By default, applications using the lightweight resolver library will
2781         make
2782         UDP requests to the IPv4 loopback address (127.0.0.1) on port 921.
2783         The
2784         address can be overridden by <command>lwserver</command>
2785         lines in
2786         <filename>/etc/resolv.conf</filename>.
2787       </para>
2789       <para>
2790         The daemon currently only looks in the DNS, but in the future
2791         it may use other sources such as <filename>/etc/hosts</filename>,
2792         NIS, etc.
2793       </para>
2795       <para>
2796         The <command>lwresd</command> daemon is essentially a
2797         caching-only name server that responds to requests using the
2798         lightweight
2799         resolver protocol rather than the DNS protocol.  Because it needs
2800         to run on each host, it is designed to require no or minimal
2801         configuration.
2802         Unless configured otherwise, it uses the name servers listed on
2803         <command>nameserver</command> lines in <filename>/etc/resolv.conf</filename>
2804         as forwarders, but is also capable of doing the resolution
2805         autonomously if
2806         none are specified.
2807       </para>
2808       <para>
2809         The <command>lwresd</command> daemon may also be
2810         configured with a
2811         <filename>named.conf</filename> style configuration file,
2812         in
2813         <filename>/etc/lwresd.conf</filename> by default.  A name
2814         server may also
2815         be configured to act as a lightweight resolver daemon using the
2816         <command>lwres</command> statement in <filename>named.conf</filename>.
2817       </para>
2819     </sect1>
2820   </chapter>
2822   <chapter id="Bv9ARM.ch06">
2823     <title><acronym>BIND</acronym> 9 Configuration Reference</title>
2825     <para>
2826       <acronym>BIND</acronym> 9 configuration is broadly similar
2827       to <acronym>BIND</acronym> 8; however, there are a few new
2828       areas
2829       of configuration, such as views. <acronym>BIND</acronym>
2830       8 configuration files should work with few alterations in <acronym>BIND</acronym>
2831       9, although more complex configurations should be reviewed to check
2832       if they can be more efficiently implemented using the new features
2833       found in <acronym>BIND</acronym> 9.
2834     </para>
2836     <para>
2837       <acronym>BIND</acronym> 4 configuration files can be
2838       converted to the new format
2839       using the shell script
2840       <filename>contrib/named-bootconf/named-bootconf.sh</filename>.
2841     </para>
2842     <sect1 id="configuration_file_elements">
2843       <title>Configuration File Elements</title>
2844       <para>
2845         Following is a list of elements used throughout the <acronym>BIND</acronym> configuration
2846         file documentation:
2847       </para>
2848       <informaltable colsep="0" rowsep="0">
2849         <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="2Level-table">
2850           <colspec colname="1" colnum="1" colsep="0" colwidth="1.855in"/>
2851           <colspec colname="2" colnum="2" colsep="0" colwidth="3.770in"/>
2852           <tbody>
2853             <row rowsep="0">
2854               <entry colname="1">
2855                 <para>
2856                   <varname>acl_name</varname>
2857                 </para>
2858               </entry>
2859               <entry colname="2">
2860                 <para>
2861                   The name of an <varname>address_match_list</varname> as
2862                   defined by the <command>acl</command> statement.
2863                 </para>
2864               </entry>
2865             </row>
2866             <row rowsep="0">
2867               <entry colname="1">
2868                 <para>
2869                   <varname>address_match_list</varname>
2870                 </para>
2871               </entry>
2872               <entry colname="2">
2873                 <para>
2874                   A list of one or more
2875                   <varname>ip_addr</varname>,
2876                   <varname>ip_prefix</varname>, <varname>key_id</varname>,
2877                   or <varname>acl_name</varname> elements, see
2878                   <xref linkend="address_match_lists"/>.
2879                 </para>
2880               </entry>
2881             </row>
2882             <row rowsep="0">
2883               <entry colname="1">
2884                 <para>
2885                   <varname>masters_list</varname>
2886                 </para>
2887               </entry>
2888               <entry colname="2">
2889                 <para>
2890                   A named list of one or more <varname>ip_addr</varname>
2891                   with optional <varname>key_id</varname> and/or
2892                   <varname>ip_port</varname>.
2893                   A <varname>masters_list</varname> may include other
2894                   <varname>masters_lists</varname>.
2895                 </para>
2896               </entry>
2897             </row>
2898             <row rowsep="0">
2899               <entry colname="1">
2900                 <para>
2901                   <varname>domain_name</varname>
2902                 </para>
2903               </entry>
2904               <entry colname="2">
2905                 <para>
2906                   A quoted string which will be used as
2907                   a DNS name, for example "<literal>my.test.domain</literal>".
2908                 </para>
2909               </entry>
2910             </row>
2911             <row rowsep="0">
2912               <entry colname="1">
2913                 <para>
2914                   <varname>namelist</varname>
2915                 </para>
2916               </entry>
2917               <entry colname="2">
2918                 <para>
2919                   A list of one or more <varname>domain_name</varname>
2920                   elements.
2921                 </para>
2922               </entry>
2923             </row>
2924             <row rowsep="0">
2925               <entry colname="1">
2926                 <para>
2927                   <varname>dotted_decimal</varname>
2928                 </para>
2929               </entry>
2930               <entry colname="2">
2931                 <para>
2932                   One to four integers valued 0 through
2933                   255 separated by dots (`.'), such as <command>123</command>,
2934                   <command>45.67</command> or <command>89.123.45.67</command>.
2935                 </para>
2936               </entry>
2937             </row>
2938             <row rowsep="0">
2939               <entry colname="1">
2940                 <para>
2941                   <varname>ip4_addr</varname>
2942                 </para>
2943               </entry>
2944               <entry colname="2">
2945                 <para>
2946                   An IPv4 address with exactly four elements
2947                   in <varname>dotted_decimal</varname> notation.
2948                 </para>
2949               </entry>
2950             </row>
2951             <row rowsep="0">
2952               <entry colname="1">
2953                 <para>
2954                   <varname>ip6_addr</varname>
2955                 </para>
2956               </entry>
2957               <entry colname="2">
2958                 <para>
2959                   An IPv6 address, such as <command>2001:db8::1234</command>.
2960                   IPv6 scoped addresses that have ambiguity on their
2961                   scope zones must be disambiguated by an appropriate
2962                   zone ID with the percent character (`%') as
2963                   delimiter.  It is strongly recommended to use
2964                   string zone names rather than numeric identifiers,
2965                   in order to be robust against system configuration
2966                   changes.  However, since there is no standard
2967                   mapping for such names and identifier values,
2968                   currently only interface names as link identifiers
2969                   are supported, assuming one-to-one mapping between
2970                   interfaces and links.  For example, a link-local
2971                   address <command>fe80::1</command> on the link
2972                   attached to the interface <command>ne0</command>
2973                   can be specified as <command>fe80::1%ne0</command>.
2974                   Note that on most systems link-local addresses
2975                   always have the ambiguity, and need to be
2976                   disambiguated.
2977                 </para>
2978               </entry>
2979             </row>
2980             <row rowsep="0">
2981               <entry colname="1">
2982                 <para>
2983                   <varname>ip_addr</varname>
2984                 </para>
2985               </entry>
2986               <entry colname="2">
2987                 <para>
2988                   An <varname>ip4_addr</varname> or <varname>ip6_addr</varname>.
2989                 </para>
2990               </entry>
2991             </row>
2992             <row rowsep="0">
2993               <entry colname="1">
2994                 <para>
2995                   <varname>ip_port</varname>
2996                 </para>
2997               </entry>
2998               <entry colname="2">
2999                 <para>
3000                   An IP port <varname>number</varname>.
3001                   The <varname>number</varname> is limited to 0
3002                   through 65535, with values
3003                   below 1024 typically restricted to use by processes running
3004                   as root.
3005                   In some cases, an asterisk (`*') character can be used as a
3006                   placeholder to
3007                   select a random high-numbered port.
3008                 </para>
3009               </entry>
3010             </row>
3011             <row rowsep="0">
3012               <entry colname="1">
3013                 <para>
3014                   <varname>ip_prefix</varname>
3015                 </para>
3016               </entry>
3017               <entry colname="2">
3018                 <para>
3019                   An IP network specified as an <varname>ip_addr</varname>,
3020                   followed by a slash (`/') and then the number of bits in the
3021                   netmask.
3022                   Trailing zeros in a <varname>ip_addr</varname>
3023                   may omitted.
3024                   For example, <command>127/8</command> is the
3025                   network <command>127.0.0.0</command> with
3026                   netmask <command>255.0.0.0</command> and <command>1.2.3.0/28</command> is
3027                   network <command>1.2.3.0</command> with netmask <command>255.255.255.240</command>.
3028                 </para>
3029                 <para>
3030                   When specifying a prefix involving a IPv6 scoped address
3031                   the scope may be omitted.  In that case the prefix will
3032                   match packets from any scope.
3033                 </para>
3034               </entry>
3035             </row>
3036             <row rowsep="0">
3037               <entry colname="1">
3038                 <para>
3039                   <varname>key_id</varname>
3040                 </para>
3041               </entry>
3042               <entry colname="2">
3043                 <para>
3044                   A <varname>domain_name</varname> representing
3045                   the name of a shared key, to be used for transaction
3046                   security.
3047                 </para>
3048               </entry>
3049             </row>
3050             <row rowsep="0">
3051               <entry colname="1">
3052                 <para>
3053                   <varname>key_list</varname>
3054                 </para>
3055               </entry>
3056               <entry colname="2">
3057                 <para>
3058                   A list of one or more
3059                   <varname>key_id</varname>s,
3060                   separated by semicolons and ending with a semicolon.
3061                 </para>
3062               </entry>
3063             </row>
3064             <row rowsep="0">
3065               <entry colname="1">
3066                 <para>
3067                   <varname>number</varname>
3068                 </para>
3069               </entry>
3070               <entry colname="2">
3071                 <para>
3072                   A non-negative 32-bit integer
3073                   (i.e., a number between 0 and 4294967295, inclusive).
3074                   Its acceptable value might further
3075                   be limited by the context in which it is used.
3076                 </para>
3077               </entry>
3078             </row>
3079             <row rowsep="0">
3080               <entry colname="1">
3081                 <para>
3082                   <varname>path_name</varname>
3083                 </para>
3084               </entry>
3085               <entry colname="2">
3086                 <para>
3087                   A quoted string which will be used as
3088                   a pathname, such as <filename>zones/master/my.test.domain</filename>.
3089                 </para>
3090               </entry>
3091             </row>
3092             <row rowsep="0">
3093               <entry colname="1">
3094                 <para>
3095                   <varname>port_list</varname>
3096                 </para>
3097               </entry>
3098               <entry colname="2">
3099                 <para>
3100                   A list of an <varname>ip_port</varname> or a port
3101                   range.
3102                   A port range is specified in the form of
3103                   <userinput>range</userinput> followed by
3104                   two <varname>ip_port</varname>s,
3105                   <varname>port_low</varname> and
3106                   <varname>port_high</varname>, which represents
3107                   port numbers from <varname>port_low</varname> through
3108                   <varname>port_high</varname>, inclusive.
3109                   <varname>port_low</varname> must not be larger than
3110                   <varname>port_high</varname>.
3111                   For example,
3112                   <userinput>range 1024 65535</userinput> represents
3113                   ports from 1024 through 65535.
3114                   In either case an asterisk (`*') character is not
3115                   allowed as a valid <varname>ip_port</varname>.
3116                 </para>
3117               </entry>
3118             </row>
3119             <row rowsep="0">
3120               <entry colname="1">
3121                 <para>
3122                   <varname>size_spec</varname>
3123                 </para>
3124               </entry>
3125               <entry colname="2">
3126                 <para>
3127                   A number, the word <userinput>unlimited</userinput>,
3128                   or the word <userinput>default</userinput>.
3129                 </para>
3130                 <para>
3131                   An <varname>unlimited</varname> <varname>size_spec</varname> requests unlimited
3132                   use, or the maximum available amount. A <varname>default size_spec</varname> uses
3133                   the limit that was in force when the server was started.
3134                 </para>
3135                 <para>
3136                   A <varname>number</varname> can optionally be
3137                   followed by a scaling factor:
3138                   <userinput>K</userinput> or <userinput>k</userinput>
3139                   for kilobytes,
3140                   <userinput>M</userinput> or <userinput>m</userinput>
3141                   for megabytes, and
3142                   <userinput>G</userinput> or <userinput>g</userinput> for gigabytes,
3143                   which scale by 1024, 1024*1024, and 1024*1024*1024
3144                   respectively.
3145                 </para>
3146                 <para>
3147                   The value must be representable as a 64-bit unsigned integer
3148                   (0 to 18446744073709551615, inclusive).
3149                   Using <varname>unlimited</varname> is the best
3150                   way
3151                   to safely set a really large number.
3152                 </para>
3153               </entry>
3154             </row>
3155             <row rowsep="0">
3156               <entry colname="1">
3157                 <para>
3158                   <varname>yes_or_no</varname>
3159                 </para>
3160               </entry>
3161               <entry colname="2">
3162                 <para>
3163                   Either <userinput>yes</userinput> or <userinput>no</userinput>.
3164                   The words <userinput>true</userinput> and <userinput>false</userinput> are
3165                   also accepted, as are the numbers <userinput>1</userinput>
3166                   and <userinput>0</userinput>.
3167                 </para>
3168               </entry>
3169             </row>
3170             <row rowsep="0">
3171               <entry colname="1">
3172                 <para>
3173                   <varname>dialup_option</varname>
3174                 </para>
3175               </entry>
3176               <entry colname="2">
3177                 <para>
3178                   One of <userinput>yes</userinput>,
3179                   <userinput>no</userinput>, <userinput>notify</userinput>,
3180                   <userinput>notify-passive</userinput>, <userinput>refresh</userinput> or
3181                   <userinput>passive</userinput>.
3182                   When used in a zone, <userinput>notify-passive</userinput>,
3183                   <userinput>refresh</userinput>, and <userinput>passive</userinput>
3184                   are restricted to slave and stub zones.
3185                 </para>
3186               </entry>
3187             </row>
3188           </tbody>
3189         </tgroup>
3190       </informaltable>
3191       <sect2 id="address_match_lists">
3192         <title>Address Match Lists</title>
3193         <sect3>
3194           <title>Syntax</title>
3196 <programlisting><varname>address_match_list</varname> = address_match_list_element ;
3197   <optional> address_match_list_element; ... </optional>
3198 <varname>address_match_list_element</varname> = <optional> ! </optional> (ip_address <optional>/length</optional> |
3199    key key_id | acl_name | { address_match_list } )
3200 </programlisting>
3202         </sect3>
3203         <sect3>
3204           <title>Definition and Usage</title>
3205           <para>
3206             Address match lists are primarily used to determine access
3207             control for various server operations. They are also used in
3208             the <command>listen-on</command> and <command>sortlist</command>
3209             statements. The elements which constitute an address match
3210             list can be any of the following:
3211           </para>
3212           <itemizedlist>
3213             <listitem>
3214               <simpara>an IP address (IPv4 or IPv6)</simpara>
3215             </listitem>
3216             <listitem>
3217               <simpara>an IP prefix (in `/' notation)</simpara>
3218             </listitem>
3219             <listitem>
3220               <simpara>
3221                 a key ID, as defined by the <command>key</command>
3222                 statement
3223               </simpara>
3224             </listitem>
3225             <listitem>
3226               <simpara>the name of an address match list defined with
3227                 the <command>acl</command> statement
3228               </simpara>
3229             </listitem>
3230             <listitem>
3231               <simpara>a nested address match list enclosed in braces</simpara>
3232             </listitem>
3233           </itemizedlist>
3235           <para>
3236             Elements can be negated with a leading exclamation mark (`!'),
3237             and the match list names "any", "none", "localhost", and
3238             "localnets" are predefined. More information on those names
3239             can be found in the description of the acl statement.
3240           </para>
3242           <para>
3243             The addition of the key clause made the name of this syntactic
3244             element something of a misnomer, since security keys can be used
3245             to validate access without regard to a host or network address.
3246             Nonetheless, the term "address match list" is still used
3247             throughout the documentation.
3248           </para>
3250           <para>
3251             When a given IP address or prefix is compared to an address
3252             match list, the comparison takes place in approximately O(1)
3253             time.  However, key comparisons require that the list of keys
3254             be traversed until a matching key is found, and therefore may
3255             be somewhat slower.
3256           </para>
3258           <para>
3259             The interpretation of a match depends on whether the list is being
3260             used for access control, defining <command>listen-on</command> ports, or in a
3261             <command>sortlist</command>, and whether the element was negated.
3262           </para>
3264           <para>
3265             When used as an access control list, a non-negated match
3266             allows access and a negated match denies access. If
3267             there is no match, access is denied. The clauses
3268             <command>allow-notify</command>,
3269             <command>allow-recursion</command>,
3270             <command>allow-recursion-on</command>,
3271             <command>allow-query</command>,
3272             <command>allow-query-on</command>,
3273             <command>allow-query-cache</command>,
3274             <command>allow-query-cache-on</command>,
3275             <command>allow-transfer</command>,
3276             <command>allow-update</command>,
3277             <command>allow-update-forwarding</command>, and
3278             <command>blackhole</command> all use address match
3279             lists.  Similarly, the <command>listen-on</command> option will cause the
3280             server to refuse queries on any of the machine's
3281             addresses which do not match the list.
3282           </para>
3284           <para>
3285             Order of insertion is significant.  If more than one element
3286             in an ACL is found to match a given IP address or prefix,
3287             preference will be given to the one that came
3288             <emphasis>first</emphasis> in the ACL definition.
3289             Because of this first-match behavior, an element that
3290             defines a subset of another element in the list should
3291             come before the broader element, regardless of whether
3292             either is negated. For example, in
3293             <command>1.2.3/24; ! 1.2.3.13;</command>
3294             the 1.2.3.13 element is completely useless because the
3295             algorithm will match any lookup for 1.2.3.13 to the 1.2.3/24
3296             element.  Using <command>! 1.2.3.13; 1.2.3/24</command> fixes
3297             that problem by having 1.2.3.13 blocked by the negation, but
3298             all other 1.2.3.* hosts fall through.
3299           </para>
3300         </sect3>
3301       </sect2>
3303       <sect2>
3304         <title>Comment Syntax</title>
3306         <para>
3307           The <acronym>BIND</acronym> 9 comment syntax allows for
3308           comments to appear
3309           anywhere that whitespace may appear in a <acronym>BIND</acronym> configuration
3310           file. To appeal to programmers of all kinds, they can be written
3311           in the C, C++, or shell/perl style.
3312         </para>
3314         <sect3>
3315           <title>Syntax</title>
3317           <para>
3318             <programlisting>/* This is a <acronym>BIND</acronym> comment as in C */</programlisting>
3319             <programlisting>// This is a <acronym>BIND</acronym> comment as in C++</programlisting>
3320             <programlisting># This is a <acronym>BIND</acronym> comment as in common UNIX shells
3321 # and perl</programlisting>
3322           </para>
3323         </sect3>
3324         <sect3>
3325           <title>Definition and Usage</title>
3326           <para>
3327             Comments may appear anywhere that whitespace may appear in
3328             a <acronym>BIND</acronym> configuration file.
3329           </para>
3330           <para>
3331             C-style comments start with the two characters /* (slash,
3332             star) and end with */ (star, slash). Because they are completely
3333             delimited with these characters, they can be used to comment only
3334             a portion of a line or to span multiple lines.
3335           </para>
3336           <para>
3337             C-style comments cannot be nested. For example, the following
3338             is not valid because the entire comment ends with the first */:
3339           </para>
3340           <para>
3342 <programlisting>/* This is the start of a comment.
3343    This is still part of the comment.
3344 /* This is an incorrect attempt at nesting a comment. */
3345    This is no longer in any comment. */
3346 </programlisting>
3348           </para>
3350           <para>
3351             C++-style comments start with the two characters // (slash,
3352             slash) and continue to the end of the physical line. They cannot
3353             be continued across multiple physical lines; to have one logical
3354             comment span multiple lines, each line must use the // pair.
3355             For example:
3356           </para>
3357           <para>
3359 <programlisting>// This is the start of a comment.  The next line
3360 // is a new comment, even though it is logically
3361 // part of the previous comment.
3362 </programlisting>
3364           </para>
3365           <para>
3366             Shell-style (or perl-style, if you prefer) comments start
3367             with the character <literal>#</literal> (number sign)
3368             and continue to the end of the
3369             physical line, as in C++ comments.
3370             For example:
3371           </para>
3373           <para>
3375 <programlisting># This is the start of a comment.  The next line
3376 # is a new comment, even though it is logically
3377 # part of the previous comment.
3378 </programlisting>
3380           </para>
3382           <warning>
3383             <para>
3384               You cannot use the semicolon (`;') character
3385               to start a comment such as you would in a zone file. The
3386               semicolon indicates the end of a configuration
3387               statement.
3388             </para>
3389           </warning>
3390         </sect3>
3391       </sect2>
3392     </sect1>
3394     <sect1 id="Configuration_File_Grammar">
3395       <title>Configuration File Grammar</title>
3397       <para>
3398         A <acronym>BIND</acronym> 9 configuration consists of
3399         statements and comments.
3400         Statements end with a semicolon. Statements and comments are the
3401         only elements that can appear without enclosing braces. Many
3402         statements contain a block of sub-statements, which are also
3403         terminated with a semicolon.
3404       </para>
3406       <para>
3407         The following statements are supported:
3408       </para>
3410       <informaltable colsep="0" rowsep="0">
3411         <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="2Level-table">
3412           <colspec colname="1" colnum="1" colsep="0" colwidth="1.336in"/>
3413           <colspec colname="2" colnum="2" colsep="0" colwidth="3.778in"/>
3414           <tbody>
3415             <row rowsep="0">
3416               <entry colname="1">
3417                 <para><command>acl</command></para>
3418               </entry>
3419               <entry colname="2">
3420                 <para>
3421                   defines a named IP address
3422                   matching list, for access control and other uses.
3423                 </para>
3424               </entry>
3425             </row>
3426             <row rowsep="0">
3427               <entry colname="1">
3428                 <para><command>controls</command></para>
3429               </entry>
3430               <entry colname="2">
3431                 <para>
3432                   declares control channels to be used
3433                   by the <command>rndc</command> utility.
3434                 </para>
3435               </entry>
3436             </row>
3437             <row rowsep="0">
3438               <entry colname="1">
3439                 <para><command>include</command></para>
3440               </entry>
3441               <entry colname="2">
3442                 <para>
3443                   includes a file.
3444                 </para>
3445               </entry>
3446             </row>
3447             <row rowsep="0">
3448               <entry colname="1">
3449                 <para><command>key</command></para>
3450               </entry>
3451               <entry colname="2">
3452                 <para>
3453                   specifies key information for use in
3454                   authentication and authorization using TSIG.
3455                 </para>
3456               </entry>
3457             </row>
3458             <row rowsep="0">
3459               <entry colname="1">
3460                 <para><command>logging</command></para>
3461               </entry>
3462               <entry colname="2">
3463                 <para>
3464                   specifies what the server logs, and where
3465                   the log messages are sent.
3466                 </para>
3467               </entry>
3468             </row>
3469             <row rowsep="0">
3470               <entry colname="1">
3471                 <para><command>lwres</command></para>
3472               </entry>
3473               <entry colname="2">
3474                 <para>
3475                   configures <command>named</command> to
3476                   also act as a light-weight resolver daemon (<command>lwresd</command>).
3477                 </para>
3478               </entry>
3479             </row>
3480             <row rowsep="0">
3481               <entry colname="1">
3482                 <para><command>masters</command></para>
3483               </entry>
3484               <entry colname="2">
3485                 <para>
3486                   defines a named masters list for
3487                   inclusion in stub and slave zone masters clauses.
3488                 </para>
3489               </entry>
3490             </row>
3491             <row rowsep="0">
3492               <entry colname="1">
3493                 <para><command>options</command></para>
3494               </entry>
3495               <entry colname="2">
3496                 <para>
3497                   controls global server configuration
3498                   options and sets defaults for other statements.
3499                 </para>
3500               </entry>
3501             </row>
3502             <row rowsep="0">
3503               <entry colname="1">
3504                 <para><command>server</command></para>
3505               </entry>
3506               <entry colname="2">
3507                 <para>
3508                   sets certain configuration options on
3509                   a per-server basis.
3510                 </para>
3511               </entry>
3512             </row>
3513             <row rowsep="0">
3514               <entry colname="1">
3515                 <para><command>statistics-channels</command></para>
3516               </entry>
3517               <entry colname="2">
3518                 <para>
3519                   declares communication channels to get access to
3520                   <command>named</command> statistics.
3521                 </para>
3522               </entry>
3523             </row>
3524             <row rowsep="0">
3525               <entry colname="1">
3526                 <para><command>trusted-keys</command></para>
3527               </entry>
3528               <entry colname="2">
3529                 <para>
3530                   defines trusted DNSSEC keys.
3531                 </para>
3532               </entry>
3533             </row>
3534             <row rowsep="0">
3535               <entry colname="1">
3536                 <para><command>managed-keys</command></para>
3537               </entry>
3538               <entry colname="2">
3539                 <para>
3540                   lists DNSSEC keys to be kept up to date
3541                   using RFC 5011 trust anchor maintenance.
3542                 </para>
3543               </entry>
3544             </row>
3545             <row rowsep="0">
3546               <entry colname="1">
3547                 <para><command>view</command></para>
3548               </entry>
3549               <entry colname="2">
3550                 <para>
3551                   defines a view.
3552                 </para>
3553               </entry>
3554             </row>
3555             <row rowsep="0">
3556               <entry colname="1">
3557                 <para><command>zone</command></para>
3558               </entry>
3559               <entry colname="2">
3560                 <para>
3561                   defines a zone.
3562                 </para>
3563               </entry>
3564             </row>
3565           </tbody>
3566         </tgroup>
3567       </informaltable>
3569       <para>
3570         The <command>logging</command> and
3571         <command>options</command> statements may only occur once
3572         per
3573         configuration.
3574       </para>
3576       <sect2>
3577         <title><command>acl</command> Statement Grammar</title>
3579 <programlisting><command>acl</command> acl-name {
3580     address_match_list
3582 </programlisting>
3584       </sect2>
3585       <sect2 id="acl">
3586         <title><command>acl</command> Statement Definition and
3587           Usage</title>
3589         <para>
3590           The <command>acl</command> statement assigns a symbolic
3591           name to an address match list. It gets its name from a primary
3592           use of address match lists: Access Control Lists (ACLs).
3593         </para>
3595         <para>
3596           Note that an address match list's name must be defined
3597           with <command>acl</command> before it can be used
3598           elsewhere; no forward references are allowed.
3599         </para>
3601         <para>
3602           The following ACLs are built-in:
3603         </para>
3605         <informaltable colsep="0" rowsep="0">
3606           <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
3607             <colspec colname="1" colnum="1" colsep="0" colwidth="1.130in"/>
3608             <colspec colname="2" colnum="2" colsep="0" colwidth="4.000in"/>
3609             <tbody>
3610               <row rowsep="0">
3611                 <entry colname="1">
3612                   <para><command>any</command></para>
3613                 </entry>
3614                 <entry colname="2">
3615                   <para>
3616                     Matches all hosts.
3617                   </para>
3618                 </entry>
3619               </row>
3620               <row rowsep="0">
3621                 <entry colname="1">
3622                   <para><command>none</command></para>
3623                 </entry>
3624                 <entry colname="2">
3625                   <para>
3626                     Matches no hosts.
3627                   </para>
3628                 </entry>
3629               </row>
3630               <row rowsep="0">
3631                 <entry colname="1">
3632                   <para><command>localhost</command></para>
3633                 </entry>
3634                 <entry colname="2">
3635                   <para>
3636                     Matches the IPv4 and IPv6 addresses of all network
3637                     interfaces on the system.
3638                   </para>
3639                 </entry>
3640               </row>
3641               <row rowsep="0">
3642                 <entry colname="1">
3643                   <para><command>localnets</command></para>
3644                 </entry>
3645                 <entry colname="2">
3646                   <para>
3647                     Matches any host on an IPv4 or IPv6 network
3648                     for which the system has an interface.
3649                     Some systems do not provide a way to determine the prefix
3650                     lengths of
3651                     local IPv6 addresses.
3652                     In such a case, <command>localnets</command>
3653                     only matches the local
3654                     IPv6 addresses, just like <command>localhost</command>.
3655                   </para>
3656                 </entry>
3657               </row>
3658             </tbody>
3659           </tgroup>
3660         </informaltable>
3662       </sect2>
3663       <sect2>
3664         <title><command>controls</command> Statement Grammar</title>
3666 <programlisting><command>controls</command> {
3667    [ inet ( ip_addr | * ) [ port ip_port ]
3668                 allow { <replaceable> address_match_list </replaceable> }
3669                 keys { <replaceable>key_list</replaceable> }; ]
3670    [ inet ...; ]
3671    [ unix <replaceable>path</replaceable> perm <replaceable>number</replaceable> owner <replaceable>number</replaceable> group <replaceable>number</replaceable>
3672      keys { <replaceable>key_list</replaceable> }; ]
3673    [ unix ...; ]
3675 </programlisting>
3677       </sect2>
3679       <sect2 id="controls_statement_definition_and_usage">
3680         <title><command>controls</command> Statement Definition and
3681           Usage</title>
3683         <para>
3684           The <command>controls</command> statement declares control
3685           channels to be used by system administrators to control the
3686           operation of the name server. These control channels are
3687           used by the <command>rndc</command> utility to send
3688           commands to and retrieve non-DNS results from a name server.
3689         </para>
3691         <para>
3692           An <command>inet</command> control channel is a TCP socket
3693           listening at the specified <command>ip_port</command> on the
3694           specified <command>ip_addr</command>, which can be an IPv4 or IPv6
3695           address.  An <command>ip_addr</command> of <literal>*</literal> (asterisk) is
3696           interpreted as the IPv4 wildcard address; connections will be
3697           accepted on any of the system's IPv4 addresses.
3698           To listen on the IPv6 wildcard address,
3699           use an <command>ip_addr</command> of <literal>::</literal>.
3700           If you will only use <command>rndc</command> on the local host,
3701           using the loopback address (<literal>127.0.0.1</literal>
3702           or <literal>::1</literal>) is recommended for maximum security.
3703         </para>
3705         <para>
3706           If no port is specified, port 953 is used. The asterisk
3707           "<literal>*</literal>" cannot be used for <command>ip_port</command>.
3708         </para>
3710         <para>
3711           The ability to issue commands over the control channel is
3712           restricted by the <command>allow</command> and
3713           <command>keys</command> clauses.
3714           Connections to the control channel are permitted based on the
3715           <command>address_match_list</command>.  This is for simple
3716           IP address based filtering only; any <command>key_id</command>
3717           elements of the <command>address_match_list</command>
3718           are ignored.
3719         </para>
3721         <para>
3722           A <command>unix</command> control channel is a UNIX domain
3723           socket listening at the specified path in the file system.
3724           Access to the socket is specified by the <command>perm</command>,
3725           <command>owner</command> and <command>group</command> clauses.
3726           Note on some platforms (SunOS and Solaris) the permissions
3727           (<command>perm</command>) are applied to the parent directory
3728           as the permissions on the socket itself are ignored.
3729         </para>
3731         <para>
3732           The primary authorization mechanism of the command
3733           channel is the <command>key_list</command>, which
3734           contains a list of <command>key_id</command>s.
3735           Each <command>key_id</command> in the <command>key_list</command>
3736           is authorized to execute commands over the control channel.
3737           See <xref linkend="rndc"/> in <xref linkend="admin_tools"/>)
3738           for information about configuring keys in <command>rndc</command>.
3739         </para>
3741         <para>
3742           If no <command>controls</command> statement is present,
3743           <command>named</command> will set up a default
3744           control channel listening on the loopback address 127.0.0.1
3745           and its IPv6 counterpart ::1.
3746           In this case, and also when the <command>controls</command> statement
3747           is present but does not have a <command>keys</command> clause,
3748           <command>named</command> will attempt to load the command channel key
3749           from the file <filename>rndc.key</filename> in
3750           <filename>/etc</filename> (or whatever <varname>sysconfdir</varname>
3751           was specified as when <acronym>BIND</acronym> was built).
3752           To create a <filename>rndc.key</filename> file, run
3753           <userinput>rndc-confgen -a</userinput>.
3754         </para>
3756         <para>
3757           The <filename>rndc.key</filename> feature was created to
3758           ease the transition of systems from <acronym>BIND</acronym> 8,
3759           which did not have digital signatures on its command channel
3760           messages and thus did not have a <command>keys</command> clause.
3762           It makes it possible to use an existing <acronym>BIND</acronym> 8
3763           configuration file in <acronym>BIND</acronym> 9 unchanged,
3764           and still have <command>rndc</command> work the same way
3765           <command>ndc</command> worked in BIND 8, simply by executing the
3766           command <userinput>rndc-confgen -a</userinput> after BIND 9 is
3767           installed.
3768         </para>
3770         <para>
3771           Since the <filename>rndc.key</filename> feature
3772           is only intended to allow the backward-compatible usage of
3773           <acronym>BIND</acronym> 8 configuration files, this
3774           feature does not
3775           have a high degree of configurability.  You cannot easily change
3776           the key name or the size of the secret, so you should make a
3777           <filename>rndc.conf</filename> with your own key if you
3778           wish to change
3779           those things.  The <filename>rndc.key</filename> file
3780           also has its
3781           permissions set such that only the owner of the file (the user that
3782           <command>named</command> is running as) can access it.
3783           If you
3784           desire greater flexibility in allowing other users to access
3785           <command>rndc</command> commands, then you need to create
3786           a
3787           <filename>rndc.conf</filename> file and make it group
3788           readable by a group
3789           that contains the users who should have access.
3790         </para>
3792         <para>
3793           To disable the command channel, use an empty
3794           <command>controls</command> statement:
3795           <command>controls { };</command>.
3796         </para>
3798       </sect2>
3799       <sect2>
3800         <title><command>include</command> Statement Grammar</title>
3801         <programlisting><command>include</command> <replaceable>filename</replaceable>;</programlisting>
3802       </sect2>
3803       <sect2>
3804         <title><command>include</command> Statement Definition and
3805           Usage</title>
3807         <para>
3808           The <command>include</command> statement inserts the
3809           specified file at the point where the <command>include</command>
3810           statement is encountered. The <command>include</command>
3811                 statement facilitates the administration of configuration
3812           files
3813           by permitting the reading or writing of some things but not
3814           others. For example, the statement could include private keys
3815           that are readable only by the name server.
3816         </para>
3818       </sect2>
3819       <sect2>
3820         <title><command>key</command> Statement Grammar</title>
3822 <programlisting><command>key</command> <replaceable>key_id</replaceable> {
3823     algorithm <replaceable>string</replaceable>;
3824     secret <replaceable>string</replaceable>;
3826 </programlisting>
3828       </sect2>
3830       <sect2>
3831         <title><command>key</command> Statement Definition and Usage</title>
3833         <para>
3834           The <command>key</command> statement defines a shared
3835           secret key for use with TSIG (see <xref linkend="tsig"/>)
3836           or the command channel
3837           (see <xref linkend="controls_statement_definition_and_usage"/>).
3838         </para>
3840         <para>
3841           The <command>key</command> statement can occur at the
3842           top level
3843           of the configuration file or inside a <command>view</command>
3844           statement.  Keys defined in top-level <command>key</command>
3845           statements can be used in all views.  Keys intended for use in
3846           a <command>controls</command> statement
3847           (see <xref linkend="controls_statement_definition_and_usage"/>)
3848           must be defined at the top level.
3849         </para>
3851         <para>
3852           The <replaceable>key_id</replaceable>, also known as the
3853           key name, is a domain name uniquely identifying the key. It can
3854           be used in a <command>server</command>
3855           statement to cause requests sent to that
3856           server to be signed with this key, or in address match lists to
3857           verify that incoming requests have been signed with a key
3858           matching this name, algorithm, and secret.
3859         </para>
3861         <para>
3862           The <replaceable>algorithm_id</replaceable> is a string
3863           that specifies a security/authentication algorithm.  Named
3864           supports <literal>hmac-md5</literal>,
3865           <literal>hmac-sha1</literal>, <literal>hmac-sha224</literal>,
3866           <literal>hmac-sha256</literal>, <literal>hmac-sha384</literal>
3867           and <literal>hmac-sha512</literal> TSIG authentication.
3868           Truncated hashes are supported by appending the minimum
3869           number of required bits preceded by a dash, e.g.
3870           <literal>hmac-sha1-80</literal>.  The
3871           <replaceable>secret_string</replaceable> is the secret
3872           to be used by the algorithm, and is treated as a base-64
3873           encoded string.
3874         </para>
3876       </sect2>
3877       <sect2>
3878         <title><command>logging</command> Statement Grammar</title>
3880 <programlisting><command>logging</command> {
3881    [ <command>channel</command> <replaceable>channel_name</replaceable> {
3882      ( <command>file</command> <replaceable>path_name</replaceable>
3883          [ <command>versions</command> ( <replaceable>number</replaceable> | <command>unlimited</command> ) ]
3884          [ <command>size</command> <replaceable>size spec</replaceable> ]
3885        | <command>syslog</command> <replaceable>syslog_facility</replaceable>
3886        | <command>stderr</command>
3887        | <command>null</command> );
3888      [ <command>severity</command> (<option>critical</option> | <option>error</option> | <option>warning</option> | <option>notice</option> |
3889                  <option>info</option> | <option>debug</option> [ <replaceable>level</replaceable> ] | <option>dynamic</option> ); ]
3890      [ <command>print-category</command> <option>yes</option> or <option>no</option>; ]
3891      [ <command>print-severity</command> <option>yes</option> or <option>no</option>; ]
3892      [ <command>print-time</command> <option>yes</option> or <option>no</option>; ]
3893    }; ]
3894    [ <command>category</command> <replaceable>category_name</replaceable> {
3895      <replaceable>channel_name</replaceable> ; [ <replaceable>channel_name</replaceable> ; ... ]
3896    }; ]
3897    ...
3899 </programlisting>
3901       </sect2>
3903       <sect2>
3904         <title><command>logging</command> Statement Definition and
3905           Usage</title>
3907         <para>
3908           The <command>logging</command> statement configures a
3909           wide
3910           variety of logging options for the name server. Its <command>channel</command> phrase
3911           associates output methods, format options and severity levels with
3912           a name that can then be used with the <command>category</command> phrase
3913           to select how various classes of messages are logged.
3914         </para>
3915         <para>
3916           Only one <command>logging</command> statement is used to
3917           define
3918           as many channels and categories as are wanted. If there is no <command>logging</command> statement,
3919           the logging configuration will be:
3920         </para>
3922 <programlisting>logging {
3923      category default { default_syslog; default_debug; };
3924      category unmatched { null; };
3926 </programlisting>
3928         <para>
3929           In <acronym>BIND</acronym> 9, the logging configuration
3930           is only established when
3931           the entire configuration file has been parsed.  In <acronym>BIND</acronym> 8, it was
3932           established as soon as the <command>logging</command>
3933           statement
3934           was parsed. When the server is starting up, all logging messages
3935           regarding syntax errors in the configuration file go to the default
3936           channels, or to standard error if the "<option>-g</option>" option
3937           was specified.
3938         </para>
3940         <sect3>
3941           <title>The <command>channel</command> Phrase</title>
3943           <para>
3944             All log output goes to one or more <emphasis>channels</emphasis>;
3945             you can make as many of them as you want.
3946           </para>
3948           <para>
3949             Every channel definition must include a destination clause that
3950             says whether messages selected for the channel go to a file, to a
3951             particular syslog facility, to the standard error stream, or are
3952             discarded. It can optionally also limit the message severity level
3953             that will be accepted by the channel (the default is
3954             <command>info</command>), and whether to include a
3955             <command>named</command>-generated time stamp, the
3956             category name
3957             and/or severity level (the default is not to include any).
3958           </para>
3960           <para>
3961             The <command>null</command> destination clause
3962             causes all messages sent to the channel to be discarded;
3963             in that case, other options for the channel are meaningless.
3964           </para>
3966           <para>
3967             The <command>file</command> destination clause directs
3968             the channel
3969             to a disk file.  It can include limitations
3970             both on how large the file is allowed to become, and how many
3971             versions
3972             of the file will be saved each time the file is opened.
3973           </para>
3975           <para>
3976             If you use the <command>versions</command> log file
3977             option, then
3978             <command>named</command> will retain that many backup
3979             versions of the file by
3980             renaming them when opening.  For example, if you choose to keep
3981             three old versions
3982             of the file <filename>lamers.log</filename>, then just
3983             before it is opened
3984             <filename>lamers.log.1</filename> is renamed to
3985             <filename>lamers.log.2</filename>, <filename>lamers.log.0</filename> is renamed
3986             to <filename>lamers.log.1</filename>, and <filename>lamers.log</filename> is
3987             renamed to <filename>lamers.log.0</filename>.
3988             You can say <command>versions unlimited</command> to
3989             not limit
3990             the number of versions.
3991             If a <command>size</command> option is associated with
3992             the log file,
3993             then renaming is only done when the file being opened exceeds the
3994             indicated size.  No backup versions are kept by default; any
3995             existing
3996             log file is simply appended.
3997           </para>
3999           <para>
4000             The <command>size</command> option for files is used
4001             to limit log
4002             growth. If the file ever exceeds the size, then <command>named</command> will
4003             stop writing to the file unless it has a <command>versions</command> option
4004             associated with it.  If backup versions are kept, the files are
4005             rolled as
4006             described above and a new one begun.  If there is no
4007             <command>versions</command> option, no more data will
4008             be written to the log
4009             until some out-of-band mechanism removes or truncates the log to
4010             less than the
4011             maximum size.  The default behavior is not to limit the size of
4012             the
4013             file.
4014           </para>
4016           <para>
4017             Example usage of the <command>size</command> and
4018             <command>versions</command> options:
4019           </para>
4021 <programlisting>channel an_example_channel {
4022     file "example.log" versions 3 size 20m;
4023     print-time yes;
4024     print-category yes;
4026 </programlisting>
4028           <para>
4029             The <command>syslog</command> destination clause
4030             directs the
4031             channel to the system log.  Its argument is a
4032             syslog facility as described in the <command>syslog</command> man
4033             page. Known facilities are <command>kern</command>, <command>user</command>,
4034             <command>mail</command>, <command>daemon</command>, <command>auth</command>,
4035             <command>syslog</command>, <command>lpr</command>, <command>news</command>,
4036             <command>uucp</command>, <command>cron</command>, <command>authpriv</command>,
4037             <command>ftp</command>, <command>local0</command>, <command>local1</command>,
4038             <command>local2</command>, <command>local3</command>, <command>local4</command>,
4039             <command>local5</command>, <command>local6</command> and
4040             <command>local7</command>, however not all facilities
4041             are supported on
4042             all operating systems.
4043             How <command>syslog</command> will handle messages
4044             sent to
4045             this facility is described in the <command>syslog.conf</command> man
4046             page. If you have a system which uses a very old version of <command>syslog</command> that
4047             only uses two arguments to the <command>openlog()</command> function,
4048             then this clause is silently ignored.
4049           </para>
4050           <para>
4051             The <command>severity</command> clause works like <command>syslog</command>'s
4052             "priorities", except that they can also be used if you are writing
4053             straight to a file rather than using <command>syslog</command>.
4054             Messages which are not at least of the severity level given will
4055             not be selected for the channel; messages of higher severity
4056             levels
4057             will be accepted.
4058           </para>
4059           <para>
4060             If you are using <command>syslog</command>, then the <command>syslog.conf</command> priorities
4061             will also determine what eventually passes through. For example,
4062             defining a channel facility and severity as <command>daemon</command> and <command>debug</command> but
4063             only logging <command>daemon.warning</command> via <command>syslog.conf</command> will
4064             cause messages of severity <command>info</command> and
4065             <command>notice</command> to
4066             be dropped. If the situation were reversed, with <command>named</command> writing
4067             messages of only <command>warning</command> or higher,
4068             then <command>syslogd</command> would
4069             print all messages it received from the channel.
4070           </para>
4072           <para>
4073             The <command>stderr</command> destination clause
4074             directs the
4075             channel to the server's standard error stream.  This is intended
4076             for
4077             use when the server is running as a foreground process, for
4078             example
4079             when debugging a configuration.
4080           </para>
4082           <para>
4083             The server can supply extensive debugging information when
4084             it is in debugging mode. If the server's global debug level is
4085             greater
4086             than zero, then debugging mode will be active. The global debug
4087             level is set either by starting the <command>named</command> server
4088             with the <option>-d</option> flag followed by a positive integer,
4089             or by running <command>rndc trace</command>.
4090             The global debug level
4091             can be set to zero, and debugging mode turned off, by running <command>rndc
4092 notrace</command>. All debugging messages in the server have a debug
4093             level, and higher debug levels give more detailed output. Channels
4094             that specify a specific debug severity, for example:
4095           </para>
4097 <programlisting>channel specific_debug_level {
4098     file "foo";
4099     severity debug 3;
4101 </programlisting>
4103           <para>
4104             will get debugging output of level 3 or less any time the
4105             server is in debugging mode, regardless of the global debugging
4106             level. Channels with <command>dynamic</command>
4107             severity use the
4108             server's global debug level to determine what messages to print.
4109           </para>
4110           <para>
4111             If <command>print-time</command> has been turned on,
4112             then
4113             the date and time will be logged. <command>print-time</command> may
4114             be specified for a <command>syslog</command> channel,
4115             but is usually
4116             pointless since <command>syslog</command> also logs
4117             the date and
4118             time. If <command>print-category</command> is
4119             requested, then the
4120             category of the message will be logged as well. Finally, if <command>print-severity</command> is
4121             on, then the severity level of the message will be logged. The <command>print-</command> options may
4122             be used in any combination, and will always be printed in the
4123             following
4124             order: time, category, severity. Here is an example where all
4125             three <command>print-</command> options
4126             are on:
4127           </para>
4129           <para>
4130             <computeroutput>28-Feb-2000 15:05:32.863 general: notice: running</computeroutput>
4131           </para>
4133           <para>
4134             There are four predefined channels that are used for
4135             <command>named</command>'s default logging as follows.
4136             How they are
4137             used is described in <xref linkend="the_category_phrase"/>.
4138           </para>
4140 <programlisting>channel default_syslog {
4141     // send to syslog's daemon facility
4142     syslog daemon;
4143     // only send priority info and higher
4144     severity info;
4146 channel default_debug {
4147     // write to named.run in the working directory
4148     // Note: stderr is used instead of "named.run" if
4149     // the server is started with the '-f' option.
4150     file "named.run";
4151     // log at the server's current debug level
4152     severity dynamic;
4155 channel default_stderr {
4156     // writes to stderr
4157     stderr;
4158     // only send priority info and higher
4159     severity info;
4162 channel null {
4163    // toss anything sent to this channel
4164    null;
4166 </programlisting>
4168           <para>
4169             The <command>default_debug</command> channel has the
4170             special
4171             property that it only produces output when the server's debug
4172             level is
4173             nonzero.  It normally writes to a file called <filename>named.run</filename>
4174             in the server's working directory.
4175           </para>
4177           <para>
4178             For security reasons, when the "<option>-u</option>"
4179             command line option is used, the <filename>named.run</filename> file
4180             is created only after <command>named</command> has
4181             changed to the
4182             new UID, and any debug output generated while <command>named</command> is
4183             starting up and still running as root is discarded.  If you need
4184             to capture this output, you must run the server with the "<option>-g</option>"
4185             option and redirect standard error to a file.
4186           </para>
4188           <para>
4189             Once a channel is defined, it cannot be redefined. Thus you
4190             cannot alter the built-in channels directly, but you can modify
4191             the default logging by pointing categories at channels you have
4192             defined.
4193           </para>
4194         </sect3>
4196         <sect3 id="the_category_phrase">
4197           <title>The <command>category</command> Phrase</title>
4199           <para>
4200             There are many categories, so you can send the logs you want
4201             to see wherever you want, without seeing logs you don't want. If
4202             you don't specify a list of channels for a category, then log
4203             messages
4204             in that category will be sent to the <command>default</command> category
4205             instead. If you don't specify a default category, the following
4206             "default default" is used:
4207           </para>
4209 <programlisting>category default { default_syslog; default_debug; };
4210 </programlisting>
4212           <para>
4213             As an example, let's say you want to log security events to
4214             a file, but you also want keep the default logging behavior. You'd
4215             specify the following:
4216           </para>
4218 <programlisting>channel my_security_channel {
4219     file "my_security_file";
4220     severity info;
4222 category security {
4223     my_security_channel;
4224     default_syslog;
4225     default_debug;
4226 };</programlisting>
4228           <para>
4229             To discard all messages in a category, specify the <command>null</command> channel:
4230           </para>
4232 <programlisting>category xfer-out { null; };
4233 category notify { null; };
4234 </programlisting>
4236           <para>
4237             Following are the available categories and brief descriptions
4238             of the types of log information they contain. More
4239             categories may be added in future <acronym>BIND</acronym> releases.
4240           </para>
4241           <informaltable colsep="0" rowsep="0">
4242             <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
4243               <colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
4244               <colspec colname="2" colnum="2" colsep="0" colwidth="3.350in"/>
4245               <tbody>
4246                 <row rowsep="0">
4247                   <entry colname="1">
4248                     <para><command>default</command></para>
4249                   </entry>
4250                   <entry colname="2">
4251                     <para>
4252                       The default category defines the logging
4253                       options for those categories where no specific
4254                       configuration has been
4255                       defined.
4256                     </para>
4257                   </entry>
4258                 </row>
4259                 <row rowsep="0">
4260                   <entry colname="1">
4261                     <para><command>general</command></para>
4262                   </entry>
4263                   <entry colname="2">
4264                     <para>
4265                       The catch-all. Many things still aren't
4266                       classified into categories, and they all end up here.
4267                     </para>
4268                   </entry>
4269                 </row>
4270                 <row rowsep="0">
4271                   <entry colname="1">
4272                     <para><command>database</command></para>
4273                   </entry>
4274                   <entry colname="2">
4275                     <para>
4276                       Messages relating to the databases used
4277                       internally by the name server to store zone and cache
4278                       data.
4279                     </para>
4280                   </entry>
4281                 </row>
4282                 <row rowsep="0">
4283                   <entry colname="1">
4284                     <para><command>security</command></para>
4285                   </entry>
4286                   <entry colname="2">
4287                     <para>
4288                       Approval and denial of requests.
4289                     </para>
4290                   </entry>
4291                 </row>
4292                 <row rowsep="0">
4293                   <entry colname="1">
4294                     <para><command>config</command></para>
4295                   </entry>
4296                   <entry colname="2">
4297                     <para>
4298                       Configuration file parsing and processing.
4299                     </para>
4300                   </entry>
4301                 </row>
4302                 <row rowsep="0">
4303                   <entry colname="1">
4304                     <para><command>resolver</command></para>
4305                   </entry>
4306                   <entry colname="2">
4307                     <para>
4308                       DNS resolution, such as the recursive
4309                       lookups performed on behalf of clients by a caching name
4310                       server.
4311                     </para>
4312                   </entry>
4313                 </row>
4314                 <row rowsep="0">
4315                   <entry colname="1">
4316                     <para><command>xfer-in</command></para>
4317                   </entry>
4318                   <entry colname="2">
4319                     <para>
4320                       Zone transfers the server is receiving.
4321                     </para>
4322                   </entry>
4323                 </row>
4324                 <row rowsep="0">
4325                   <entry colname="1">
4326                     <para><command>xfer-out</command></para>
4327                   </entry>
4328                   <entry colname="2">
4329                     <para>
4330                       Zone transfers the server is sending.
4331                     </para>
4332                   </entry>
4333                 </row>
4334                 <row rowsep="0">
4335                   <entry colname="1">
4336                     <para><command>notify</command></para>
4337                   </entry>
4338                   <entry colname="2">
4339                     <para>
4340                       The NOTIFY protocol.
4341                     </para>
4342                   </entry>
4343                 </row>
4344                 <row rowsep="0">
4345                   <entry colname="1">
4346                     <para><command>client</command></para>
4347                   </entry>
4348                   <entry colname="2">
4349                     <para>
4350                       Processing of client requests.
4351                     </para>
4352                   </entry>
4353                 </row>
4354                 <row rowsep="0">
4355                   <entry colname="1">
4356                     <para><command>unmatched</command></para>
4357                   </entry>
4358                   <entry colname="2">
4359                     <para>
4360                       Messages that <command>named</command> was unable to determine the
4361                       class of or for which there was no matching <command>view</command>.
4362                       A one line summary is also logged to the <command>client</command> category.
4363                       This category is best sent to a file or stderr, by
4364                       default it is sent to
4365                       the <command>null</command> channel.
4366                     </para>
4367                   </entry>
4368                 </row>
4369                 <row rowsep="0">
4370                   <entry colname="1">
4371                     <para><command>network</command></para>
4372                   </entry>
4373                   <entry colname="2">
4374                     <para>
4375                       Network operations.
4376                     </para>
4377                   </entry>
4378                 </row>
4379                 <row rowsep="0">
4380                   <entry colname="1">
4381                     <para><command>update</command></para>
4382                   </entry>
4383                   <entry colname="2">
4384                     <para>
4385                       Dynamic updates.
4386                     </para>
4387                   </entry>
4388                 </row>
4389                 <row rowsep="0">
4390                   <entry colname="1">
4391                     <para><command>update-security</command></para>
4392                   </entry>
4393                   <entry colname="2">
4394                     <para>
4395                       Approval and denial of update requests.
4396                     </para>
4397                   </entry>
4398                 </row>
4399                 <row rowsep="0">
4400                   <entry colname="1">
4401                     <para><command>queries</command></para>
4402                   </entry>
4403                   <entry colname="2">
4404                     <para>
4405                       Specify where queries should be logged to.
4406                     </para>
4407                     <para>
4408                       At startup, specifying the category <command>queries</command> will also
4409                       enable query logging unless <command>querylog</command> option has been
4410                       specified.
4411                     </para>
4413                     <para>
4414                       The query log entry reports the client's IP
4415                       address and port number, and the query name,
4416                       class and type.  Next it reports whether the
4417                       Recursion Desired flag was set (+ if set, -
4418                       if not set), if the query was signed (S),
4419                       EDNS was in use (E), if TCP was used (T), if
4420                       DO (DNSSEC Ok) was set (D), or if CD (Checking
4421                       Disabled) was set (C).  After this the
4422                       destination address the query was sent to is
4423                       reported.
4424                     </para>
4426                     <para>
4427                       <computeroutput>client 127.0.0.1#62536: query: www.example.com IN AAAA +SE</computeroutput>
4428                     </para>
4429                     <para>
4430                       <computeroutput>client ::1#62537: query: www.example.net IN AAAA -SE</computeroutput>
4431                     </para>
4432                   </entry>
4433                 </row>
4434                 <row rowsep="0">
4435                   <entry colname="1">
4436                     <para><command>query-errors</command></para>
4437                   </entry>
4438                   <entry colname="2">
4439                     <para>
4440                       Information about queries that resulted in some
4441                       failure.
4442                     </para>
4443                   </entry>
4444                 </row>
4445                 <row rowsep="0">
4446                   <entry colname="1">
4447                     <para><command>dispatch</command></para>
4448                   </entry>
4449                   <entry colname="2">
4450                     <para>
4451                       Dispatching of incoming packets to the
4452                       server modules where they are to be processed.
4453                     </para>
4454                   </entry>
4455                 </row>
4456                 <row rowsep="0">
4457                   <entry colname="1">
4458                     <para><command>dnssec</command></para>
4459                   </entry>
4460                   <entry colname="2">
4461                     <para>
4462                       DNSSEC and TSIG protocol processing.
4463                     </para>
4464                   </entry>
4465                 </row>
4466                 <row rowsep="0">
4467                   <entry colname="1">
4468                     <para><command>lame-servers</command></para>
4469                   </entry>
4470                   <entry colname="2">
4471                     <para>
4472                       Lame servers.  These are misconfigurations
4473                       in remote servers, discovered by BIND 9 when trying to
4474                       query those servers during resolution.
4475                     </para>
4476                   </entry>
4477                 </row>
4478                 <row rowsep="0">
4479                   <entry colname="1">
4480                     <para><command>delegation-only</command></para>
4481                   </entry>
4482                   <entry colname="2">
4483                     <para>
4484                       Delegation only.  Logs queries that have been
4485                       forced to NXDOMAIN as the result of a
4486                       delegation-only zone or a
4487                       <command>delegation-only</command> in a hint
4488                       or stub zone declaration.
4489                     </para>
4490                   </entry>
4491                 </row>
4492                 <row rowsep="0">
4493                   <entry colname="1">
4494                     <para><command>edns-disabled</command></para>
4495                   </entry>
4496                   <entry colname="2">
4497                     <para>
4498                       Log queries that have been forced to use plain
4499                       DNS due to timeouts.  This is often due to
4500                       the remote servers not being RFC 1034 compliant
4501                       (not always returning FORMERR or similar to
4502                       EDNS queries and other extensions to the DNS
4503                       when they are not understood).  In other words, this is
4504                       targeted at servers that fail to respond to
4505                       DNS queries that they don't understand.
4506                     </para>
4507                     <para>
4508                       Note: the log message can also be due to
4509                       packet loss.  Before reporting servers for
4510                       non-RFC 1034 compliance they should be re-tested
4511                       to determine the nature of the non-compliance.
4512                       This testing should prevent or reduce the
4513                       number of false-positive reports.
4514                     </para>
4515                     <para>
4516                       Note: eventually <command>named</command> will have to stop
4517                       treating such timeouts as due to RFC 1034 non
4518                       compliance and start treating it as plain
4519                       packet loss.  Falsely classifying packet
4520                       loss as due to RFC 1034 non compliance impacts
4521                       on DNSSEC validation which requires EDNS for
4522                       the DNSSEC records to be returned.
4523                     </para>
4524                   </entry>
4525                 </row>
4526               </tbody>
4527             </tgroup>
4528           </informaltable>
4529         </sect3>
4530         <sect3>
4531           <title>The <command>query-errors</command> Category</title>
4532           <para>
4533             The <command>query-errors</command> category is
4534             specifically intended for debugging purposes: To identify
4535             why and how specific queries result in responses which
4536             indicate an error.
4537             Messages of this category are therefore only logged
4538             with <command>debug</command> levels.
4539           </para>
4541           <para>
4542             At the debug levels of 1 or higher, each response with the
4543             rcode of SERVFAIL is logged as follows:
4544           </para>
4545           <para>
4546             <computeroutput>client 127.0.0.1#61502: query failed (SERVFAIL) for www.example.com/IN/AAAA at query.c:3880</computeroutput>
4547           </para>
4548           <para>
4549             This means an error resulting in SERVFAIL was
4550             detected at line 3880 of source file
4551             <filename>query.c</filename>.
4552             Log messages of this level will particularly
4553             help identify the cause of SERVFAIL for an
4554             authoritative server.
4555           </para>
4556           <para>
4557             At the debug levels of 2 or higher, detailed context
4558             information of recursive resolutions that resulted in
4559             SERVFAIL is logged.
4560             The log message will look like as follows:
4561           </para>
4562           <para>
4563 <!-- NOTE: newlines and some spaces added so this would fit on page -->
4564             <programlisting>
4565 fetch completed at resolver.c:2970 for www.example.com/A
4566 in 30.000183: timed out/success [domain:example.com,
4567 referral:2,restart:7,qrysent:8,timeout:5,lame:0,neterr:0,
4568 badresp:1,adberr:0,findfail:0,valfail:0]
4569             </programlisting>
4570           </para>
4571           <para>
4572             The first part before the colon shows that a recursive
4573             resolution for AAAA records of www.example.com completed
4574             in 30.000183 seconds and the final result that led to the
4575             SERVFAIL was determined at line 2970 of source file
4576             <filename>resolver.c</filename>.
4577           </para>
4578           <para>
4579             The following part shows the detected final result and the
4580             latest result of DNSSEC validation.
4581             The latter is always success when no validation attempt
4582             is made.
4583             In this example, this query resulted in SERVFAIL probably
4584             because all name servers are down or unreachable, leading
4585             to a timeout in 30 seconds.
4586             DNSSEC validation was probably not attempted.
4587           </para>
4588           <para>
4589             The last part enclosed in square brackets shows statistics
4590             information collected for this particular resolution
4591             attempt.
4592             The <varname>domain</varname> field shows the deepest zone
4593             that the resolver reached;
4594             it is the zone where the error was finally detected.
4595             The meaning of the other fields is summarized in the
4596             following table.
4597           </para>
4599           <informaltable colsep="0" rowsep="0">
4600             <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
4601               <colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
4602               <colspec colname="2" colnum="2" colsep="0" colwidth="3.350in"/>
4603               <tbody>
4604                 <row rowsep="0">
4605                   <entry colname="1">
4606                     <para><varname>referral</varname></para>
4607                   </entry>
4608                   <entry colname="2">
4609                     <para>
4610                       The number of referrals the resolver received
4611                       throughout the resolution process.
4612                       In the above example this is 2, which are most
4613                       likely com and example.com.
4614                     </para>
4615                   </entry>
4616                 </row>
4617                 <row rowsep="0">
4618                   <entry colname="1">
4619                     <para><varname>restart</varname></para>
4620                   </entry>
4621                   <entry colname="2">
4622                     <para>
4623                       The number of cycles that the resolver tried
4624                       remote servers at the <varname>domain</varname>
4625                       zone.
4626                       In each cycle the resolver sends one query
4627                       (possibly resending it, depending on the response)
4628                       to each known name server of
4629                       the <varname>domain</varname> zone.
4630                     </para>
4631                   </entry>
4632                 </row>
4633                 <row rowsep="0">
4634                   <entry colname="1">
4635                     <para><varname>qrysent</varname></para>
4636                   </entry>
4637                   <entry colname="2">
4638                     <para>
4639                       The number of queries the resolver sent at the
4640                       <varname>domain</varname> zone.
4641                     </para>
4642                   </entry>
4643                 </row>
4644                 <row rowsep="0">
4645                   <entry colname="1">
4646                     <para><varname>timeout</varname></para>
4647                   </entry>
4648                   <entry colname="2">
4649                     <para>
4650                       The number of timeouts since the resolver
4651                       received the last response.
4652                     </para>
4653                   </entry>
4654                 </row>
4655                 <row rowsep="0">
4656                   <entry colname="1">
4657                     <para><varname>lame</varname></para>
4658                   </entry>
4659                   <entry colname="2">
4660                     <para>
4661                       The number of lame servers the resolver detected
4662                       at the <varname>domain</varname> zone.
4663                       A server is detected to be lame either by an
4664                       invalid response or as a result of lookup in
4665                       BIND9's address database (ADB), where lame
4666                       servers are cached.
4667                     </para>
4668                   </entry>
4669                 </row>
4670                 <row rowsep="0">
4671                   <entry colname="1">
4672                     <para><varname>neterr</varname></para>
4673                   </entry>
4674                   <entry colname="2">
4675                     <para>
4676                       The number of erroneous results that the
4677                       resolver encountered in sending queries
4678                       at the <varname>domain</varname> zone.
4679                       One common case is the remote server is
4680                       unreachable and the resolver receives an ICMP
4681                       unreachable error message.
4682                     </para>
4683                   </entry>
4684                 </row>
4685                 <row rowsep="0">
4686                   <entry colname="1">
4687                     <para><varname>badresp</varname></para>
4688                   </entry>
4689                   <entry colname="2">
4690                     <para>
4691                       The number of unexpected responses (other than
4692                       <varname>lame</varname>) to queries sent by the
4693                       resolver at the <varname>domain</varname> zone.
4694                     </para>
4695                   </entry>
4696                 </row>
4697                 <row rowsep="0">
4698                   <entry colname="1">
4699                     <para><varname>adberr</varname></para>
4700                   </entry>
4701                   <entry colname="2">
4702                     <para>
4703                       Failures in finding remote server addresses
4704                       of the <varname>domain</varname> zone in the ADB.
4705                       One common case of this is that the remote
4706                       server's name does not have any address records.
4707                     </para>
4708                   </entry>
4709                 </row>
4710                 <row rowsep="0">
4711                   <entry colname="1">
4712                     <para><varname>findfail</varname></para>
4713                   </entry>
4714                   <entry colname="2">
4715                     <para>
4716                       Failures of resolving remote server addresses.
4717                       This is a total number of failures throughout
4718                       the resolution process.
4719                     </para>
4720                   </entry>
4721                 </row>
4722                 <row rowsep="0">
4723                   <entry colname="1">
4724                     <para><varname>valfail</varname></para>
4725                   </entry>
4726                   <entry colname="2">
4727                     <para>
4728                       Failures of DNSSEC validation.
4729                       Validation failures are counted throughout
4730                       the resolution process (not limited to
4731                       the <varname>domain</varname> zone), but should
4732                       only happen in <varname>domain</varname>.
4733                     </para>
4734                   </entry>
4735                 </row>
4736               </tbody>
4737             </tgroup>
4738           </informaltable>
4739           <para>
4740             At the debug levels of 3 or higher, the same messages
4741             as those at the debug 1 level are logged for other errors
4742             than SERVFAIL.
4743             Note that negative responses such as NXDOMAIN are not
4744             regarded as errors here.
4745           </para>
4746           <para>
4747             At the debug levels of 4 or higher, the same messages
4748             as those at the debug 2 level are logged for other errors
4749             than SERVFAIL.
4750             Unlike the above case of level 3, messages are logged for
4751             negative responses.
4752             This is because any unexpected results can be difficult to
4753             debug in the recursion case.
4754           </para>
4755         </sect3>
4756       </sect2>
4758       <sect2>
4759         <title><command>lwres</command> Statement Grammar</title>
4761         <para>
4762            This is the grammar of the <command>lwres</command>
4763           statement in the <filename>named.conf</filename> file:
4764         </para>
4766 <programlisting><command>lwres</command> {
4767     <optional> listen-on { <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ;
4768                 <optional> <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ; ... </optional> }; </optional>
4769     <optional> view <replaceable>view_name</replaceable>; </optional>
4770     <optional> search { <replaceable>domain_name</replaceable> ; <optional> <replaceable>domain_name</replaceable> ; ... </optional> }; </optional>
4771     <optional> ndots <replaceable>number</replaceable>; </optional>
4773 </programlisting>
4775       </sect2>
4776       <sect2>
4777         <title><command>lwres</command> Statement Definition and Usage</title>
4779         <para>
4780           The <command>lwres</command> statement configures the
4781           name
4782           server to also act as a lightweight resolver server. (See
4783           <xref linkend="lwresd"/>.)  There may be multiple
4784           <command>lwres</command> statements configuring
4785           lightweight resolver servers with different properties.
4786         </para>
4788         <para>
4789           The <command>listen-on</command> statement specifies a
4790           list of
4791           addresses (and ports) that this instance of a lightweight resolver
4792           daemon
4793           should accept requests on.  If no port is specified, port 921 is
4794           used.
4795           If this statement is omitted, requests will be accepted on
4796           127.0.0.1,
4797           port 921.
4798         </para>
4800         <para>
4801           The <command>view</command> statement binds this
4802           instance of a
4803           lightweight resolver daemon to a view in the DNS namespace, so that
4804           the
4805           response will be constructed in the same manner as a normal DNS
4806           query
4807           matching this view.  If this statement is omitted, the default view
4808           is
4809           used, and if there is no default view, an error is triggered.
4810         </para>
4812         <para>
4813           The <command>search</command> statement is equivalent to
4814           the
4815           <command>search</command> statement in
4816           <filename>/etc/resolv.conf</filename>.  It provides a
4817           list of domains
4818           which are appended to relative names in queries.
4819         </para>
4821         <para>
4822           The <command>ndots</command> statement is equivalent to
4823           the
4824           <command>ndots</command> statement in
4825           <filename>/etc/resolv.conf</filename>.  It indicates the
4826           minimum
4827           number of dots in a relative domain name that should result in an
4828           exact match lookup before search path elements are appended.
4829         </para>
4830       </sect2>
4831       <sect2>
4832         <title><command>masters</command> Statement Grammar</title>
4834 <programlisting>
4835 <command>masters</command> <replaceable>name</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> { ( <replaceable>masters_list</replaceable> | 
4836       <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> <optional>key <replaceable>key</replaceable></optional> ) ; <optional>...</optional> };
4837 </programlisting>
4839       </sect2>
4841       <sect2>
4842         <title><command>masters</command> Statement Definition and
4843           Usage</title>
4844         <para><command>masters</command>
4845           lists allow for a common set of masters to be easily used by
4846           multiple stub and slave zones.
4847         </para>
4848       </sect2>
4850       <sect2>
4851         <title><command>options</command> Statement Grammar</title>
4853         <para>
4854           This is the grammar of the <command>options</command>
4855           statement in the <filename>named.conf</filename> file:
4856         </para>
4858 <programlisting><command>options</command> {
4859     <optional> attach-cache <replaceable>cache_name</replaceable>; </optional>
4860     <optional> version <replaceable>version_string</replaceable>; </optional>
4861     <optional> hostname <replaceable>hostname_string</replaceable>; </optional>
4862     <optional> server-id <replaceable>server_id_string</replaceable>; </optional>
4863     <optional> directory <replaceable>path_name</replaceable>; </optional>
4864     <optional> key-directory <replaceable>path_name</replaceable>; </optional>
4865     <optional> named-xfer <replaceable>path_name</replaceable>; </optional>
4866     <optional> tkey-gssapi-credential <replaceable>principal</replaceable>; </optional>
4867     <optional> tkey-domain <replaceable>domainname</replaceable>; </optional>
4868     <optional> tkey-dhkey <replaceable>key_name</replaceable> <replaceable>key_tag</replaceable>; </optional>
4869     <optional> cache-file <replaceable>path_name</replaceable>; </optional>
4870     <optional> dump-file <replaceable>path_name</replaceable>; </optional>
4871     <optional> bindkeys-file <replaceable>path_name</replaceable>; </optional>
4872     <optional> memstatistics <replaceable>yes_or_no</replaceable>; </optional>
4873     <optional> memstatistics-file <replaceable>path_name</replaceable>; </optional>
4874     <optional> pid-file <replaceable>path_name</replaceable>; </optional>
4875     <optional> recursing-file <replaceable>path_name</replaceable>; </optional>
4876     <optional> statistics-file <replaceable>path_name</replaceable>; </optional>
4877     <optional> zone-statistics <replaceable>yes_or_no</replaceable>; </optional>
4878     <optional> auth-nxdomain <replaceable>yes_or_no</replaceable>; </optional>
4879     <optional> deallocate-on-exit <replaceable>yes_or_no</replaceable>; </optional>
4880     <optional> dialup <replaceable>dialup_option</replaceable>; </optional>
4881     <optional> fake-iquery <replaceable>yes_or_no</replaceable>; </optional>
4882     <optional> fetch-glue <replaceable>yes_or_no</replaceable>; </optional>
4883     <optional> flush-zones-on-shutdown <replaceable>yes_or_no</replaceable>; </optional>
4884     <optional> has-old-clients <replaceable>yes_or_no</replaceable>; </optional>
4885     <optional> host-statistics <replaceable>yes_or_no</replaceable>; </optional>
4886     <optional> host-statistics-max <replaceable>number</replaceable>; </optional>
4887     <optional> minimal-responses <replaceable>yes_or_no</replaceable>; </optional>
4888     <optional> multiple-cnames <replaceable>yes_or_no</replaceable>; </optional>
4889     <optional> notify <replaceable>yes_or_no</replaceable> | <replaceable>explicit</replaceable> | <replaceable>master-only</replaceable>; </optional>
4890     <optional> recursion <replaceable>yes_or_no</replaceable>; </optional>
4891     <optional> rfc2308-type1 <replaceable>yes_or_no</replaceable>; </optional>
4892     <optional> use-id-pool <replaceable>yes_or_no</replaceable>; </optional>
4893     <optional> maintain-ixfr-base <replaceable>yes_or_no</replaceable>; </optional>
4894     <optional> ixfr-from-differences (<replaceable>yes_or_no</replaceable> | <constant>master</constant> | <constant>slave</constant>); </optional>
4895     <optional> dnssec-enable <replaceable>yes_or_no</replaceable>; </optional>
4896     <optional> dnssec-validation <replaceable>yes_or_no</replaceable>; </optional>
4897     <optional> dnssec-lookaside ( <replaceable>auto</replaceable> | 
4898                         <replaceable>domain</replaceable> trust-anchor <replaceable>domain</replaceable> ); </optional>
4899     <optional> dnssec-must-be-secure <replaceable>domain yes_or_no</replaceable>; </optional>
4900     <optional> dnssec-accept-expired <replaceable>yes_or_no</replaceable>; </optional>
4901     <optional> forward ( <replaceable>only</replaceable> | <replaceable>first</replaceable> ); </optional>
4902     <optional> forwarders { <optional> <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ; ... </optional> }; </optional>
4903     <optional> dual-stack-servers <optional>port <replaceable>ip_port</replaceable></optional> {
4904         ( <replaceable>domain_name</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> |
4905           <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ) ; 
4906         ... }; </optional>
4907     <optional> check-names ( <replaceable>master</replaceable> | <replaceable>slave</replaceable> | <replaceable>response</replaceable> )
4908         ( <replaceable>warn</replaceable> | <replaceable>fail</replaceable> | <replaceable>ignore</replaceable> ); </optional>
4909     <optional> check-dup-records ( <replaceable>warn</replaceable> | <replaceable>fail</replaceable> | <replaceable>ignore</replaceable> ); </optional>
4910     <optional> check-mx ( <replaceable>warn</replaceable> | <replaceable>fail</replaceable> | <replaceable>ignore</replaceable> ); </optional>
4911     <optional> check-wildcard <replaceable>yes_or_no</replaceable>; </optional>
4912     <optional> check-integrity <replaceable>yes_or_no</replaceable>; </optional>
4913     <optional> check-mx-cname ( <replaceable>warn</replaceable> | <replaceable>fail</replaceable> | <replaceable>ignore</replaceable> ); </optional>
4914     <optional> check-srv-cname ( <replaceable>warn</replaceable> | <replaceable>fail</replaceable> | <replaceable>ignore</replaceable> ); </optional>
4915     <optional> check-sibling <replaceable>yes_or_no</replaceable>; </optional>
4916     <optional> allow-notify { <replaceable>address_match_list</replaceable> }; </optional>
4917     <optional> allow-query { <replaceable>address_match_list</replaceable> }; </optional>
4918     <optional> allow-query-on { <replaceable>address_match_list</replaceable> }; </optional>
4919     <optional> allow-query-cache { <replaceable>address_match_list</replaceable> }; </optional>
4920     <optional> allow-query-cache-on { <replaceable>address_match_list</replaceable> }; </optional>
4921     <optional> allow-transfer { <replaceable>address_match_list</replaceable> }; </optional>
4922     <optional> allow-recursion { <replaceable>address_match_list</replaceable> }; </optional>
4923     <optional> allow-recursion-on { <replaceable>address_match_list</replaceable> }; </optional>
4924     <optional> allow-update { <replaceable>address_match_list</replaceable> }; </optional>
4925     <optional> allow-update-forwarding { <replaceable>address_match_list</replaceable> }; </optional>
4926     <optional> update-check-ksk <replaceable>yes_or_no</replaceable>; </optional>
4927     <optional> dnssec-dnskey-kskonly <replaceable>yes_or_no</replaceable>; </optional>
4928     <optional> dnssec-secure-to-insecure <replaceable>yes_or_no</replaceable> ;</optional>
4929     <optional> try-tcp-refresh <replaceable>yes_or_no</replaceable>; </optional>
4930     <optional> allow-v6-synthesis { <replaceable>address_match_list</replaceable> }; </optional>
4931     <optional> blackhole { <replaceable>address_match_list</replaceable> }; </optional>
4932     <optional> use-v4-udp-ports { <replaceable>port_list</replaceable> }; </optional>
4933     <optional> avoid-v4-udp-ports { <replaceable>port_list</replaceable> }; </optional>
4934     <optional> use-v6-udp-ports { <replaceable>port_list</replaceable> }; </optional>
4935     <optional> avoid-v6-udp-ports { <replaceable>port_list</replaceable> }; </optional>
4936     <optional> listen-on <optional> port <replaceable>ip_port</replaceable> </optional> { <replaceable>address_match_list</replaceable> }; </optional>
4937     <optional> listen-on-v6 <optional> port <replaceable>ip_port</replaceable> </optional> { <replaceable>address_match_list</replaceable> }; </optional>
4938     <optional> query-source ( ( <replaceable>ip4_addr</replaceable> | <replaceable>*</replaceable> )
4939         <optional> port ( <replaceable>ip_port</replaceable> | <replaceable>*</replaceable> ) </optional> |
4940         <optional> address ( <replaceable>ip4_addr</replaceable> | <replaceable>*</replaceable> ) </optional>
4941         <optional> port ( <replaceable>ip_port</replaceable> | <replaceable>*</replaceable> ) </optional> ) ; </optional>
4942     <optional> query-source-v6 ( ( <replaceable>ip6_addr</replaceable> | <replaceable>*</replaceable> )
4943         <optional> port ( <replaceable>ip_port</replaceable> | <replaceable>*</replaceable> ) </optional> | 
4944         <optional> address ( <replaceable>ip6_addr</replaceable> | <replaceable>*</replaceable> ) </optional> 
4945         <optional> port ( <replaceable>ip_port</replaceable> | <replaceable>*</replaceable> ) </optional> ) ; </optional>
4946     <optional> use-queryport-pool <replaceable>yes_or_no</replaceable>; </optional>
4947     <optional> queryport-pool-ports <replaceable>number</replaceable>; </optional>
4948     <optional> queryport-pool-updateinterval <replaceable>number</replaceable>; </optional>
4949     <optional> max-transfer-time-in <replaceable>number</replaceable>; </optional>
4950     <optional> max-transfer-time-out <replaceable>number</replaceable>; </optional>
4951     <optional> max-transfer-idle-in <replaceable>number</replaceable>; </optional>
4952     <optional> max-transfer-idle-out <replaceable>number</replaceable>; </optional>
4953     <optional> tcp-clients <replaceable>number</replaceable>; </optional>
4954     <optional> reserved-sockets <replaceable>number</replaceable>; </optional>
4955     <optional> recursive-clients <replaceable>number</replaceable>; </optional>
4956     <optional> serial-query-rate <replaceable>number</replaceable>; </optional>
4957     <optional> serial-queries <replaceable>number</replaceable>; </optional>
4958     <optional> tcp-listen-queue <replaceable>number</replaceable>; </optional>
4959     <optional> transfer-format <replaceable>( one-answer | many-answers )</replaceable>; </optional>
4960     <optional> transfers-in  <replaceable>number</replaceable>; </optional>
4961     <optional> transfers-out <replaceable>number</replaceable>; </optional>
4962     <optional> transfers-per-ns <replaceable>number</replaceable>; </optional>
4963     <optional> transfer-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
4964     <optional> transfer-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
4965     <optional> alt-transfer-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
4966     <optional> alt-transfer-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>)
4967                              <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
4968     <optional> use-alt-transfer-source <replaceable>yes_or_no</replaceable>; </optional>
4969     <optional> notify-delay <replaceable>seconds</replaceable> ; </optional>
4970     <optional> notify-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
4971     <optional> notify-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
4972     <optional> notify-to-soa <replaceable>yes_or_no</replaceable> ; </optional>
4973     <optional> also-notify { <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ;
4974                   <optional> <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ; ... </optional> }; </optional>
4975     <optional> max-ixfr-log-size <replaceable>number</replaceable>; </optional>
4976     <optional> max-journal-size <replaceable>size_spec</replaceable>; </optional>
4977     <optional> coresize <replaceable>size_spec</replaceable> ; </optional>
4978     <optional> datasize <replaceable>size_spec</replaceable> ; </optional>
4979     <optional> files <replaceable>size_spec</replaceable> ; </optional>
4980     <optional> stacksize <replaceable>size_spec</replaceable> ; </optional>
4981     <optional> cleaning-interval <replaceable>number</replaceable>; </optional>
4982     <optional> heartbeat-interval <replaceable>number</replaceable>; </optional>
4983     <optional> interface-interval <replaceable>number</replaceable>; </optional>
4984     <optional> statistics-interval <replaceable>number</replaceable>; </optional>
4985     <optional> topology { <replaceable>address_match_list</replaceable> }</optional>;
4986     <optional> sortlist { <replaceable>address_match_list</replaceable> }</optional>;
4987     <optional> rrset-order { <replaceable>order_spec</replaceable> ; <optional> <replaceable>order_spec</replaceable> ; ... </optional> </optional> };
4988     <optional> lame-ttl <replaceable>number</replaceable>; </optional>
4989     <optional> max-ncache-ttl <replaceable>number</replaceable>; </optional>
4990     <optional> max-cache-ttl <replaceable>number</replaceable>; </optional>
4991     <optional> sig-validity-interval <replaceable>number</replaceable> <optional><replaceable>number</replaceable></optional> ; </optional>
4992     <optional> sig-signing-nodes <replaceable>number</replaceable> ; </optional>
4993     <optional> sig-signing-signatures <replaceable>number</replaceable> ; </optional>
4994     <optional> sig-signing-type <replaceable>number</replaceable> ; </optional>
4995     <optional> min-roots <replaceable>number</replaceable>; </optional>
4996     <optional> use-ixfr <replaceable>yes_or_no</replaceable> ; </optional>
4997     <optional> provide-ixfr <replaceable>yes_or_no</replaceable>; </optional>
4998     <optional> request-ixfr <replaceable>yes_or_no</replaceable>; </optional>
4999     <optional> treat-cr-as-space <replaceable>yes_or_no</replaceable> ; </optional>
5000     <optional> min-refresh-time <replaceable>number</replaceable> ; </optional>
5001     <optional> max-refresh-time <replaceable>number</replaceable> ; </optional>
5002     <optional> min-retry-time <replaceable>number</replaceable> ; </optional>
5003     <optional> max-retry-time <replaceable>number</replaceable> ; </optional>
5004     <optional> port <replaceable>ip_port</replaceable>; </optional>
5005     <optional> additional-from-auth <replaceable>yes_or_no</replaceable> ; </optional>
5006     <optional> additional-from-cache <replaceable>yes_or_no</replaceable> ; </optional>
5007     <optional> random-device <replaceable>path_name</replaceable> ; </optional>
5008     <optional> max-cache-size <replaceable>size_spec</replaceable> ; </optional>
5009     <optional> match-mapped-addresses <replaceable>yes_or_no</replaceable>; </optional>
5010     <optional> filter-aaaa-on-v4 ( <replaceable>yes_or_no</replaceable> | <replaceable>break-dnssec</replaceable> ); </optional>
5011     <optional> preferred-glue ( <replaceable>A</replaceable> | <replaceable>AAAA</replaceable> | <replaceable>NONE</replaceable> ); </optional>
5012     <optional> edns-udp-size <replaceable>number</replaceable>; </optional>
5013     <optional> max-udp-size <replaceable>number</replaceable>; </optional>
5014     <optional> root-delegation-only <optional> exclude { <replaceable>namelist</replaceable> } </optional> ; </optional>
5015     <optional> querylog <replaceable>yes_or_no</replaceable> ; </optional>
5016     <optional> disable-algorithms <replaceable>domain</replaceable> { <replaceable>algorithm</replaceable>;
5017                                 <optional> <replaceable>algorithm</replaceable>; </optional> }; </optional>
5018     <optional> acache-enable <replaceable>yes_or_no</replaceable> ; </optional>
5019     <optional> acache-cleaning-interval <replaceable>number</replaceable>; </optional>
5020     <optional> max-acache-size <replaceable>size_spec</replaceable> ; </optional>
5021     <optional> clients-per-query <replaceable>number</replaceable> ; </optional>
5022     <optional> max-clients-per-query <replaceable>number</replaceable> ; </optional>
5023     <optional> masterfile-format (<constant>text</constant>|<constant>raw</constant>) ; </optional>
5024     <optional> empty-server <replaceable>name</replaceable> ; </optional>
5025     <optional> empty-contact <replaceable>name</replaceable> ; </optional>
5026     <optional> empty-zones-enable <replaceable>yes_or_no</replaceable> ; </optional>
5027     <optional> disable-empty-zone <replaceable>zone_name</replaceable> ; </optional>
5028     <optional> zero-no-soa-ttl <replaceable>yes_or_no</replaceable> ; </optional>
5029     <optional> zero-no-soa-ttl-cache <replaceable>yes_or_no</replaceable> ; </optional>
5030     <optional> deny-answer-addresses { <replaceable>address_match_list</replaceable> } <optional> except-from { <replaceable>namelist</replaceable> } </optional>;</optional>
5031     <optional> deny-answer-aliases { <replaceable>namelist</replaceable> } <optional> except-from { <replaceable>namelist</replaceable> } </optional>;</optional>
5033 </programlisting>
5035       </sect2>
5037       <sect2 id="options">
5038         <title><command>options</command> Statement Definition and
5039           Usage</title>
5041         <para>
5042           The <command>options</command> statement sets up global
5043           options
5044           to be used by <acronym>BIND</acronym>. This statement
5045           may appear only
5046           once in a configuration file. If there is no <command>options</command>
5047           statement, an options block with each option set to its default will
5048           be used.
5049         </para>
5051         <variablelist>
5053             <varlistentry>
5054               <term><command>attach-cache</command></term>
5055               <listitem>
5056                 <para>
5057                   Allows multiple views to share a single cache
5058                   database.
5059                   Each view has its own cache database by default, but
5060                   if multiple views have the same operational policy
5061                   for name resolution and caching, those views can
5062                   share a single cache to save memory and possibly
5063                   improve resolution efficiency by using this option.
5064                 </para>
5066                 <para>
5067                   The <command>attach-cache</command> option
5068                   may also be specified in <command>view</command>
5069                   statements, in which case it overrides the
5070                   global <command>attach-cache</command> option.
5071                 </para>
5073                 <para>
5074                   The <replaceable>cache_name</replaceable> specifies
5075                   the cache to be shared.
5076                   When the <command>named</command> server configures
5077                   views which are supposed to share a cache, it
5078                   creates a cache with the specified name for the
5079                   first view of these sharing views.
5080                   The rest of the views will simply refer to the
5081                   already created cache.
5082                 </para>
5084                 <para>
5085                   One common configuration to share a cache would be to
5086                   allow all views to share a single cache.
5087                   This can be done by specifying
5088                   the <command>attach-cache</command> as a global
5089                   option with an arbitrary name.
5090                 </para>
5092                 <para>
5093                   Another possible operation is to allow a subset of
5094                   all views to share a cache while the others to
5095                   retain their own caches.
5096                   For example, if there are three views A, B, and C,
5097                   and only A and B should share a cache, specify the
5098                   <command>attach-cache</command> option as a view A (or
5099                   B)'s option, referring to the other view name:
5100                 </para>
5102 <programlisting>
5103   view "A" {
5104     // this view has its own cache
5105     ...
5106   };
5107   view "B" {
5108     // this view refers to A's cache
5109     attach-cache "A";
5110   };
5111   view "C" {
5112     // this view has its own cache
5113     ...
5114   };
5115 </programlisting>
5117                 <para>
5118                   Views that share a cache must have the same policy
5119                   on configurable parameters that may affect caching.
5120                   The current implementation requires the following
5121                   configurable options be consistent among these
5122                   views:
5123                   <command>check-names</command>,
5124                   <command>cleaning-interval</command>,
5125                   <command>dnssec-accept-expired</command>,
5126                   <command>dnssec-validation</command>,
5127                   <command>max-cache-ttl</command>,
5128                   <command>max-ncache-ttl</command>,
5129                   <command>max-cache-size</command>, and
5130                   <command>zero-no-soa-ttl</command>.
5131                 </para>
5133                 <para>
5134                   Note that there may be other parameters that may
5135                   cause confusion if they are inconsistent for
5136                   different views that share a single cache.
5137                   For example, if these views define different sets of
5138                   forwarders that can return different answers for the
5139                   same question, sharing the answer does not make
5140                   sense or could even be harmful.
5141                   It is administrator's responsibility to ensure
5142                   configuration differences in different views do
5143                   not cause disruption with a shared cache.
5144                 </para>
5145               </listitem>
5147             </varlistentry>
5149           <varlistentry>
5150             <term><command>directory</command></term>
5151             <listitem>
5152               <para>
5153                 The working directory of the server.
5154                 Any non-absolute pathnames in the configuration file will be
5155                 taken
5156                 as relative to this directory. The default location for most
5157                 server
5158                 output files (e.g. <filename>named.run</filename>)
5159                 is this directory.
5160                 If a directory is not specified, the working directory
5161                 defaults to `<filename>.</filename>', the directory from
5162                 which the server
5163                 was started. The directory specified should be an absolute
5164                 path.
5165               </para>
5166             </listitem>
5167           </varlistentry>
5169           <varlistentry>
5170             <term><command>key-directory</command></term>
5171             <listitem>
5172               <para>
5173                 When performing dynamic update of secure zones, the
5174                 directory where the public and private DNSSEC key files
5175                 should be found, if different than the current working
5176                 directory.  (Note that this option has no effect on the
5177                 paths for files containing non-DNSSEC keys such as
5178                 <filename>bind.keys</filename>,
5179                 <filename>rndc.key</filename> or
5180                 <filename>session.key</filename>.)
5181               </para>
5182             </listitem>
5183           </varlistentry>
5185           <varlistentry>
5186             <term><command>named-xfer</command></term>
5187             <listitem>
5188               <para>
5189                 <emphasis>This option is obsolete.</emphasis> It
5190                 was used in <acronym>BIND</acronym> 8 to specify
5191                 the pathname to the <command>named-xfer</command>
5192                 program.  In <acronym>BIND</acronym> 9, no separate
5193                 <command>named-xfer</command> program is needed;
5194                 its functionality is built into the name server.
5195               </para>
5196             </listitem>
5197           </varlistentry>
5199           <varlistentry>
5200             <term><command>tkey-gssapi-credential</command></term>
5201             <listitem>
5202               <para>
5203                 The security credential with which the server should
5204                 authenticate keys requested by the GSS-TSIG protocol.
5205                 Currently only Kerberos 5 authentication is available
5206                 and the credential is a Kerberos principal which
5207                 the server can acquire through the default system
5208                 key file, normally <filename>/etc/krb5.keytab</filename>.
5209                 Normally this principal is of the form
5210                 "<userinput>dns/</userinput><varname>server.domain</varname>".
5211                 To use GSS-TSIG, <command>tkey-domain</command>
5212                 must also be set.
5213               </para>
5214             </listitem>
5215           </varlistentry>
5217           <varlistentry>
5218             <term><command>tkey-domain</command></term>
5219             <listitem>
5220               <para>
5221                 The domain appended to the names of all shared keys
5222                 generated with <command>TKEY</command>.  When a
5223                 client requests a <command>TKEY</command> exchange,
5224                 it may or may not specify the desired name for the
5225                 key. If present, the name of the shared key will
5226                 be <varname>client specified part</varname> +
5227                 <varname>tkey-domain</varname>.  Otherwise, the
5228                 name of the shared key will be <varname>random hex
5229                 digits</varname> + <varname>tkey-domain</varname>.
5230                 In most cases, the <command>domainname</command>
5231                 should be the server's domain name, or an otherwise
5232                 non-existent subdomain like
5233                 "_tkey.<varname>domainname</varname>".  If you are
5234                 using GSS-TSIG, this variable must be defined.
5235               </para>
5236             </listitem>
5237           </varlistentry>
5239           <varlistentry>
5240             <term><command>tkey-dhkey</command></term>
5241             <listitem>
5242               <para>
5243                 The Diffie-Hellman key used by the server
5244                 to generate shared keys with clients using the Diffie-Hellman
5245                 mode
5246                 of <command>TKEY</command>. The server must be
5247                 able to load the
5248                 public and private keys from files in the working directory.
5249                 In
5250                 most cases, the keyname should be the server's host name.
5251               </para>
5252             </listitem>
5253           </varlistentry>
5255           <varlistentry>
5256             <term><command>cache-file</command></term>
5257             <listitem>
5258               <para>
5259                 This is for testing only.  Do not use.
5260               </para>
5261             </listitem>
5262           </varlistentry>
5264           <varlistentry>
5265             <term><command>dump-file</command></term>
5266             <listitem>
5267               <para>
5268                 The pathname of the file the server dumps
5269                 the database to when instructed to do so with
5270                 <command>rndc dumpdb</command>.
5271                 If not specified, the default is <filename>named_dump.db</filename>.
5272               </para>
5273             </listitem>
5274           </varlistentry>
5276           <varlistentry>
5277             <term><command>memstatistics-file</command></term>
5278             <listitem>
5279               <para>
5280                 The pathname of the file the server writes memory
5281                 usage statistics to on exit. If not specified,
5282                 the default is <filename>named.memstats</filename>.
5283               </para>
5284             </listitem>
5285           </varlistentry>
5287           <varlistentry>
5288             <term><command>pid-file</command></term>
5289             <listitem>
5290               <para>
5291                 The pathname of the file the server writes its process ID
5292                 in. If not specified, the default is
5293                 <filename>/var/run/named/named.pid</filename>.
5294                 The PID file is used by programs that want to send signals to
5295                 the running
5296                 name server. Specifying <command>pid-file none</command> disables the
5297                 use of a PID file &mdash; no file will be written and any
5298                 existing one will be removed.  Note that <command>none</command>
5299                 is a keyword, not a filename, and therefore is not enclosed
5300                 in
5301                 double quotes.
5302               </para>
5303             </listitem>
5304           </varlistentry>
5306           <varlistentry>
5307             <term><command>recursing-file</command></term>
5308             <listitem>
5309               <para>
5310                 The pathname of the file the server dumps
5311                 the queries that are currently recursing when instructed
5312                 to do so with <command>rndc recursing</command>.
5313                 If not specified, the default is <filename>named.recursing</filename>.
5314               </para>
5315             </listitem>
5316           </varlistentry>
5318           <varlistentry>
5319             <term><command>statistics-file</command></term>
5320             <listitem>
5321               <para>
5322                 The pathname of the file the server appends statistics
5323                 to when instructed to do so using <command>rndc stats</command>.
5324                 If not specified, the default is <filename>named.stats</filename> in the
5325                 server's current directory.  The format of the file is
5326                 described
5327                 in <xref linkend="statsfile"/>.
5328               </para>
5329             </listitem>
5330           </varlistentry>
5332           <varlistentry>
5333             <term><command>bindkeys-file</command></term>
5334             <listitem>
5335               <para>
5336                 The pathname of a file to override the built-in trusted
5337                 keys provided by <command>named</command>.
5338                 See the discussion of <command>dnssec-lookaside</command>
5339                 for details.  If not specified, the default is
5340                 <filename>/etc/bind.keys</filename>.
5341               </para>
5342             </listitem>
5343           </varlistentry>
5345           <varlistentry>
5346             <term><command>session-keyfile</command></term>
5347             <listitem>
5348               <para>
5349                 The pathname of the file into which to write a TSIG
5350                 session key generated by <command>named</command> for use by
5351                 <command>nsupdate -l</command>.  If not specified, the
5352                 default is <filename>/var/run/named/session.key</filename>.
5353                 (See <xref linkend="dynamic_update_policies"/>, and in
5354                 particular the discussion of the
5355                 <command>update-policy</command> statement's
5356                 <userinput>local</userinput> option for more
5357                 information about this feature.)
5358               </para>
5359             </listitem>
5360           </varlistentry>
5362           <varlistentry>
5363             <term><command>session-keyname</command></term>
5364             <listitem>
5365               <para>
5366                 The key name to use for the TSIG session key.
5367                 If not specified, the default is "local-ddns".
5368               </para>
5369             </listitem>
5370           </varlistentry>
5372           <varlistentry>
5373             <term><command>session-keyalg</command></term>
5374             <listitem>
5375               <para>
5376                 The algorithm to use for the TSIG session key.
5377                 Valid values are hmac-sha1, hmac-sha224, hmac-sha256,
5378                 hmac-sha384, hmac-sha512 and hmac-md5.  If not
5379                 specified, the default is hmac-sha256.
5380               </para>
5381             </listitem>
5382           </varlistentry>
5384           <varlistentry>
5385             <term><command>session-keyfile</command></term>
5386             <listitem>
5387               <para>
5388                 The pathname of the file into which to write a session TSIG
5389                 key for use by <command>nsupdate -l</command>.  (See the
5390                 discussion of the <command>update-policy</command>
5391                 statement's <userinput>local</userinput> option for more
5392                 details on this feature.)
5393               </para>
5394             </listitem>
5395           </varlistentry>
5397           <varlistentry>
5398             <term><command>port</command></term>
5399             <listitem>
5400               <para>
5401                 The UDP/TCP port number the server uses for
5402                 receiving and sending DNS protocol traffic.
5403                 The default is 53.  This option is mainly intended for server
5404                 testing;
5405                 a server using a port other than 53 will not be able to
5406                 communicate with
5407                 the global DNS.
5408               </para>
5409             </listitem>
5410           </varlistentry>
5412           <varlistentry>
5413             <term><command>random-device</command></term>
5414             <listitem>
5415               <para>
5416                 The source of entropy to be used by the server.  Entropy is
5417                 primarily needed
5418                 for DNSSEC operations, such as TKEY transactions and dynamic
5419                 update of signed
5420                 zones.  This options specifies the device (or file) from which
5421                 to read
5422                 entropy.  If this is a file, operations requiring entropy will
5423                 fail when the
5424                 file has been exhausted.  If not specified, the default value
5425                 is
5426                 <filename>/dev/random</filename>
5427                 (or equivalent) when present, and none otherwise.  The
5428                 <command>random-device</command> option takes
5429                 effect during
5430                 the initial configuration load at server startup time and
5431                 is ignored on subsequent reloads.
5432               </para>
5433             </listitem>
5434           </varlistentry>
5436           <varlistentry>
5437             <term><command>preferred-glue</command></term>
5438             <listitem>
5439               <para>
5440                 If specified, the listed type (A or AAAA) will be emitted
5441                 before other glue
5442                 in the additional section of a query response.
5443                 The default is not to prefer any type (NONE).
5444               </para>
5445             </listitem>
5446           </varlistentry>
5448           <varlistentry id="root_delegation_only">
5449             <term><command>root-delegation-only</command></term>
5450             <listitem>
5451               <para>
5452                 Turn on enforcement of delegation-only in TLDs
5453                 (top level domains) and root zones with an optional
5454                 exclude list.
5455               </para>
5456               <para>
5457                 DS queries are expected to be made to and be answered by
5458                 delegation only zones.  Such queries and responses are
5459                 treated as an exception to delegation-only processing
5460                 and are not converted to NXDOMAIN responses provided
5461                 a CNAME is not discovered at the query name.
5462               </para>
5463               <para>
5464                 If a delegation only zone server also serves a child
5465                 zone it is not always possible to determine whether
5466                 an answer comes from the delegation only zone or the
5467                 child zone.  SOA NS and DNSKEY records are apex
5468                 only records and a matching response that contains
5469                 these records or DS is treated as coming from a
5470                 child zone.  RRSIG records are also examined to see
5471                 if they are signed by a child zone or not.  The
5472                 authority section is also examined to see if there
5473                 is evidence that the answer is from the child zone.
5474                 Answers that are determined to be from a child zone
5475                 are not converted to NXDOMAIN responses.  Despite
5476                 all these checks there is still a possibility of
5477                 false negatives when a child zone is being served.
5478               </para>
5479               <para>
5480                 Similarly false positives can arise from empty nodes
5481                 (no records at the name) in the delegation only zone
5482                 when the query type is not ANY.
5483               </para>
5484               <para>
5485                 Note some TLDs are not delegation only (e.g. "DE", "LV",
5486                 "US" and "MUSEUM").  This list is not exhaustive.
5487               </para>
5489 <programlisting>
5490 options {
5491         root-delegation-only exclude { "de"; "lv"; "us"; "museum"; };
5493 </programlisting>
5495             </listitem>
5496           </varlistentry>
5498           <varlistentry>
5499             <term><command>disable-algorithms</command></term>
5500             <listitem>
5501               <para>
5502                 Disable the specified DNSSEC algorithms at and below the
5503                 specified name.
5504                 Multiple <command>disable-algorithms</command>
5505                 statements are allowed.
5506                 Only the most specific will be applied.
5507               </para>
5508             </listitem>
5509           </varlistentry>
5511           <varlistentry>
5512             <term><command>dnssec-lookaside</command></term>
5513             <listitem>
5514               <para>
5515                 When set, <command>dnssec-lookaside</command> provides the
5516                 validator with an alternate method to validate DNSKEY
5517                 records at the top of a zone.  When a DNSKEY is at or
5518                 below a domain specified by the deepest
5519                 <command>dnssec-lookaside</command>, and the normal DNSSEC
5520                 validation has left the key untrusted, the trust-anchor
5521                 will be appended to the key name and a DLV record will be
5522                 looked up to see if it can validate the key.  If the DLV
5523                 record validates a DNSKEY (similarly to the way a DS
5524                 record does) the DNSKEY RRset is deemed to be trusted.
5525               </para>
5526               <para>
5527                 If <command>dnssec-lookaside</command> is set to
5528                 <userinput>auto</userinput>, then built-in default
5529                 values for the DLV domain and trust anchor will be
5530                 used, along with a built-in key for validation.
5531               </para>
5532               <para>
5533                 The default DLV key is stored in the file
5534                 <filename>bind.keys</filename>, which
5535                 <command>named</command> loads at startup if
5536                 <command>dnssec-lookaside</command> is set to
5537                 <constant>auto</constant>.  A copy of that file is
5538                 installed along with <acronym>BIND</acronym> 9, and is
5539                 current as of the release date.  If the DLV key expires, a
5540                 new copy of <filename>bind.keys</filename> can be downloaded
5541                 from <ulink>https://www.isc.org/solutions/dlv</ulink>.
5542               </para>
5543               <para>
5544                 (To prevent problems if <filename>bind.keys</filename> is
5545                 not found, the current key is also compiled in to
5546                 <command>named</command>.  Relying on this is not
5547                 recommended, however, as it requires <command>named</command>
5548                 to be recompiled with a new key when the DLV key expires.)
5549               </para>
5550               <para>
5551                 NOTE: Using <filename>bind.keys</filename> to store
5552                 locally-configured keys is possible, but not
5553                 recommended, as the file will be overwritten whenever
5554                 <acronym>BIND</acronym> 9 is re-installed or upgraded.
5555               </para>
5556             </listitem>
5557           </varlistentry>
5559           <varlistentry>
5560             <term><command>dnssec-must-be-secure</command></term>
5561             <listitem>
5562               <para>
5563                 Specify hierarchies which must be or may not be secure
5564                 (signed and validated).  If <userinput>yes</userinput>,
5565                 then <command>named</command> will only accept answers if
5566                 they are secure.  If <userinput>no</userinput>, then normal
5567                 DNSSEC validation applies allowing for insecure answers to
5568                 be accepted.  The specified domain must be under a
5569                 <command>trusted-keys</command> or
5570                 <command>managed-keys</command> statement, or
5571                 <command>dnssec-lookaside</command> must be active.
5572               </para>
5573             </listitem>
5574           </varlistentry>
5576         </variablelist>
5578         <sect3 id="boolean_options">
5579           <title>Boolean Options</title>
5581           <variablelist>
5583             <varlistentry>
5584               <term><command>auth-nxdomain</command></term>
5585               <listitem>
5586                 <para>
5587                   If <userinput>yes</userinput>, then the <command>AA</command> bit
5588                   is always set on NXDOMAIN responses, even if the server is
5589                   not actually
5590                   authoritative. The default is <userinput>no</userinput>;
5591                   this is
5592                   a change from <acronym>BIND</acronym> 8. If you
5593                   are using very old DNS software, you
5594                   may need to set it to <userinput>yes</userinput>.
5595                 </para>
5596               </listitem>
5597             </varlistentry>
5599             <varlistentry>
5600               <term><command>deallocate-on-exit</command></term>
5601               <listitem>
5602                 <para>
5603                   This option was used in <acronym>BIND</acronym>
5604                   8 to enable checking
5605                   for memory leaks on exit. <acronym>BIND</acronym> 9 ignores the option and always performs
5606                   the checks.
5607                 </para>
5608               </listitem>
5609             </varlistentry>
5611             <varlistentry>
5612               <term><command>memstatistics</command></term>
5613               <listitem>
5614                 <para>
5615                   Write memory statistics to the file specified by
5616                   <command>memstatistics-file</command> at exit.
5617                   The default is <userinput>no</userinput> unless
5618                   '-m record' is specified on the command line in
5619                   which case it is <userinput>yes</userinput>.
5620                 </para>
5621               </listitem>
5622             </varlistentry>
5624             <varlistentry>
5625               <term><command>dialup</command></term>
5626               <listitem>
5627                 <para>
5628                   If <userinput>yes</userinput>, then the
5629                   server treats all zones as if they are doing zone transfers
5630                   across
5631                   a dial-on-demand dialup link, which can be brought up by
5632                   traffic
5633                   originating from this server. This has different effects
5634                   according
5635                   to zone type and concentrates the zone maintenance so that
5636                   it all
5637                   happens in a short interval, once every <command>heartbeat-interval</command> and
5638                   hopefully during the one call. It also suppresses some of
5639                   the normal
5640                   zone maintenance traffic. The default is <userinput>no</userinput>.
5641                 </para>
5642                 <para>
5643                   The <command>dialup</command> option
5644                   may also be specified in the <command>view</command> and
5645                   <command>zone</command> statements,
5646                   in which case it overrides the global <command>dialup</command>
5647                   option.
5648                 </para>
5649                 <para>
5650                   If the zone is a master zone, then the server will send out a
5651                   NOTIFY
5652                   request to all the slaves (default). This should trigger the
5653                   zone serial
5654                   number check in the slave (providing it supports NOTIFY)
5655                   allowing the slave
5656                   to verify the zone while the connection is active.
5657                   The set of servers to which NOTIFY is sent can be controlled
5658                   by
5659                   <command>notify</command> and <command>also-notify</command>.
5660                 </para>
5661                 <para>
5662                   If the
5663                   zone is a slave or stub zone, then the server will suppress
5664                   the regular
5665                   "zone up to date" (refresh) queries and only perform them
5666                   when the
5667                   <command>heartbeat-interval</command> expires in
5668                   addition to sending
5669                   NOTIFY requests.
5670                 </para>
5671                 <para>
5672                   Finer control can be achieved by using
5673                   <userinput>notify</userinput> which only sends NOTIFY
5674                   messages,
5675                   <userinput>notify-passive</userinput> which sends NOTIFY
5676                   messages and
5677                   suppresses the normal refresh queries, <userinput>refresh</userinput>
5678                   which suppresses normal refresh processing and sends refresh
5679                   queries
5680                   when the <command>heartbeat-interval</command>
5681                   expires, and
5682                   <userinput>passive</userinput> which just disables normal
5683                   refresh
5684                   processing.
5685                 </para>
5687                 <informaltable colsep="0" rowsep="0">
5688                   <tgroup cols="4" colsep="0" rowsep="0" tgroupstyle="4Level-table">
5689                     <colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
5690                     <colspec colname="2" colnum="2" colsep="0" colwidth="1.150in"/>
5691                     <colspec colname="3" colnum="3" colsep="0" colwidth="1.150in"/>
5692                     <colspec colname="4" colnum="4" colsep="0" colwidth="1.150in"/>
5693                     <tbody>
5694                       <row rowsep="0">
5695                         <entry colname="1">
5696                           <para>
5697                             dialup mode
5698                           </para>
5699                         </entry>
5700                         <entry colname="2">
5701                           <para>
5702                             normal refresh
5703                           </para>
5704                         </entry>
5705                         <entry colname="3">
5706                           <para>
5707                             heart-beat refresh
5708                           </para>
5709                         </entry>
5710                         <entry colname="4">
5711                           <para>
5712                             heart-beat notify
5713                           </para>
5714                         </entry>
5715                       </row>
5716                       <row rowsep="0">
5717                         <entry colname="1">
5718                           <para><command>no</command> (default)</para>
5719                         </entry>
5720                         <entry colname="2">
5721                           <para>
5722                             yes
5723                           </para>
5724                         </entry>
5725                         <entry colname="3">
5726                           <para>
5727                             no
5728                           </para>
5729                         </entry>
5730                         <entry colname="4">
5731                           <para>
5732                             no
5733                           </para>
5734                         </entry>
5735                       </row>
5736                       <row rowsep="0">
5737                         <entry colname="1">
5738                           <para><command>yes</command></para>
5739                         </entry>
5740                         <entry colname="2">
5741                           <para>
5742                             no
5743                           </para>
5744                         </entry>
5745                         <entry colname="3">
5746                           <para>
5747                             yes
5748                           </para>
5749                         </entry>
5750                         <entry colname="4">
5751                           <para>
5752                             yes
5753                           </para>
5754                         </entry>
5755                       </row>
5756                       <row rowsep="0">
5757                         <entry colname="1">
5758                           <para><command>notify</command></para>
5759                         </entry>
5760                         <entry colname="2">
5761                           <para>
5762                             yes
5763                           </para>
5764                         </entry>
5765                         <entry colname="3">
5766                           <para>
5767                             no
5768                           </para>
5769                         </entry>
5770                         <entry colname="4">
5771                           <para>
5772                             yes
5773                           </para>
5774                         </entry>
5775                       </row>
5776                       <row rowsep="0">
5777                         <entry colname="1">
5778                           <para><command>refresh</command></para>
5779                         </entry>
5780                         <entry colname="2">
5781                           <para>
5782                             no
5783                           </para>
5784                         </entry>
5785                         <entry colname="3">
5786                           <para>
5787                             yes
5788                           </para>
5789                         </entry>
5790                         <entry colname="4">
5791                           <para>
5792                             no
5793                           </para>
5794                         </entry>
5795                       </row>
5796                       <row rowsep="0">
5797                         <entry colname="1">
5798                           <para><command>passive</command></para>
5799                         </entry>
5800                         <entry colname="2">
5801                           <para>
5802                             no
5803                           </para>
5804                         </entry>
5805                         <entry colname="3">
5806                           <para>
5807                             no
5808                           </para>
5809                         </entry>
5810                         <entry colname="4">
5811                           <para>
5812                             no
5813                           </para>
5814                         </entry>
5815                       </row>
5816                       <row rowsep="0">
5817                         <entry colname="1">
5818                           <para><command>notify-passive</command></para>
5819                         </entry>
5820                         <entry colname="2">
5821                           <para>
5822                             no
5823                           </para>
5824                         </entry>
5825                         <entry colname="3">
5826                           <para>
5827                             no
5828                           </para>
5829                         </entry>
5830                         <entry colname="4">
5831                           <para>
5832                             yes
5833                           </para>
5834                         </entry>
5835                       </row>
5836                     </tbody>
5837                   </tgroup>
5838                 </informaltable>
5840                 <para>
5841                   Note that normal NOTIFY processing is not affected by
5842                   <command>dialup</command>.
5843                 </para>
5845               </listitem>
5846             </varlistentry>
5848             <varlistentry>
5849               <term><command>fake-iquery</command></term>
5850               <listitem>
5851                 <para>
5852                   In <acronym>BIND</acronym> 8, this option
5853                   enabled simulating the obsolete DNS query type
5854                   IQUERY. <acronym>BIND</acronym> 9 never does
5855                   IQUERY simulation.
5856                 </para>
5857               </listitem>
5858             </varlistentry>
5860             <varlistentry>
5861               <term><command>fetch-glue</command></term>
5862               <listitem>
5863                 <para>
5864                   This option is obsolete.
5865                   In BIND 8, <userinput>fetch-glue yes</userinput>
5866                   caused the server to attempt to fetch glue resource records
5867                   it
5868                   didn't have when constructing the additional
5869                   data section of a response.  This is now considered a bad
5870                   idea
5871                   and BIND 9 never does it.
5872                 </para>
5873               </listitem>
5874             </varlistentry>
5876             <varlistentry>
5877               <term><command>flush-zones-on-shutdown</command></term>
5878               <listitem>
5879                 <para>
5880                   When the nameserver exits due receiving SIGTERM,
5881                   flush or do not flush any pending zone writes.  The default
5882                   is
5883                   <command>flush-zones-on-shutdown</command> <userinput>no</userinput>.
5884                 </para>
5885               </listitem>
5886             </varlistentry>
5888             <varlistentry>
5889               <term><command>has-old-clients</command></term>
5890               <listitem>
5891                 <para>
5892                   This option was incorrectly implemented
5893                   in <acronym>BIND</acronym> 8, and is ignored by <acronym>BIND</acronym> 9.
5894                   To achieve the intended effect
5895                   of
5896                   <command>has-old-clients</command> <userinput>yes</userinput>, specify
5897                   the two separate options <command>auth-nxdomain</command> <userinput>yes</userinput>
5898                   and <command>rfc2308-type1</command> <userinput>no</userinput> instead.
5899                 </para>
5900               </listitem>
5901             </varlistentry>
5903             <varlistentry>
5904               <term><command>host-statistics</command></term>
5905               <listitem>
5906                 <para>
5907                   In BIND 8, this enables keeping of
5908                   statistics for every host that the name server interacts
5909                   with.
5910                   Not implemented in BIND 9.
5911                 </para>
5912               </listitem>
5913             </varlistentry>
5915             <varlistentry>
5916               <term><command>maintain-ixfr-base</command></term>
5917               <listitem>
5918                 <para>
5919                   <emphasis>This option is obsolete</emphasis>.
5920                   It was used in <acronym>BIND</acronym> 8 to
5921                   determine whether a transaction log was
5922                   kept for Incremental Zone Transfer. <acronym>BIND</acronym> 9 maintains a transaction
5923                   log whenever possible.  If you need to disable outgoing
5924                   incremental zone
5925                   transfers, use <command>provide-ixfr</command> <userinput>no</userinput>.
5926                 </para>
5927               </listitem>
5928             </varlistentry>
5930             <varlistentry>
5931               <term><command>minimal-responses</command></term>
5932               <listitem>
5933                 <para>
5934                   If <userinput>yes</userinput>, then when generating
5935                   responses the server will only add records to the authority
5936                   and additional data sections when they are required (e.g.
5937                   delegations, negative responses).  This may improve the
5938                   performance of the server.
5939                   The default is <userinput>no</userinput>.
5940                 </para>
5941               </listitem>
5942             </varlistentry>
5944             <varlistentry>
5945               <term><command>multiple-cnames</command></term>
5946               <listitem>
5947                 <para>
5948                   This option was used in <acronym>BIND</acronym> 8 to allow
5949                   a domain name to have multiple CNAME records in violation of
5950                   the DNS standards.  <acronym>BIND</acronym> 9.2 onwards
5951                   always strictly enforces the CNAME rules both in master
5952                   files and dynamic updates.
5953                 </para>
5954               </listitem>
5955             </varlistentry>
5957             <varlistentry>
5958               <term><command>notify</command></term>
5959               <listitem>
5960                 <para>
5961                   If <userinput>yes</userinput> (the default),
5962                   DNS NOTIFY messages are sent when a zone the server is
5963                   authoritative for
5964                   changes, see <xref linkend="notify"/>.  The messages are
5965                   sent to the
5966                   servers listed in the zone's NS records (except the master
5967                   server identified
5968                   in the SOA MNAME field), and to any servers listed in the
5969                   <command>also-notify</command> option.
5970                 </para>
5971                 <para>
5972                   If <userinput>master-only</userinput>, notifies are only
5973                   sent
5974                   for master zones.
5975                   If <userinput>explicit</userinput>, notifies are sent only
5976                   to
5977                   servers explicitly listed using <command>also-notify</command>.
5978                   If <userinput>no</userinput>, no notifies are sent.
5979                 </para>
5980                 <para>
5981                   The <command>notify</command> option may also be
5982                   specified in the <command>zone</command>
5983                   statement,
5984                   in which case it overrides the <command>options notify</command> statement.
5985                   It would only be necessary to turn off this option if it
5986                   caused slaves
5987                   to crash.
5988                 </para>
5989               </listitem>
5990             </varlistentry>
5992             <varlistentry>
5993               <term><command>notify-to-soa</command></term>
5994               <listitem>
5995                 <para>
5996                   If <userinput>yes</userinput> do not check the nameservers
5997                   in the NS RRset against the SOA MNAME.  Normally a NOTIFY
5998                   message is not sent to the SOA MNAME (SOA ORIGIN) as it is
5999                   supposed to contain the name of the ultimate master.
6000                   Sometimes, however, a slave is listed as the SOA MNAME in
6001                   hidden master configurations and in that case you would
6002                   want the ultimate master to still send NOTIFY messages to
6003                   all the nameservers listed in the NS RRset.
6004                 </para>
6005               </listitem>
6006             </varlistentry>
6008             <varlistentry>
6009               <term><command>recursion</command></term>
6010               <listitem>
6011                 <para>
6012                   If <userinput>yes</userinput>, and a
6013                   DNS query requests recursion, then the server will attempt
6014                   to do
6015                   all the work required to answer the query. If recursion is
6016                   off
6017                   and the server does not already know the answer, it will
6018                   return a
6019                   referral response. The default is
6020                   <userinput>yes</userinput>.
6021                   Note that setting <command>recursion no</command> does not prevent
6022                   clients from getting data from the server's cache; it only
6023                   prevents new data from being cached as an effect of client
6024                   queries.
6025                   Caching may still occur as an effect the server's internal
6026                   operation, such as NOTIFY address lookups.
6027                   See also <command>fetch-glue</command> above.
6028                 </para>
6029               </listitem>
6030             </varlistentry>
6032             <varlistentry>
6033               <term><command>rfc2308-type1</command></term>
6034               <listitem>
6035                 <para>
6036                   Setting this to <userinput>yes</userinput> will
6037                   cause the server to send NS records along with the SOA
6038                   record for negative
6039                   answers. The default is <userinput>no</userinput>.
6040                 </para>
6041                 <note>
6042                   <simpara>
6043                     Not yet implemented in <acronym>BIND</acronym>
6044                     9.
6045                   </simpara>
6046                 </note>
6047               </listitem>
6048             </varlistentry>
6050             <varlistentry>
6051               <term><command>use-id-pool</command></term>
6052               <listitem>
6053                 <para>
6054                   <emphasis>This option is obsolete</emphasis>.
6055                   <acronym>BIND</acronym> 9 always allocates query
6056                   IDs from a pool.
6057                 </para>
6058               </listitem>
6059             </varlistentry>
6061             <varlistentry>
6062               <term><command>zone-statistics</command></term>
6063               <listitem>
6064                 <para>
6065                   If <userinput>yes</userinput>, the server will collect
6066                   statistical data on all zones (unless specifically turned
6067                   off
6068                   on a per-zone basis by specifying <command>zone-statistics no</command>
6069                   in the <command>zone</command> statement).
6070                   The default is <userinput>no</userinput>.
6071                   These statistics may be accessed
6072                   using <command>rndc stats</command>, which will
6073                   dump them to the file listed
6074                   in the <command>statistics-file</command>.  See
6075                   also <xref linkend="statsfile"/>.
6076                 </para>
6077               </listitem>
6078             </varlistentry>
6080             <varlistentry>
6081               <term><command>use-ixfr</command></term>
6082               <listitem>
6083                 <para>
6084                   <emphasis>This option is obsolete</emphasis>.
6085                   If you need to disable IXFR to a particular server or
6086                   servers, see
6087                   the information on the <command>provide-ixfr</command> option
6088                   in <xref linkend="server_statement_definition_and_usage"/>.
6089                   See also
6090                   <xref linkend="incremental_zone_transfers"/>.
6091                 </para>
6092               </listitem>
6093             </varlistentry>
6095             <varlistentry>
6096               <term><command>provide-ixfr</command></term>
6097               <listitem>
6098                 <para>
6099                   See the description of
6100                   <command>provide-ixfr</command> in
6101                   <xref linkend="server_statement_definition_and_usage"/>.
6102                 </para>
6103               </listitem>
6104             </varlistentry>
6106             <varlistentry>
6107               <term><command>request-ixfr</command></term>
6108               <listitem>
6109                 <para>
6110                   See the description of
6111                   <command>request-ixfr</command> in
6112                   <xref linkend="server_statement_definition_and_usage"/>.
6113                 </para>
6114               </listitem>
6115             </varlistentry>
6117             <varlistentry>
6118               <term><command>treat-cr-as-space</command></term>
6119               <listitem>
6120                 <para>
6121                   This option was used in <acronym>BIND</acronym>
6122                   8 to make
6123                   the server treat carriage return ("<command>\r</command>") characters the same way
6124                   as a space or tab character,
6125                   to facilitate loading of zone files on a UNIX system that
6126                   were generated
6127                   on an NT or DOS machine. In <acronym>BIND</acronym> 9, both UNIX "<command>\n</command>"
6128                   and NT/DOS "<command>\r\n</command>" newlines
6129                   are always accepted,
6130                   and the option is ignored.
6131                 </para>
6132               </listitem>
6133             </varlistentry>
6135             <varlistentry>
6136               <term><command>additional-from-auth</command></term>
6137               <term><command>additional-from-cache</command></term>
6138               <listitem>
6140                 <para>
6141                   These options control the behavior of an authoritative
6142                   server when
6143                   answering queries which have additional data, or when
6144                   following CNAME
6145                   and DNAME chains.
6146                 </para>
6148                 <para>
6149                   When both of these options are set to <userinput>yes</userinput>
6150                   (the default) and a
6151                   query is being answered from authoritative data (a zone
6152                   configured into the server), the additional data section of
6153                   the
6154                   reply will be filled in using data from other authoritative
6155                   zones
6156                   and from the cache.  In some situations this is undesirable,
6157                   such
6158                   as when there is concern over the correctness of the cache,
6159                   or
6160                   in servers where slave zones may be added and modified by
6161                   untrusted third parties.  Also, avoiding
6162                   the search for this additional data will speed up server
6163                   operations
6164                   at the possible expense of additional queries to resolve
6165                   what would
6166                   otherwise be provided in the additional section.
6167                 </para>
6169                 <para>
6170                   For example, if a query asks for an MX record for host <literal>foo.example.com</literal>,
6171                   and the record found is "<literal>MX 10 mail.example.net</literal>", normally the address
6172                   records (A and AAAA) for <literal>mail.example.net</literal> will be provided as well,
6173                   if known, even though they are not in the example.com zone.
6174                   Setting these options to <command>no</command>
6175                   disables this behavior and makes
6176                   the server only search for additional data in the zone it
6177                   answers from.
6178                 </para>
6180                 <para>
6181                   These options are intended for use in authoritative-only
6182                   servers, or in authoritative-only views.  Attempts to set
6183                   them to <command>no</command> without also
6184                   specifying
6185                   <command>recursion no</command> will cause the
6186                   server to
6187                   ignore the options and log a warning message.
6188                 </para>
6190                 <para>
6191                   Specifying <command>additional-from-cache no</command> actually
6192                   disables the use of the cache not only for additional data
6193                   lookups
6194                   but also when looking up the answer.  This is usually the
6195                   desired
6196                   behavior in an authoritative-only server where the
6197                   correctness of
6198                   the cached data is an issue.
6199                 </para>
6201                 <para>
6202                   When a name server is non-recursively queried for a name
6203                   that is not
6204                   below the apex of any served zone, it normally answers with
6205                   an
6206                   "upwards referral" to the root servers or the servers of
6207                   some other
6208                   known parent of the query name.  Since the data in an
6209                   upwards referral
6210                   comes from the cache, the server will not be able to provide
6211                   upwards
6212                   referrals when <command>additional-from-cache no</command>
6213                   has been specified.  Instead, it will respond to such
6214                   queries
6215                   with REFUSED.  This should not cause any problems since
6216                   upwards referrals are not required for the resolution
6217                   process.
6218                 </para>
6220               </listitem>
6221             </varlistentry>
6223             <varlistentry>
6224               <term><command>match-mapped-addresses</command></term>
6225               <listitem>
6226                 <para>
6227                   If <userinput>yes</userinput>, then an
6228                   IPv4-mapped IPv6 address will match any address match
6229                   list entries that match the corresponding IPv4 address.
6230                 </para>
6231                 <para>
6232                   This option was introduced to work around a kernel quirk
6233                   in some operating systems that causes IPv4 TCP
6234                   connections, such as zone transfers, to be accepted on an
6235                   IPv6 socket using mapped addresses.  This caused address
6236                   match lists designed for IPv4 to fail to match.  However,
6237                   <command>named</command> now solves this problem
6238                   internally.  The use of this option is discouraged.
6239                 </para>
6240               </listitem>
6241             </varlistentry>
6243             <varlistentry>
6244               <term><command>filter-aaaa-on-v4</command></term>
6245               <listitem>
6246                 <para>
6247                   This option is only available when
6248                   <acronym>BIND</acronym> 9 is compiled with the
6249                   <userinput>--enable-filter-aaaa</userinput> option on the
6250                   "configure" command line.  It is intended to help the
6251                   transition from IPv4 to IPv6 by not giving IPv6 addresses
6252                   to DNS clients unless they have connections to the IPv6
6253                   Internet.  This is not recommended unless absolutely
6254                   necessary.  The default is <userinput>no</userinput>.
6255                   The <command>filter-aaaa-on-v4</command> option
6256                   may also be specified in <command>view</command> statements
6257                   to override the global <command>filter-aaaa-on-v4</command>
6258                   option.
6259                 </para>
6260                 <para>
6261                   If <userinput>yes</userinput>,
6262                   the DNS client is at an IPv4 address,
6263                   and if the response does not include DNSSEC signatures, 
6264                   then all AAAA records are deleted from the response.
6265                   This filtering applies to all responses and not only
6266                   authoritative responses.
6267                 </para>
6268                 <para>
6269                   If <userinput>break-dnssec</userinput>,
6270                   then AAAA records are deleted even when dnssec is enabled.
6271                   As suggested by the name, this makes the response not verify,
6272                   because the DNSSEC protocol is designed detect deletions.
6273                 </para>
6274                 <para>
6275                   This mechanism can erroneously cause other servers to 
6276                   not give AAAA records to their clients.  
6277                   A recursing server with both IPv6 and IPv4 network connections
6278                   that queries an authoritative server using this mechanism
6279                   via IPv4 will be denied AAAA records even if its client is
6280                   using IPv6.
6281                 </para>
6282                 <para>
6283                   This mechanism is applied to authoritative as well as
6284                   non-authoritative records.
6285                   A client using IPv4 that is not allowed recursion can
6286                   erroneously be given AAAA records because the server is not
6287                   allowed to check for A records.
6288                 </para>
6289                 <para>
6290                   Some AAAA records are given to IPv4 clients in glue records.
6291                   IPv4 clients that are servers can then erroneously
6292                   answer requests for AAAA records received via IPv4.
6293                 </para>
6294               </listitem>
6295             </varlistentry>
6297             <varlistentry>
6298               <term><command>ixfr-from-differences</command></term>
6299               <listitem>
6300                 <para>
6301                   When <userinput>yes</userinput> and the server loads a new version of a master
6302                   zone from its zone file or receives a new version of a slave
6303                   file by a non-incremental zone transfer, it will compare
6304                   the new version to the previous one and calculate a set
6305                   of differences.  The differences are then logged in the
6306                   zone's journal file such that the changes can be transmitted
6307                   to downstream slaves as an incremental zone transfer.
6308                 </para>
6309                 <para>
6310                   By allowing incremental zone transfers to be used for
6311                   non-dynamic zones, this option saves bandwidth at the
6312                   expense of increased CPU and memory consumption at the
6313                   master.
6314                   In particular, if the new version of a zone is completely
6315                   different from the previous one, the set of differences
6316                   will be of a size comparable to the combined size of the
6317                   old and new zone version, and the server will need to
6318                   temporarily allocate memory to hold this complete
6319                   difference set.
6320                 </para>
6321                 <para><command>ixfr-from-differences</command>
6322                   also accepts <command>master</command> and
6323                   <command>slave</command> at the view and options
6324                   levels which causes
6325                   <command>ixfr-from-differences</command> to be enabled for
6326                   all <command>master</command> or
6327                   <command>slave</command> zones respectively.
6328                   It is off by default.
6329                 </para>
6330               </listitem>
6331             </varlistentry>
6333             <varlistentry>
6334               <term><command>multi-master</command></term>
6335               <listitem>
6336                 <para>
6337                   This should be set when you have multiple masters for a zone
6338                   and the
6339                   addresses refer to different machines.  If <userinput>yes</userinput>, <command>named</command> will
6340                   not log
6341                   when the serial number on the master is less than what <command>named</command>
6342                   currently
6343                   has.  The default is <userinput>no</userinput>.
6344                 </para>
6345               </listitem>
6346             </varlistentry>
6348             <varlistentry>
6349               <term><command>dnssec-enable</command></term>
6350               <listitem>
6351                 <para>
6352                   Enable DNSSEC support in <command>named</command>.  Unless set to <userinput>yes</userinput>,
6353                   <command>named</command> behaves as if it does not support DNSSEC.
6354                   The default is <userinput>yes</userinput>.
6355                 </para>
6356               </listitem>
6357             </varlistentry>
6359             <varlistentry>
6360               <term><command>dnssec-validation</command></term>
6361               <listitem>
6362                 <para>
6363                   Enable DNSSEC validation in <command>named</command>.
6364                   Note <command>dnssec-enable</command> also needs to be
6365                   set to <userinput>yes</userinput> to be effective.
6366                   The default is <userinput>yes</userinput>.
6367                 </para>
6368               </listitem>
6369             </varlistentry>
6371             <varlistentry>
6372               <term><command>dnssec-accept-expired</command></term>
6373               <listitem>
6374                 <para>
6375                   Accept expired signatures when verifying DNSSEC signatures.
6376                   The default is <userinput>no</userinput>.
6377                   Setting this option to <userinput>yes</userinput>
6378                   leaves <command>named</command> vulnerable to
6379                   replay attacks.
6380                 </para>
6381               </listitem>
6382             </varlistentry>
6384             <varlistentry>
6385               <term><command>querylog</command></term>
6386               <listitem>
6387                 <para>
6388                   Specify whether query logging should be started when <command>named</command>
6389                   starts.
6390                   If <command>querylog</command> is not specified,
6391                   then the query logging
6392                   is determined by the presence of the logging category <command>queries</command>.
6393                 </para>
6394               </listitem>
6395             </varlistentry>
6397             <varlistentry>
6398               <term><command>check-names</command></term>
6399               <listitem>
6400                 <para>
6401                   This option is used to restrict the character set and syntax
6402                   of
6403                   certain domain names in master files and/or DNS responses
6404                   received
6405                   from the network.  The default varies according to usage
6406                   area.  For
6407                   <command>master</command> zones the default is <command>fail</command>.
6408                   For <command>slave</command> zones the default
6409                   is <command>warn</command>.
6410                   For answers received from the network (<command>response</command>)
6411                   the default is <command>ignore</command>.
6412                 </para>
6413                 <para>
6414                   The rules for legal hostnames and mail domains are derived
6415                   from RFC 952 and RFC 821 as modified by RFC 1123.
6416                 </para>
6417                 <para><command>check-names</command>
6418                   applies to the owner names of A, AAAA and MX records.
6419                   It also applies to the domain names in the RDATA of NS, SOA,
6420                   MX, and SRV records.
6421                   It also applies to the RDATA of PTR records where the owner
6422                   name indicated that it is a reverse lookup of a hostname
6423                   (the owner name ends in IN-ADDR.ARPA, IP6.ARPA, or IP6.INT).
6424                 </para>
6425               </listitem>
6426             </varlistentry>
6428             <varlistentry>
6429               <term><command>check-dup-records</command></term>
6430               <listitem>
6431                 <para>
6432                   Check master zones for records that are treated as different
6433                   by DNSSEC but are semantically equal in plain DNS.  The
6434                   default is to <command>warn</command>.  Other possible
6435                   values are <command>fail</command> and
6436                   <command>ignore</command>.
6437                 </para>
6438               </listitem>
6439             </varlistentry>
6441             <varlistentry>
6442               <term><command>check-mx</command></term>
6443               <listitem>
6444                 <para>
6445                   Check whether the MX record appears to refer to a IP address.
6446                   The default is to <command>warn</command>.  Other possible
6447                   values are <command>fail</command> and
6448                   <command>ignore</command>.
6449                 </para>
6450               </listitem>
6451             </varlistentry>
6452             <varlistentry>
6453               <term><command>check-mx</command></term>
6454               <listitem>
6455                 <para>
6456                   Check whether the MX record appears to refer to a IP address.
6457                   The default is to <command>warn</command>.  Other possible
6458                   values are <command>fail</command> and
6459                   <command>ignore</command>.
6460                 </para>
6461               </listitem>
6462             </varlistentry>
6464             <varlistentry>
6465               <term><command>check-wildcard</command></term>
6466               <listitem>
6467                 <para>
6468                   This option is used to check for non-terminal wildcards.
6469                   The use of non-terminal wildcards is almost always as a
6470                   result of a failure
6471                   to understand the wildcard matching algorithm (RFC 1034).
6472                   This option
6473                   affects master zones.  The default (<command>yes</command>) is to check
6474                   for non-terminal wildcards and issue a warning.
6475                 </para>
6476               </listitem>
6477             </varlistentry>
6479             <varlistentry>
6480               <term><command>check-integrity</command></term>
6481               <listitem>
6482                 <para>
6483                   Perform post load zone integrity checks on master
6484                   zones.  This checks that MX and SRV records refer
6485                   to address (A or AAAA) records and that glue
6486                   address records exist for delegated zones.  For
6487                   MX and SRV records only in-zone hostnames are
6488                   checked (for out-of-zone hostnames use
6489                   <command>named-checkzone</command>).
6490                   For NS records only names below top of zone are
6491                   checked (for out-of-zone names and glue consistency
6492                   checks use <command>named-checkzone</command>).
6493                   The default is <command>yes</command>.
6494                 </para>
6495               </listitem>
6496             </varlistentry>
6498             <varlistentry>
6499               <term><command>check-mx-cname</command></term>
6500               <listitem>
6501                 <para>
6502                   If <command>check-integrity</command> is set then
6503                   fail, warn or ignore MX records that refer
6504                   to CNAMES.  The default is to <command>warn</command>.
6505                 </para>
6506               </listitem>
6507             </varlistentry>
6509             <varlistentry>
6510               <term><command>check-srv-cname</command></term>
6511               <listitem>
6512                 <para>
6513                   If <command>check-integrity</command> is set then
6514                   fail, warn or ignore SRV records that refer
6515                   to CNAMES.  The default is to <command>warn</command>.
6516                 </para>
6517               </listitem>
6518             </varlistentry>
6520             <varlistentry>
6521               <term><command>check-sibling</command></term>
6522               <listitem>
6523                 <para>
6524                   When performing integrity checks, also check that
6525                   sibling glue exists.  The default is <command>yes</command>.
6526                 </para>
6527               </listitem>
6528             </varlistentry>
6530             <varlistentry>
6531               <term><command>zero-no-soa-ttl</command></term>
6532               <listitem>
6533                 <para>
6534                   When returning authoritative negative responses to
6535                   SOA queries set the TTL of the SOA record returned in
6536                   the authority section to zero.
6537                   The default is <command>yes</command>.
6538                 </para>
6539               </listitem>
6540             </varlistentry>
6542             <varlistentry>
6543               <term><command>zero-no-soa-ttl-cache</command></term>
6544               <listitem>
6545                 <para>
6546                   When caching a negative response to a SOA query
6547                   set the TTL to zero.
6548                   The default is <command>no</command>.
6549                 </para>
6550               </listitem>
6551             </varlistentry>
6553             <varlistentry>
6554               <term><command>update-check-ksk</command></term>
6555               <listitem>
6556                 <para>
6557                   When set to the default value of <literal>yes</literal>,
6558                   check the KSK bit in each key to determine how the key
6559                   should be used when generating RRSIGs for a secure zone.
6560                 </para>
6561                 <para>
6562                   Ordinarily, zone-signing keys (that is, keys without the
6563                   KSK bit set) are used to sign the entire zone, while
6564                   key-signing keys (keys with the KSK bit set) are only
6565                   used to sign the DNSKEY RRset at the zone apex.
6566                   However, if this option is set to <literal>no</literal>,
6567                   then the KSK bit is ignored; KSKs are treated as if they
6568                   were ZSKs and are used to sign the entire zone.  This is
6569                   similar to the <command>dnssec-signzone -z</command>
6570                   command line option.
6571                 </para>
6572                 <para>
6573                   When this option is set to <literal>yes</literal>, there
6574                   must be at least two active keys for every algorithm
6575                   represented in the DNSKEY RRset: at least one KSK and one
6576                   ZSK per algorithm.  If there is any algorithm for which
6577                   this requirement is not met, this option will be ignored
6578                   for that algorithm.
6579                 </para>
6580               </listitem>
6581             </varlistentry>
6583             <varlistentry>
6584               <term><command>dnssec-dnskey-kskonly</command></term>
6585               <listitem>
6586                 <para>
6587                   When this option and <command>update-check-ksk</command>
6588                   are both set to <literal>yes</literal>, only key-signing
6589                   keys (that is, keys with the KSK bit set) will be used
6590                   to sign the DNSKEY RRset at the zone apex.  Zone-signing
6591                   keys (keys without the KSK bit set) will be used to sign
6592                   the remainder of the zone, but not the DNSKEY RRset.
6593                   This is similar to the
6594                   <command>dnssec-signzone -x</command> command line option.
6595                 </para>
6596                 <para>
6597                   The default is <command>no</command>.  If
6598                   <command>update-check-ksk</command> is set to
6599                   <literal>no</literal>, this option is ignored.
6600                 </para>
6601               </listitem>
6602             </varlistentry>
6604             <varlistentry>
6605               <term><command>try-tcp-refresh</command></term>
6606               <listitem>
6607                 <para>
6608                   Try to refresh the zone using TCP if UDP queries fail.
6609                   For BIND 8 compatibility, the default is
6610                   <command>yes</command>.
6611                 </para>
6612               </listitem>
6613             </varlistentry>
6615             <varlistentry>
6616               <term><command>dnssec-secure-to-insecure</command></term>
6617               <listitem>
6618                 <para>
6619                   Allow a zone to transition from secure to insecure by
6620                   deleting all DNSKEY records.  The default is
6621                   <command>no</command>.
6622                 </para>
6623               </listitem>
6624             </varlistentry>
6626           </variablelist>
6628         </sect3>
6630         <sect3>
6631           <title>Forwarding</title>
6632           <para>
6633             The forwarding facility can be used to create a large site-wide
6634             cache on a few servers, reducing traffic over links to external
6635             name servers. It can also be used to allow queries by servers that
6636             do not have direct access to the Internet, but wish to look up
6637             exterior
6638             names anyway. Forwarding occurs only on those queries for which
6639             the server is not authoritative and does not have the answer in
6640             its cache.
6641           </para>
6643           <variablelist>
6644             <varlistentry>
6645               <term><command>forward</command></term>
6646               <listitem>
6647                 <para>
6648                   This option is only meaningful if the
6649                   forwarders list is not empty. A value of <varname>first</varname>,
6650                   the default, causes the server to query the forwarders
6651                   first &mdash; and
6652                   if that doesn't answer the question, the server will then
6653                   look for
6654                   the answer itself. If <varname>only</varname> is
6655                   specified, the
6656                   server will only query the forwarders.
6657                 </para>
6658               </listitem>
6659             </varlistentry>
6661             <varlistentry>
6662               <term><command>forwarders</command></term>
6663               <listitem>
6664                 <para>
6665                   Specifies the IP addresses to be used
6666                   for forwarding. The default is the empty list (no
6667                   forwarding).
6668                 </para>
6669               </listitem>
6670             </varlistentry>
6672           </variablelist>
6674           <para>
6675             Forwarding can also be configured on a per-domain basis, allowing
6676             for the global forwarding options to be overridden in a variety
6677             of ways. You can set particular domains to use different
6678             forwarders,
6679             or have a different <command>forward only/first</command> behavior,
6680             or not forward at all, see <xref linkend="zone_statement_grammar"/>.
6681           </para>
6682         </sect3>
6684         <sect3>
6685           <title>Dual-stack Servers</title>
6686           <para>
6687             Dual-stack servers are used as servers of last resort to work
6688             around
6689             problems in reachability due the lack of support for either IPv4
6690             or IPv6
6691             on the host machine.
6692           </para>
6694           <variablelist>
6695             <varlistentry>
6696               <term><command>dual-stack-servers</command></term>
6697               <listitem>
6698                 <para>
6699                   Specifies host names or addresses of machines with access to
6700                   both IPv4 and IPv6 transports. If a hostname is used, the
6701                   server must be able
6702                   to resolve the name using only the transport it has.  If the
6703                   machine is dual
6704                   stacked, then the <command>dual-stack-servers</command> have no effect unless
6705                   access to a transport has been disabled on the command line
6706                   (e.g. <command>named -4</command>).
6707                 </para>
6708               </listitem>
6709             </varlistentry>
6710           </variablelist>
6711         </sect3>
6713         <sect3 id="access_control">
6714           <title>Access Control</title>
6716           <para>
6717             Access to the server can be restricted based on the IP address
6718             of the requesting system. See <xref linkend="address_match_lists"/> for
6719             details on how to specify IP address lists.
6720           </para>
6722           <variablelist>
6724             <varlistentry>
6725               <term><command>allow-notify</command></term>
6726               <listitem>
6727                 <para>
6728                   Specifies which hosts are allowed to
6729                   notify this server, a slave, of zone changes in addition
6730                   to the zone masters.
6731                   <command>allow-notify</command> may also be
6732                   specified in the
6733                   <command>zone</command> statement, in which case
6734                   it overrides the
6735                   <command>options allow-notify</command>
6736                   statement.  It is only meaningful
6737                   for a slave zone.  If not specified, the default is to
6738                   process notify messages
6739                   only from a zone's master.
6740                 </para>
6741               </listitem>
6742             </varlistentry>
6744             <varlistentry>
6745               <term><command>allow-query</command></term>
6746               <listitem>
6747                 <para>
6748                   Specifies which hosts are allowed to ask ordinary
6749                   DNS questions. <command>allow-query</command> may
6750                   also be specified in the <command>zone</command>
6751                   statement, in which case it overrides the
6752                   <command>options allow-query</command> statement.
6753                   If not specified, the default is to allow queries
6754                   from all hosts.
6755                 </para>
6756                 <note>
6757                   <para>
6758                     <command>allow-query-cache</command> is now
6759                     used to specify access to the cache.
6760                   </para>
6761                 </note>
6762               </listitem>
6763             </varlistentry>
6765             <varlistentry>
6766               <term><command>allow-query-on</command></term>
6767               <listitem>
6768                 <para>
6769                   Specifies which local addresses can accept ordinary
6770                   DNS questions. This makes it possible, for instance,
6771                   to allow queries on internal-facing interfaces but
6772                   disallow them on external-facing ones, without
6773                   necessarily knowing the internal network's addresses.
6774                 </para>
6775                 <para>
6776                   <command>allow-query-on</command> may
6777                   also be specified in the <command>zone</command>
6778                   statement, in which case it overrides the
6779                   <command>options allow-query-on</command> statement.
6780                 </para>
6781                 <para>
6782                   If not specified, the default is to allow queries
6783                   on all addresses.
6784                 </para>
6785                 <note>
6786                   <para>
6787                     <command>allow-query-cache</command> is
6788                     used to specify access to the cache.
6789                   </para>
6790                 </note>
6791               </listitem>
6792             </varlistentry>
6794             <varlistentry>
6795               <term><command>allow-query-cache</command></term>
6796               <listitem>
6797                 <para>
6798                   Specifies which hosts are allowed to get answers
6799                   from the cache.  If <command>allow-query-cache</command>
6800                   is not set then <command>allow-recursion</command>
6801                   is used if set, otherwise <command>allow-query</command>
6802                   is used if set unless <command>recursion no;</command> is
6803                   set in which case <command>none;</command> is used,
6804                   otherwise the default (<command>localnets;</command>
6805                   <command>localhost;</command>) is used.
6806                 </para>
6807               </listitem>
6808             </varlistentry>
6810             <varlistentry>
6811               <term><command>allow-query-cache-on</command></term>
6812               <listitem>
6813                 <para>
6814                   Specifies which local addresses can give answers
6815                   from the cache.  If not specified, the default is
6816                   to allow cache queries on any address,
6817                   <command>localnets</command> and
6818                   <command>localhost</command>.
6819                 </para>
6820               </listitem>
6821             </varlistentry>
6823             <varlistentry>
6824               <term><command>allow-recursion</command></term>
6825               <listitem>
6826                 <para>
6827                   Specifies which hosts are allowed to make recursive
6828                   queries through this server. If
6829                   <command>allow-recursion</command> is not set
6830                   then <command>allow-query-cache</command> is
6831                   used if set, otherwise <command>allow-query</command>
6832                   is used if set, otherwise the default
6833                   (<command>localnets;</command>
6834                   <command>localhost;</command>) is used.
6835                 </para>
6836               </listitem>
6837             </varlistentry>
6839             <varlistentry>
6840               <term><command>allow-recursion-on</command></term>
6841               <listitem>
6842                 <para>
6843                   Specifies which local addresses can accept recursive
6844                   queries.  If not specified, the default is to allow
6845                   recursive queries on all addresses.
6846                 </para>
6847               </listitem>
6848             </varlistentry>
6850             <varlistentry>
6851               <term><command>allow-update</command></term>
6852               <listitem>
6853                 <para>
6854                   Specifies which hosts are allowed to
6855                   submit Dynamic DNS updates for master zones. The default is
6856                   to deny
6857                   updates from all hosts.  Note that allowing updates based
6858                   on the requestor's IP address is insecure; see
6859                   <xref linkend="dynamic_update_security"/> for details.
6860                 </para>
6861               </listitem>
6862             </varlistentry>
6864             <varlistentry>
6865               <term><command>allow-update-forwarding</command></term>
6866               <listitem>
6867                 <para>
6868                   Specifies which hosts are allowed to
6869                   submit Dynamic DNS updates to slave zones to be forwarded to
6870                   the
6871                   master.  The default is <userinput>{ none; }</userinput>,
6872                   which
6873                   means that no update forwarding will be performed.  To
6874                   enable
6875                   update forwarding, specify
6876                   <userinput>allow-update-forwarding { any; };</userinput>.
6877                   Specifying values other than <userinput>{ none; }</userinput> or
6878                   <userinput>{ any; }</userinput> is usually
6879                   counterproductive, since
6880                   the responsibility for update access control should rest
6881                   with the
6882                   master server, not the slaves.
6883                 </para>
6884                 <para>
6885                   Note that enabling the update forwarding feature on a slave
6886                   server
6887                   may expose master servers relying on insecure IP address
6888                   based
6889                   access control to attacks; see <xref linkend="dynamic_update_security"/>
6890                   for more details.
6891                 </para>
6892               </listitem>
6893             </varlistentry>
6895             <varlistentry>
6896               <term><command>allow-v6-synthesis</command></term>
6897               <listitem>
6898                 <para>
6899                   This option was introduced for the smooth transition from
6900                   AAAA
6901                   to A6 and from "nibble labels" to binary labels.
6902                   However, since both A6 and binary labels were then
6903                   deprecated,
6904                   this option was also deprecated.
6905                   It is now ignored with some warning messages.
6906                 </para>
6907               </listitem>
6908             </varlistentry>
6910             <varlistentry>
6911               <term><command>allow-transfer</command></term>
6912               <listitem>
6913                 <para>
6914                   Specifies which hosts are allowed to
6915                   receive zone transfers from the server. <command>allow-transfer</command> may
6916                   also be specified in the <command>zone</command>
6917                   statement, in which
6918                   case it overrides the <command>options allow-transfer</command> statement.
6919                   If not specified, the default is to allow transfers to all
6920                   hosts.
6921                 </para>
6922               </listitem>
6923             </varlistentry>
6925             <varlistentry>
6926               <term><command>blackhole</command></term>
6927               <listitem>
6928                 <para>
6929                   Specifies a list of addresses that the
6930                   server will not accept queries from or use to resolve a
6931                   query. Queries
6932                   from these addresses will not be responded to. The default
6933                   is <userinput>none</userinput>.
6934                 </para>
6935               </listitem>
6936             </varlistentry>
6938           </variablelist>
6940         </sect3>
6942         <sect3>
6943           <title>Interfaces</title>
6944           <para>
6945             The interfaces and ports that the server will answer queries
6946             from may be specified using the <command>listen-on</command> option. <command>listen-on</command> takes
6947             an optional port and an <varname>address_match_list</varname>.
6948             The server will listen on all interfaces allowed by the address
6949             match list. If a port is not specified, port 53 will be used.
6950           </para>
6951           <para>
6952             Multiple <command>listen-on</command> statements are
6953             allowed.
6954             For example,
6955           </para>
6957 <programlisting>listen-on { 5.6.7.8; };
6958 listen-on port 1234 { !1.2.3.4; 1.2/16; };
6959 </programlisting>
6961           <para>
6962             will enable the name server on port 53 for the IP address
6963             5.6.7.8, and on port 1234 of an address on the machine in net
6964             1.2 that is not 1.2.3.4.
6965           </para>
6967           <para>
6968             If no <command>listen-on</command> is specified, the
6969             server will listen on port 53 on all IPv4 interfaces.
6970           </para>
6972           <para>
6973             The <command>listen-on-v6</command> option is used to
6974             specify the interfaces and the ports on which the server will
6975             listen
6976             for incoming queries sent using IPv6.
6977           </para>
6979           <para>
6980             When <programlisting>{ any; }</programlisting> is
6981             specified
6982             as the <varname>address_match_list</varname> for the
6983             <command>listen-on-v6</command> option,
6984             the server does not bind a separate socket to each IPv6 interface
6985             address as it does for IPv4 if the operating system has enough API
6986             support for IPv6 (specifically if it conforms to RFC 3493 and RFC
6987             3542).
6988             Instead, it listens on the IPv6 wildcard address.
6989             If the system only has incomplete API support for IPv6, however,
6990             the behavior is the same as that for IPv4.
6991           </para>
6993           <para>
6994             A list of particular IPv6 addresses can also be specified, in
6995             which case
6996             the server listens on a separate socket for each specified
6997             address,
6998             regardless of whether the desired API is supported by the system.
6999           </para>
7001           <para>
7002             Multiple <command>listen-on-v6</command> options can
7003             be used.
7004             For example,
7005           </para>
7007 <programlisting>listen-on-v6 { any; };
7008 listen-on-v6 port 1234 { !2001:db8::/32; any; };
7009 </programlisting>
7011           <para>
7012             will enable the name server on port 53 for any IPv6 addresses
7013             (with a single wildcard socket),
7014             and on port 1234 of IPv6 addresses that is not in the prefix
7015             2001:db8::/32 (with separate sockets for each matched address.)
7016           </para>
7018           <para>
7019             To make the server not listen on any IPv6 address, use
7020           </para>
7022 <programlisting>listen-on-v6 { none; };
7023 </programlisting>
7025           <para>
7026             If no <command>listen-on-v6</command> option is
7027             specified, the server will not listen on any IPv6 address
7028             unless <command>-6</command> is specified when <command>named</command> is
7029             invoked.  If <command>-6</command> is specified then
7030             <command>named</command> will listen on port 53 on all IPv6 interfaces by default.
7031           </para>
7032         </sect3>
7034         <sect3 id="query_address">
7035           <title>Query Address</title>
7036           <para>
7037             If the server doesn't know the answer to a question, it will
7038             query other name servers. <command>query-source</command> specifies
7039             the address and port used for such queries. For queries sent over
7040             IPv6, there is a separate <command>query-source-v6</command> option.
7041             If <command>address</command> is <command>*</command> (asterisk) or is omitted,
7042             a wildcard IP address (<command>INADDR_ANY</command>)
7043             will be used.
7044           </para>
7046           <para>
7047             If <command>port</command> is <command>*</command> or is omitted,
7048             a random port number from a pre-configured
7049             range is picked up and will be used for each query.
7050             The port range(s) is that specified in
7051             the <command>use-v4-udp-ports</command> (for IPv4)
7052             and <command>use-v6-udp-ports</command> (for IPv6)
7053             options, excluding the ranges specified in
7054             the <command>avoid-v4-udp-ports</command>
7055             and <command>avoid-v6-udp-ports</command> options, respectively.
7056           </para>
7058           <para>
7059             The defaults of the <command>query-source</command> and
7060             <command>query-source-v6</command> options
7061             are:
7062           </para>
7064 <programlisting>query-source address * port *;
7065 query-source-v6 address * port *;
7066 </programlisting>
7068           <para>
7069             If <command>use-v4-udp-ports</command> or
7070             <command>use-v6-udp-ports</command> is unspecified,
7071             <command>named</command> will check if the operating
7072             system provides a programming interface to retrieve the
7073             system's default range for ephemeral ports.
7074             If such an interface is available,
7075             <command>named</command> will use the corresponding system
7076             default range; otherwise, it will use its own defaults:
7077          </para>
7079 <programlisting>use-v4-udp-ports { range 1024 65535; };
7080 use-v6-udp-ports { range 1024 65535; };
7081 </programlisting>
7083           <para>
7084             Note: make sure the ranges be sufficiently large for
7085             security.  A desirable size depends on various parameters,
7086             but we generally recommend it contain at least 16384 ports
7087             (14 bits of entropy).
7088             Note also that the system's default range when used may be
7089             too small for this purpose, and that the range may even be
7090             changed while <command>named</command> is running; the new
7091             range will automatically be applied when <command>named</command>
7092             is reloaded.
7093             It is encouraged to
7094             configure <command>use-v4-udp-ports</command> and
7095             <command>use-v6-udp-ports</command> explicitly so that the
7096             ranges are sufficiently large and are reasonably
7097             independent from the ranges used by other applications.
7098           </para>
7100           <para>
7101             Note: the operational configuration
7102             where <command>named</command> runs may prohibit the use
7103             of some ports.  For example, UNIX systems will not allow
7104             <command>named</command> running without a root privilege
7105             to use ports less than 1024.
7106             If such ports are included in the specified (or detected)
7107             set of query ports, the corresponding query attempts will
7108             fail, resulting in resolution failures or delay.
7109             It is therefore important to configure the set of ports
7110             that can be safely used in the expected operational environment.
7111           </para>
7113           <para>
7114             The defaults of the <command>avoid-v4-udp-ports</command> and
7115             <command>avoid-v6-udp-ports</command> options
7116             are:
7117           </para>
7119 <programlisting>avoid-v4-udp-ports {};
7120 avoid-v6-udp-ports {};
7121 </programlisting>
7123           <para>
7124             Note: BIND 9.5.0 introduced
7125             the <command>use-queryport-pool</command> 
7126             option to support a pool of such random ports, but this
7127             option is now obsolete because reusing the same ports in
7128             the pool may not be sufficiently secure.
7129             For the same reason, it is generally strongly discouraged to
7130             specify a particular port for the
7131             <command>query-source</command> or
7132             <command>query-source-v6</command> options;
7133             it implicitly disables the use of randomized port numbers.
7134           </para>
7136           <variablelist>
7137             <varlistentry>
7138               <term><command>use-queryport-pool</command></term>
7139               <listitem>
7140                 <para>
7141                   This option is obsolete.
7142                 </para>
7143               </listitem>
7144             </varlistentry>
7146             <varlistentry>
7147               <term><command>queryport-pool-ports</command></term>
7148               <listitem>
7149                 <para>
7150                   This option is obsolete.
7151                 </para>
7152               </listitem>
7153             </varlistentry>
7155             <varlistentry>
7156               <term><command>queryport-pool-updateinterval</command></term>
7157               <listitem>
7158                 <para>
7159                   This option is obsolete.
7160                 </para>
7161               </listitem>
7162             </varlistentry>
7163             
7164           </variablelist>
7165           <note>
7166             <para>
7167               The address specified in the <command>query-source</command> option
7168               is used for both UDP and TCP queries, but the port applies only
7169               to UDP queries.  TCP queries always use a random
7170               unprivileged port.
7171             </para>
7172           </note>
7173           <note>
7174             <para>
7175               Solaris 2.5.1 and earlier does not support setting the source
7176               address for TCP sockets.
7177             </para>
7178           </note>
7179           <note>
7180             <para>
7181               See also <command>transfer-source</command> and
7182               <command>notify-source</command>.
7183             </para>
7184           </note>
7185         </sect3>
7187         <sect3 id="zone_transfers">
7188           <title>Zone Transfers</title>
7189           <para>
7190             <acronym>BIND</acronym> has mechanisms in place to
7191             facilitate zone transfers
7192             and set limits on the amount of load that transfers place on the
7193             system. The following options apply to zone transfers.
7194           </para>
7196           <variablelist>
7198             <varlistentry>
7199               <term><command>also-notify</command></term>
7200               <listitem>
7201                 <para>
7202                   Defines a global list of IP addresses of name servers
7203                   that are also sent NOTIFY messages whenever a fresh copy of
7204                   the
7205                   zone is loaded, in addition to the servers listed in the
7206                   zone's NS records.
7207                   This helps to ensure that copies of the zones will
7208                   quickly converge on stealth servers.
7209                   Optionally, a port may be specified with each
7210                   <command>also-notify</command> address to send
7211                   the notify messages to a port other than the
7212                   default of 53.
7213                   If an <command>also-notify</command> list
7214                   is given in a <command>zone</command> statement,
7215                   it will override
7216                   the <command>options also-notify</command>
7217                   statement. When a <command>zone notify</command>
7218                   statement
7219                   is set to <command>no</command>, the IP
7220                   addresses in the global <command>also-notify</command> list will
7221                   not be sent NOTIFY messages for that zone. The default is
7222                   the empty
7223                   list (no global notification list).
7224                 </para>
7225               </listitem>
7226             </varlistentry>
7228             <varlistentry>
7229               <term><command>max-transfer-time-in</command></term>
7230               <listitem>
7231                 <para>
7232                   Inbound zone transfers running longer than
7233                   this many minutes will be terminated. The default is 120
7234                   minutes
7235                   (2 hours).  The maximum value is 28 days (40320 minutes).
7236                 </para>
7237               </listitem>
7238             </varlistentry>
7240             <varlistentry>
7241               <term><command>max-transfer-idle-in</command></term>
7242               <listitem>
7243                 <para>
7244                   Inbound zone transfers making no progress
7245                   in this many minutes will be terminated. The default is 60
7246                   minutes
7247                   (1 hour).  The maximum value is 28 days (40320 minutes).
7248                 </para>
7249               </listitem>
7250             </varlistentry>
7252             <varlistentry>
7253               <term><command>max-transfer-time-out</command></term>
7254               <listitem>
7255                 <para>
7256                   Outbound zone transfers running longer than
7257                   this many minutes will be terminated. The default is 120
7258                   minutes
7259                   (2 hours).  The maximum value is 28 days (40320 minutes).
7260                 </para>
7261               </listitem>
7262             </varlistentry>
7264             <varlistentry>
7265               <term><command>max-transfer-idle-out</command></term>
7266               <listitem>
7267                 <para>
7268                   Outbound zone transfers making no progress
7269                   in this many minutes will be terminated.  The default is 60
7270                   minutes (1
7271                   hour).  The maximum value is 28 days (40320 minutes).
7272                 </para>
7273               </listitem>
7274             </varlistentry>
7276             <varlistentry>
7277               <term><command>serial-query-rate</command></term>
7278               <listitem>
7279                 <para>
7280                   Slave servers will periodically query master servers
7281                   to find out if zone serial numbers have changed. Each such
7282                   query uses
7283                   a minute amount of the slave server's network bandwidth.  To
7284                   limit the
7285                   amount of bandwidth used, BIND 9 limits the rate at which
7286                   queries are
7287                   sent.  The value of the <command>serial-query-rate</command> option,
7288                   an integer, is the maximum number of queries sent per
7289                   second.
7290                   The default is 20.
7291                 </para>
7292               </listitem>
7293             </varlistentry>
7295             <varlistentry>
7296               <term><command>serial-queries</command></term>
7297               <listitem>
7298                 <para>
7299                   In BIND 8, the <command>serial-queries</command>
7300                   option
7301                   set the maximum number of concurrent serial number queries
7302                   allowed to be outstanding at any given time.
7303                   BIND 9 does not limit the number of outstanding
7304                   serial queries and ignores the <command>serial-queries</command> option.
7305                   Instead, it limits the rate at which the queries are sent
7306                   as defined using the <command>serial-query-rate</command> option.
7307                 </para>
7308               </listitem>
7309             </varlistentry>
7311             <varlistentry>
7312               <term><command>transfer-format</command></term>
7313               <listitem>
7315                 <para>
7316                   Zone transfers can be sent using two different formats,
7317                   <command>one-answer</command> and
7318                   <command>many-answers</command>.
7319                   The <command>transfer-format</command> option is used
7320                   on the master server to determine which format it sends.
7321                   <command>one-answer</command> uses one DNS message per
7322                   resource record transferred.
7323                   <command>many-answers</command> packs as many resource
7324                   records as possible into a message.
7325                   <command>many-answers</command> is more efficient, but is
7326                   only supported by relatively new slave servers,
7327                   such as <acronym>BIND</acronym> 9, <acronym>BIND</acronym>
7328                   8.x and <acronym>BIND</acronym> 4.9.5 onwards.
7329                   The <command>many-answers</command> format is also supported by
7330                   recent Microsoft Windows nameservers.
7331                   The default is <command>many-answers</command>.
7332                   <command>transfer-format</command> may be overridden on a
7333                   per-server basis by using the <command>server</command>
7334                   statement.
7335                 </para>
7337               </listitem>
7338             </varlistentry>
7340             <varlistentry>
7341               <term><command>transfers-in</command></term>
7342               <listitem>
7343                 <para>
7344                   The maximum number of inbound zone transfers
7345                   that can be running concurrently. The default value is <literal>10</literal>.
7346                   Increasing <command>transfers-in</command> may
7347                   speed up the convergence
7348                   of slave zones, but it also may increase the load on the
7349                   local system.
7350                 </para>
7351               </listitem>
7352             </varlistentry>
7354             <varlistentry>
7355               <term><command>transfers-out</command></term>
7356               <listitem>
7357                 <para>
7358                   The maximum number of outbound zone transfers
7359                   that can be running concurrently. Zone transfer requests in
7360                   excess
7361                   of the limit will be refused. The default value is <literal>10</literal>.
7362                 </para>
7363               </listitem>
7364             </varlistentry>
7366             <varlistentry>
7367               <term><command>transfers-per-ns</command></term>
7368               <listitem>
7369                 <para>
7370                   The maximum number of inbound zone transfers
7371                   that can be concurrently transferring from a given remote
7372                   name server.
7373                   The default value is <literal>2</literal>.
7374                   Increasing <command>transfers-per-ns</command>
7375                   may
7376                   speed up the convergence of slave zones, but it also may
7377                   increase
7378                   the load on the remote name server. <command>transfers-per-ns</command> may
7379                   be overridden on a per-server basis by using the <command>transfers</command> phrase
7380                   of the <command>server</command> statement.
7381                 </para>
7382               </listitem>
7383             </varlistentry>
7385             <varlistentry>
7386               <term><command>transfer-source</command></term>
7387               <listitem>
7388                 <para><command>transfer-source</command>
7389                   determines which local address will be bound to IPv4
7390                   TCP connections used to fetch zones transferred
7391                   inbound by the server.  It also determines the
7392                   source IPv4 address, and optionally the UDP port,
7393                   used for the refresh queries and forwarded dynamic
7394                   updates.  If not set, it defaults to a system
7395                   controlled value which will usually be the address
7396                   of the interface "closest to" the remote end. This
7397                   address must appear in the remote end's
7398                   <command>allow-transfer</command> option for the
7399                   zone being transferred, if one is specified. This
7400                   statement sets the
7401                   <command>transfer-source</command> for all zones,
7402                   but can be overridden on a per-view or per-zone
7403                   basis by including a
7404                   <command>transfer-source</command> statement within
7405                   the <command>view</command> or
7406                   <command>zone</command> block in the configuration
7407                   file.
7408                 </para>
7409                 <note>
7410                   <para>
7411                     Solaris 2.5.1 and earlier does not support setting the
7412                     source address for TCP sockets.
7413                   </para>
7414                 </note>
7415               </listitem>
7416             </varlistentry>
7418             <varlistentry>
7419               <term><command>transfer-source-v6</command></term>
7420               <listitem>
7421                 <para>
7422                   The same as <command>transfer-source</command>,
7423                   except zone transfers are performed using IPv6.
7424                 </para>
7425               </listitem>
7426             </varlistentry>
7428             <varlistentry>
7429               <term><command>alt-transfer-source</command></term>
7430               <listitem>
7431                 <para>
7432                   An alternate transfer source if the one listed in
7433                   <command>transfer-source</command> fails and
7434                   <command>use-alt-transfer-source</command> is
7435                   set.
7436                 </para>
7437                 <note>
7438                   If you do not wish the alternate transfer source
7439                   to be used, you should set
7440                   <command>use-alt-transfer-source</command>
7441                   appropriately and you should not depend upon
7442                   getting an answer back to the first refresh
7443                   query.
7444                 </note>
7445               </listitem>
7446             </varlistentry>
7448             <varlistentry>
7449               <term><command>alt-transfer-source-v6</command></term>
7450               <listitem>
7451                 <para>
7452                   An alternate transfer source if the one listed in
7453                   <command>transfer-source-v6</command> fails and
7454                   <command>use-alt-transfer-source</command> is
7455                   set.
7456                 </para>
7457               </listitem>
7458             </varlistentry>
7460             <varlistentry>
7461               <term><command>use-alt-transfer-source</command></term>
7462               <listitem>
7463                 <para>
7464                   Use the alternate transfer sources or not.  If views are
7465                   specified this defaults to <command>no</command>
7466                   otherwise it defaults to
7467                   <command>yes</command> (for BIND 8
7468                   compatibility).
7469                 </para>
7470               </listitem>
7471             </varlistentry>
7473             <varlistentry>
7474               <term><command>notify-source</command></term>
7475               <listitem>
7476                 <para><command>notify-source</command>
7477                   determines which local source address, and
7478                   optionally UDP port, will be used to send NOTIFY
7479                   messages.  This address must appear in the slave
7480                   server's <command>masters</command> zone clause or
7481                   in an <command>allow-notify</command> clause.  This
7482                   statement sets the <command>notify-source</command>
7483                   for all zones, but can be overridden on a per-zone or
7484                   per-view basis by including a
7485                   <command>notify-source</command> statement within
7486                   the <command>zone</command> or
7487                   <command>view</command> block in the configuration
7488                   file.
7489                 </para>
7490                 <note>
7491                   <para>
7492                     Solaris 2.5.1 and earlier does not support setting the
7493                     source address for TCP sockets.
7494                   </para>
7495                 </note>
7496               </listitem>
7497             </varlistentry>
7499             <varlistentry>
7500               <term><command>notify-source-v6</command></term>
7501               <listitem>
7502                 <para>
7503                   Like <command>notify-source</command>,
7504                   but applies to notify messages sent to IPv6 addresses.
7505                 </para>
7506               </listitem>
7507             </varlistentry>
7509           </variablelist>
7511         </sect3>
7513         <sect3>
7514           <title>UDP Port Lists</title>
7515           <para>
7516             <command>use-v4-udp-ports</command>,
7517             <command>avoid-v4-udp-ports</command>,
7518             <command>use-v6-udp-ports</command>, and
7519             <command>avoid-v6-udp-ports</command>
7520             specify a list of IPv4 and IPv6 UDP ports that will be
7521             used or not used as source ports for UDP messages.
7522             See <xref linkend="query_address"/> about how the
7523             available ports are determined.
7524             For example, with the following configuration
7525           </para>
7527 <programlisting>
7528 use-v6-udp-ports { range 32768 65535; };
7529 avoid-v6-udp-ports { 40000; range 50000 60000; };
7530 </programlisting>
7532            <para>
7533              UDP ports of IPv6 messages sent
7534              from <command>named</command> will be in one
7535              of the following ranges: 32768 to 39999, 40001 to 49999,
7536              and 60001 to 65535.
7537            </para>
7539            <para>
7540              <command>avoid-v4-udp-ports</command> and
7541              <command>avoid-v6-udp-ports</command> can be used
7542              to prevent <command>named</command> from choosing as its random source port a
7543              port that is blocked by your firewall or a port that is
7544              used by other applications;
7545              if a query went out with a source port blocked by a
7546              firewall, the
7547              answer would not get by the firewall and the name server would
7548              have to query again.
7549              Note: the desired range can also be represented only with
7550              <command>use-v4-udp-ports</command> and
7551              <command>use-v6-udp-ports</command>, and the
7552              <command>avoid-</command> options are redundant in that
7553              sense; they are provided for backward compatibility and
7554              to possibly simplify the port specification.
7555            </para>
7556         </sect3>
7558         <sect3>
7559           <title>Operating System Resource Limits</title>
7561           <para>
7562             The server's usage of many system resources can be limited.
7563             Scaled values are allowed when specifying resource limits.  For
7564             example, <command>1G</command> can be used instead of
7565             <command>1073741824</command> to specify a limit of
7566             one
7567             gigabyte. <command>unlimited</command> requests
7568             unlimited use, or the
7569             maximum available amount. <command>default</command>
7570             uses the limit
7571             that was in force when the server was started. See the description
7572             of <command>size_spec</command> in <xref linkend="configuration_file_elements"/>.
7573           </para>
7575           <para>
7576             The following options set operating system resource limits for
7577             the name server process.  Some operating systems don't support
7578             some or
7579             any of the limits. On such systems, a warning will be issued if
7580             the
7581             unsupported limit is used.
7582           </para>
7584           <variablelist>
7586             <varlistentry>
7587               <term><command>coresize</command></term>
7588               <listitem>
7589                 <para>
7590                   The maximum size of a core dump. The default
7591                   is <literal>default</literal>.
7592                 </para>
7593               </listitem>
7594             </varlistentry>
7596             <varlistentry>
7597               <term><command>datasize</command></term>
7598               <listitem>
7599                 <para>
7600                   The maximum amount of data memory the server
7601                   may use. The default is <literal>default</literal>.
7602                   This is a hard limit on server memory usage.
7603                   If the server attempts to allocate memory in excess of this
7604                   limit, the allocation will fail, which may in turn leave
7605                   the server unable to perform DNS service.  Therefore,
7606                   this option is rarely useful as a way of limiting the
7607                   amount of memory used by the server, but it can be used
7608                   to raise an operating system data size limit that is
7609                   too small by default.  If you wish to limit the amount
7610                   of memory used by the server, use the
7611                   <command>max-cache-size</command> and
7612                   <command>recursive-clients</command>
7613                   options instead.
7614                 </para>
7615               </listitem>
7616             </varlistentry>
7618             <varlistentry>
7619               <term><command>files</command></term>
7620               <listitem>
7621                 <para>
7622                   The maximum number of files the server
7623                   may have open concurrently. The default is <literal>unlimited</literal>.
7624                 </para>
7625               </listitem>
7626             </varlistentry>
7628             <varlistentry>
7629               <term><command>stacksize</command></term>
7630               <listitem>
7631                 <para>
7632                   The maximum amount of stack memory the server
7633                   may use. The default is <literal>default</literal>.
7634                 </para>
7635               </listitem>
7636             </varlistentry>
7638           </variablelist>
7640         </sect3>
7642         <sect3 id="server_resource_limits">
7643           <title>Server  Resource Limits</title>
7645           <para>
7646             The following options set limits on the server's
7647             resource consumption that are enforced internally by the
7648             server rather than the operating system.
7649           </para>
7651           <variablelist>
7653             <varlistentry>
7654               <term><command>max-ixfr-log-size</command></term>
7655               <listitem>
7656                 <para>
7657                   This option is obsolete; it is accepted
7658                   and ignored for BIND 8 compatibility.  The option
7659                   <command>max-journal-size</command> performs a
7660                   similar function in BIND 9.
7661                 </para>
7662               </listitem>
7663             </varlistentry>
7665             <varlistentry>
7666               <term><command>max-journal-size</command></term>
7667               <listitem>
7668                 <para>
7669                   Sets a maximum size for each journal file
7670                   (see <xref linkend="journal"/>).  When the journal file
7671                   approaches
7672                   the specified size, some of the oldest transactions in the
7673                   journal
7674                   will be automatically removed.  The default is
7675                   <literal>unlimited</literal>.
7676                   This may also be set on a per-zone basis.
7677                 </para>
7678               </listitem>
7679             </varlistentry>
7681             <varlistentry>
7682               <term><command>host-statistics-max</command></term>
7683               <listitem>
7684                 <para>
7685                   In BIND 8, specifies the maximum number of host statistics
7686                   entries to be kept.
7687                   Not implemented in BIND 9.
7688                 </para>
7689               </listitem>
7690             </varlistentry>
7692             <varlistentry>
7693               <term><command>recursive-clients</command></term>
7694               <listitem>
7695                 <para>
7696                   The maximum number of simultaneous recursive lookups
7697                   the server will perform on behalf of clients.  The default
7698                   is
7699                   <literal>1000</literal>.  Because each recursing
7700                   client uses a fair
7701                   bit of memory, on the order of 20 kilobytes, the value of
7702                   the
7703                   <command>recursive-clients</command> option may
7704                   have to be decreased
7705                   on hosts with limited memory.
7706                 </para>
7707               </listitem>
7708             </varlistentry>
7710             <varlistentry>
7711               <term><command>tcp-clients</command></term>
7712               <listitem>
7713                 <para>
7714                   The maximum number of simultaneous client TCP
7715                   connections that the server will accept.
7716                   The default is <literal>100</literal>.
7717                 </para>
7718               </listitem>
7719             </varlistentry>
7721             <varlistentry>
7722               <term><command>reserved-sockets</command></term>
7723               <listitem>
7724                 <para>
7725                   The number of file descriptors reserved for TCP, stdio,
7726                   etc.  This needs to be big enough to cover the number of
7727                   interfaces <command>named</command> listens on, <command>tcp-clients</command> as well as
7728                   to provide room for outgoing TCP queries and incoming zone
7729                   transfers.  The default is <literal>512</literal>.
7730                   The minimum value is <literal>128</literal> and the
7731                   maximum value is <literal>128</literal> less than
7732                   maxsockets (-S).  This option may be removed in the future.
7733                 </para>
7734                 <para>
7735                   This option has little effect on Windows.
7736                 </para>
7737               </listitem>
7738             </varlistentry>
7740             <varlistentry>
7741               <term><command>max-cache-size</command></term>
7742               <listitem>
7743                 <para>
7744                   The maximum amount of memory to use for the
7745                   server's cache, in bytes.
7746                   When the amount of data in the cache
7747                   reaches this limit, the server will cause records to expire
7748                   prematurely based on an LRU based strategy so that
7749                   the limit is not exceeded.
7750                   A value of 0 is special, meaning that
7751                   records are purged from the cache only when their
7752                   TTLs expire.
7753                   Another special keyword <userinput>unlimited</userinput>
7754                   means the maximum value of 32-bit unsigned integers
7755                   (0xffffffff), which may not have the same effect as
7756                   0 on machines that support more than 32 bits of
7757                   memory space.
7758                   Any positive values less than 2MB will be ignored reset
7759                   to 2MB.
7760                   In a server with multiple views, the limit applies
7761                   separately to the cache of each view.
7762                   The default is 0.
7763                 </para>
7764               </listitem>
7765             </varlistentry>
7767             <varlistentry>
7768               <term><command>tcp-listen-queue</command></term>
7769               <listitem>
7770                 <para>
7771                   The listen queue depth.  The default and minimum is 3.
7772                   If the kernel supports the accept filter "dataready" this
7773                   also controls how
7774                   many TCP connections that will be queued in kernel space
7775                   waiting for
7776                   some data before being passed to accept.  Values less than 3
7777                   will be
7778                   silently raised.
7779                 </para>
7780               </listitem>
7781             </varlistentry>
7783           </variablelist>
7785         </sect3>
7787         <sect3>
7788           <title>Periodic Task Intervals</title>
7790           <variablelist>
7792             <varlistentry>
7793               <term><command>cleaning-interval</command></term>
7794               <listitem>
7795                 <para>
7796                   This interval is effectively obsolete.  Previously,
7797                   the server would remove expired resource records
7798                   from the cache every <command>cleaning-interval</command> minutes.
7799                   <acronym>BIND</acronym> 9 now manages cache
7800                   memory in a more sophisticated manner and does not
7801                   rely on the periodic cleaning any more.
7802                   Specifying this option therefore has no effect on
7803                   the server's behavior.
7804                 </para>
7805               </listitem>
7806             </varlistentry>
7808             <varlistentry>
7809               <term><command>heartbeat-interval</command></term>
7810               <listitem>
7811                 <para>
7812                   The server will perform zone maintenance tasks
7813                   for all zones marked as <command>dialup</command> whenever this
7814                   interval expires. The default is 60 minutes. Reasonable
7815                   values are up
7816                   to 1 day (1440 minutes).  The maximum value is 28 days
7817                   (40320 minutes).
7818                   If set to 0, no zone maintenance for these zones will occur.
7819                 </para>
7820               </listitem>
7821             </varlistentry>
7823             <varlistentry>
7824               <term><command>interface-interval</command></term>
7825               <listitem>
7826                 <para>
7827                   The server will scan the network interface list
7828                   every <command>interface-interval</command>
7829                   minutes. The default
7830                   is 60 minutes. The maximum value is 28 days (40320 minutes).
7831                   If set to 0, interface scanning will only occur when
7832                   the configuration file is  loaded. After the scan, the
7833                   server will
7834                   begin listening for queries on any newly discovered
7835                   interfaces (provided they are allowed by the
7836                   <command>listen-on</command> configuration), and
7837                   will
7838                   stop listening on interfaces that have gone away.
7839                 </para>
7840               </listitem>
7841             </varlistentry>
7843             <varlistentry>
7844               <term><command>statistics-interval</command></term>
7845               <listitem>
7846                 <para>
7847                   Name server statistics will be logged
7848                   every <command>statistics-interval</command>
7849                   minutes. The default is
7850                   60. The maximum value is 28 days (40320 minutes).
7851                   If set to 0, no statistics will be logged.
7852                   </para><note>
7853                   <simpara>
7854                     Not yet implemented in
7855                     <acronym>BIND</acronym> 9.
7856                   </simpara>
7857                 </note>
7858               </listitem>
7859             </varlistentry>
7861           </variablelist>
7863         </sect3>
7865         <sect3 id="topology">
7866           <title>Topology</title>
7868           <para>
7869             All other things being equal, when the server chooses a name
7870             server
7871             to query from a list of name servers, it prefers the one that is
7872             topologically closest to itself. The <command>topology</command> statement
7873             takes an <command>address_match_list</command> and
7874             interprets it
7875             in a special way. Each top-level list element is assigned a
7876             distance.
7877             Non-negated elements get a distance based on their position in the
7878             list, where the closer the match is to the start of the list, the
7879             shorter the distance is between it and the server. A negated match
7880             will be assigned the maximum distance from the server. If there
7881             is no match, the address will get a distance which is further than
7882             any non-negated list element, and closer than any negated element.
7883             For example,
7884           </para>
7886 <programlisting>topology {
7887     10/8;
7888     !1.2.3/24;
7889     { 1.2/16; 3/8; };
7890 };</programlisting>
7892           <para>
7893             will prefer servers on network 10 the most, followed by hosts
7894             on network 1.2.0.0 (netmask 255.255.0.0) and network 3, with the
7895             exception of hosts on network 1.2.3 (netmask 255.255.255.0), which
7896             is preferred least of all.
7897           </para>
7898           <para>
7899             The default topology is
7900           </para>
7902 <programlisting>    topology { localhost; localnets; };
7903 </programlisting>
7905           <note>
7906             <simpara>
7907               The <command>topology</command> option
7908               is not implemented in <acronym>BIND</acronym> 9.
7909             </simpara>
7910           </note>
7911         </sect3>
7913         <sect3 id="the_sortlist_statement">
7915           <title>The <command>sortlist</command> Statement</title>
7917           <para>
7918             The response to a DNS query may consist of multiple resource
7919             records (RRs) forming a resource records set (RRset).
7920             The name server will normally return the
7921             RRs within the RRset in an indeterminate order
7922             (but see the <command>rrset-order</command>
7923             statement in <xref linkend="rrset_ordering"/>).
7924             The client resolver code should rearrange the RRs as appropriate,
7925             that is, using any addresses on the local net in preference to
7926             other addresses.
7927             However, not all resolvers can do this or are correctly
7928             configured.
7929             When a client is using a local server, the sorting can be performed
7930             in the server, based on the client's address. This only requires
7931             configuring the name servers, not all the clients.
7932           </para>
7934           <para>
7935             The <command>sortlist</command> statement (see below)
7936             takes
7937             an <command>address_match_list</command> and
7938             interprets it even
7939             more specifically than the <command>topology</command>
7940             statement
7941             does (<xref linkend="topology"/>).
7942             Each top level statement in the <command>sortlist</command> must
7943             itself be an explicit <command>address_match_list</command> with
7944             one or two elements. The first element (which may be an IP
7945             address,
7946             an IP prefix, an ACL name or a nested <command>address_match_list</command>)
7947             of each top level list is checked against the source address of
7948             the query until a match is found.
7949           </para>
7950           <para>
7951             Once the source address of the query has been matched, if
7952             the top level statement contains only one element, the actual
7953             primitive
7954             element that matched the source address is used to select the
7955             address
7956             in the response to move to the beginning of the response. If the
7957             statement is a list of two elements, then the second element is
7958             treated the same as the <command>address_match_list</command> in
7959             a <command>topology</command> statement. Each top
7960             level element
7961             is assigned a distance and the address in the response with the
7962             minimum
7963             distance is moved to the beginning of the response.
7964           </para>
7965           <para>
7966             In the following example, any queries received from any of
7967             the addresses of the host itself will get responses preferring
7968             addresses
7969             on any of the locally connected networks. Next most preferred are
7970             addresses
7971             on the 192.168.1/24 network, and after that either the
7972             192.168.2/24
7973             or
7974             192.168.3/24 network with no preference shown between these two
7975             networks. Queries received from a host on the 192.168.1/24 network
7976             will prefer other addresses on that network to the 192.168.2/24
7977             and
7978             192.168.3/24 networks. Queries received from a host on the
7979             192.168.4/24
7980             or the 192.168.5/24 network will only prefer other addresses on
7981             their directly connected networks.
7982           </para>
7984 <programlisting>sortlist {
7985     // IF the local host
7986     // THEN first fit on the following nets
7987     { localhost;
7988         { localnets;
7989             192.168.1/24;
7990             { 192.168.2/24; 192.168.3/24; }; }; };
7991     // IF on class C 192.168.1 THEN use .1, or .2 or .3
7992     { 192.168.1/24;
7993         { 192.168.1/24;
7994             { 192.168.2/24; 192.168.3/24; }; }; };
7995     // IF on class C 192.168.2 THEN use .2, or .1 or .3
7996     { 192.168.2/24;
7997         { 192.168.2/24;
7998             { 192.168.1/24; 192.168.3/24; }; }; };
7999     // IF on class C 192.168.3 THEN use .3, or .1 or .2
8000     { 192.168.3/24;
8001         { 192.168.3/24;
8002             { 192.168.1/24; 192.168.2/24; }; }; };
8003     // IF .4 or .5 THEN prefer that net
8004     { { 192.168.4/24; 192.168.5/24; };
8005     };
8006 };</programlisting>
8008           <para>
8009             The following example will give reasonable behavior for the
8010             local host and hosts on directly connected networks. It is similar
8011             to the behavior of the address sort in <acronym>BIND</acronym> 4.9.x. Responses sent
8012             to queries from the local host will favor any of the directly
8013             connected
8014             networks. Responses sent to queries from any other hosts on a
8015             directly
8016             connected network will prefer addresses on that same network.
8017             Responses
8018             to other queries will not be sorted.
8019           </para>
8021 <programlisting>sortlist {
8022            { localhost; localnets; };
8023            { localnets; };
8025 </programlisting>
8027         </sect3>
8028         <sect3 id="rrset_ordering">
8029           <title id="rrset_ordering_title">RRset Ordering</title>
8030           <para>
8031             When multiple records are returned in an answer it may be
8032             useful to configure the order of the records placed into the
8033             response.
8034             The <command>rrset-order</command> statement permits
8035             configuration
8036             of the ordering of the records in a multiple record response.
8037             See also the <command>sortlist</command> statement,
8038             <xref linkend="the_sortlist_statement"/>.
8039           </para>
8041           <para>
8042             An <command>order_spec</command> is defined as
8043             follows:
8044           </para>
8045           <para>
8046             <optional>class <replaceable>class_name</replaceable></optional>
8047             <optional>type <replaceable>type_name</replaceable></optional>
8048             <optional>name <replaceable>"domain_name"</replaceable></optional>
8049             order <replaceable>ordering</replaceable>
8050           </para>
8051           <para>
8052             If no class is specified, the default is <command>ANY</command>.
8053             If no type is specified, the default is <command>ANY</command>.
8054             If no name is specified, the default is "<command>*</command>" (asterisk).
8055           </para>
8056           <para>
8057             The legal values for <command>ordering</command> are:
8058           </para>
8059           <informaltable colsep="0" rowsep="0">
8060             <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
8061               <colspec colname="1" colnum="1" colsep="0" colwidth="0.750in"/>
8062               <colspec colname="2" colnum="2" colsep="0" colwidth="3.750in"/>
8063               <tbody>
8064                 <row rowsep="0">
8065                   <entry colname="1">
8066                     <para><command>fixed</command></para>
8067                   </entry>
8068                   <entry colname="2">
8069                     <para>
8070                       Records are returned in the order they
8071                       are defined in the zone file.
8072                     </para>
8073                   </entry>
8074                 </row>
8075                 <row rowsep="0">
8076                   <entry colname="1">
8077                     <para><command>random</command></para>
8078                   </entry>
8079                   <entry colname="2">
8080                     <para>
8081                       Records are returned in some random order.
8082                     </para>
8083                   </entry>
8084                 </row>
8085                 <row rowsep="0">
8086                   <entry colname="1">
8087                     <para><command>cyclic</command></para>
8088                   </entry>
8089                   <entry colname="2">
8090                     <para>
8091                       Records are returned in a cyclic round-robin order.
8092                     </para>
8093                     <para>
8094                       If <acronym>BIND</acronym> is configured with the
8095                       "--enable-fixed-rrset" option at compile time, then
8096                       the initial ordering of the RRset will match the
8097                       one specified in the zone file.
8098                     </para>
8099                   </entry>
8100                 </row>
8101               </tbody>
8102             </tgroup>
8103           </informaltable>
8104           <para>
8105             For example:
8106           </para>
8108 <programlisting>rrset-order {
8109    class IN type A name "host.example.com" order random;
8110    order cyclic;
8112 </programlisting>
8114           <para>
8115             will cause any responses for type A records in class IN that
8116             have "<literal>host.example.com</literal>" as a
8117             suffix, to always be returned
8118             in random order. All other records are returned in cyclic order.
8119           </para>
8120           <para>
8121             If multiple <command>rrset-order</command> statements
8122             appear,
8123             they are not combined &mdash; the last one applies.
8124           </para>
8126           <note>
8127             <simpara>
8128               In this release of <acronym>BIND</acronym> 9, the
8129               <command>rrset-order</command> statement does not support
8130               "fixed" ordering by default.  Fixed ordering can be enabled
8131               at compile time by specifying "--enable-fixed-rrset" on
8132               the "configure" command line.
8133             </simpara>
8134           </note>
8135         </sect3>
8137         <sect3 id="tuning">
8138           <title>Tuning</title>
8140           <variablelist>
8142             <varlistentry>
8143               <term><command>lame-ttl</command></term>
8144               <listitem>
8145                 <para>
8146                   Sets the number of seconds to cache a
8147                   lame server indication. 0 disables caching. (This is
8148                   <emphasis role="bold">NOT</emphasis> recommended.)
8149                   The default is <literal>600</literal> (10 minutes) and the
8150                   maximum value is
8151                   <literal>1800</literal> (30 minutes).
8152                 </para>
8154               </listitem>
8155             </varlistentry>
8157             <varlistentry>
8158               <term><command>max-ncache-ttl</command></term>
8159               <listitem>
8160                 <para>
8161                   To reduce network traffic and increase performance,
8162                   the server stores negative answers. <command>max-ncache-ttl</command> is
8163                   used to set a maximum retention time for these answers in
8164                   the server
8165                   in seconds. The default
8166                   <command>max-ncache-ttl</command> is <literal>10800</literal> seconds (3 hours).
8167                   <command>max-ncache-ttl</command> cannot exceed
8168                   7 days and will
8169                   be silently truncated to 7 days if set to a greater value.
8170                 </para>
8171               </listitem>
8172             </varlistentry>
8174             <varlistentry>
8175               <term><command>max-cache-ttl</command></term>
8176               <listitem>
8177                 <para>
8178                   Sets the maximum time for which the server will
8179                   cache ordinary (positive) answers. The default is
8180                   one week (7 days).
8181                   A value of zero may cause all queries to return
8182                   SERVFAIL, because of lost caches of intermediate
8183                   RRsets (such as NS and glue AAAA/A records) in the
8184                   resolution process.
8185                 </para>
8186               </listitem>
8187             </varlistentry>
8189             <varlistentry>
8190               <term><command>min-roots</command></term>
8191               <listitem>
8192                 <para>
8193                   The minimum number of root servers that
8194                   is required for a request for the root servers to be
8195                   accepted. The default
8196                   is <userinput>2</userinput>.
8197                 </para>
8198                 <note>
8199                   <simpara>
8200                     Not implemented in <acronym>BIND</acronym> 9.
8201                   </simpara>
8202                 </note>
8203               </listitem>
8204             </varlistentry>
8206             <varlistentry>
8207               <term><command>sig-validity-interval</command></term>
8208               <listitem>
8209                 <para>
8210                   Specifies the number of days into the future when
8211                   DNSSEC signatures automatically generated as a
8212                   result of dynamic updates (<xref
8213                   linkend="dynamic_update"/>) will expire.  There
8214                   is an optional second field which specifies how
8215                   long before expiry that the signatures will be
8216                   regenerated.  If not specified, the signatures will
8217                   be regenerated at 1/4 of base interval.  The second
8218                   field is specified in days if the base interval is
8219                   greater than 7 days otherwise it is specified in hours.
8220                   The default base interval is <literal>30</literal> days
8221                   giving a re-signing interval of 7 1/2 days.  The maximum
8222                   values are 10 years (3660 days).
8223                 </para>
8224                 <para>
8225                   The signature inception time is unconditionally
8226                   set to one hour before the current time to allow
8227                   for a limited amount of clock skew.
8228                 </para>
8229                 <para>
8230                   The <command>sig-validity-interval</command>
8231                   should be, at least, several multiples of the SOA
8232                   expire interval to allow for reasonable interaction
8233                   between the various timer and expiry dates.
8234                 </para>
8235               </listitem>
8236             </varlistentry>
8238             <varlistentry>
8239               <term><command>sig-signing-nodes</command></term>
8240               <listitem>
8241                 <para>
8242                   Specify the maximum number of nodes to be
8243                   examined in each quantum when signing a zone with
8244                   a new DNSKEY. The default is
8245                   <literal>100</literal>.
8246                 </para>
8247               </listitem>
8248             </varlistentry>
8250             <varlistentry>
8251               <term><command>sig-signing-signatures</command></term>
8252               <listitem>
8253                 <para>
8254                   Specify a threshold number of signatures that
8255                   will terminate processing a quantum when signing
8256                   a zone with a new DNSKEY.  The default is
8257                   <literal>10</literal>.
8258                 </para>
8259               </listitem>
8260             </varlistentry>
8262             <varlistentry>
8263               <term><command>sig-signing-type</command></term>
8264               <listitem>
8265                 <para>
8266                   Specify a private RDATA type to be used when generating
8267                   key signing records.  The default is
8268                   <literal>65535</literal>.
8269                 </para>
8270                 <para>
8271                   It is expected that this parameter may be removed
8272                   in a future version once there is a standard type.
8273                 </para>
8274               </listitem>
8275             </varlistentry>
8277             <varlistentry>
8278               <term><command>min-refresh-time</command></term>
8279               <term><command>max-refresh-time</command></term>
8280               <term><command>min-retry-time</command></term>
8281               <term><command>max-retry-time</command></term>
8282               <listitem>
8283                 <para>
8284                   These options control the server's behavior on refreshing a
8285                   zone
8286                   (querying for SOA changes) or retrying failed transfers.
8287                   Usually the SOA values for the zone are used, but these
8288                   values
8289                   are set by the master, giving slave server administrators
8290                   little
8291                   control over their contents.
8292                 </para>
8293                 <para>
8294                   These options allow the administrator to set a minimum and
8295                   maximum
8296                   refresh and retry time either per-zone, per-view, or
8297                   globally.
8298                   These options are valid for slave and stub zones,
8299                   and clamp the SOA refresh and retry times to the specified
8300                   values.
8301                 </para>
8302               </listitem>
8303             </varlistentry>
8305             <varlistentry>
8306               <term><command>edns-udp-size</command></term>
8307               <listitem>
8308                 <para>
8309                   Sets the advertised EDNS UDP buffer size in bytes
8310                   to control the size of packets received.
8311                   Valid values are 1024 to 4096 (values outside this range
8312                   will be silently adjusted).  The default value
8313                   is 4096.  The usual reason for setting
8314                   <command>edns-udp-size</command> to a non-default
8315                   value is to get UDP answers to pass through broken
8316                   firewalls that block fragmented packets and/or
8317                   block UDP packets that are greater than 512 bytes.
8318                 </para>
8319                 <para>
8320                   <command>named</command> will fallback to using 512 bytes
8321                   if it get a series of timeout at the initial value.  512
8322                   bytes is not being offered to encourage sites to fix their
8323                   firewalls.  Small EDNS UDP sizes will result in the
8324                   excessive use of TCP.
8325                 </para>
8326               </listitem>
8327             </varlistentry>
8329             <varlistentry>
8330               <term><command>max-udp-size</command></term>
8331               <listitem>
8332                 <para>
8333                   Sets the maximum EDNS UDP message size
8334                   <command>named</command> will send in bytes.
8335                   Valid values are 512 to 4096 (values outside this
8336                   range will be silently adjusted).  The default
8337                   value is 4096.  The usual reason for setting
8338                   <command>max-udp-size</command> to a non-default
8339                   value is to get UDP answers to pass through broken
8340                   firewalls that block fragmented packets and/or
8341                   block UDP packets that are greater than 512 bytes.
8342                   This is independent of the advertised receive
8343                   buffer (<command>edns-udp-size</command>).
8344                 </para>
8345                 <para>
8346                   Setting this to a low value will encourge additional
8347                   TCP traffic to the nameserver.
8348                 </para>
8349               </listitem>
8350             </varlistentry>
8352             <varlistentry>
8353               <term><command>masterfile-format</command></term>
8354               <listitem>
8355                 <para>Specifies
8356                   the file format of zone files (see
8357                   <xref linkend="zonefile_format"/>).
8358                   The default value is <constant>text</constant>, which is the
8359                   standard textual representation.  Files in other formats
8360                   than <constant>text</constant> are typically expected
8361                   to be generated by the <command>named-compilezone</command> tool.
8362                   Note that when a zone file in a different format than
8363                   <constant>text</constant> is loaded, <command>named</command>
8364                   may omit some of the checks which would be performed for a
8365                   file in the <constant>text</constant> format.  In particular,
8366                   <command>check-names</command> checks do not apply
8367                   for the <constant>raw</constant> format.  This means
8368                   a zone file in the <constant>raw</constant> format
8369                   must be generated with the same check level as that
8370                   specified in the <command>named</command> configuration
8371                   file.  This statement sets the
8372                   <command>masterfile-format</command> for all zones,
8373                   but can be overridden on a per-zone or per-view basis
8374                   by including a <command>masterfile-format</command>
8375                   statement within the <command>zone</command> or
8376                   <command>view</command> block in the configuration
8377                   file.
8378                 </para>
8379               </listitem>
8380             </varlistentry>
8382             <varlistentry id="clients-per-query">
8383               <term><command>clients-per-query</command></term>
8384               <term><command>max-clients-per-query</command></term>
8385               <listitem>
8386                 <para>These set the
8387                   initial value (minimum) and maximum number of recursive
8388                   simultaneous clients for any given query
8389                   (&lt;qname,qtype,qclass&gt;) that the server will accept
8390                   before dropping additional clients.  <command>named</command> will attempt to
8391                   self tune this value and changes will be logged.  The
8392                   default values are 10 and 100.
8393                 </para>
8394                 <para>
8395                   This value should reflect how many queries come in for
8396                   a given name in the time it takes to resolve that name.
8397                   If the number of queries exceed this value, <command>named</command> will
8398                   assume that it is dealing with a non-responsive zone
8399                   and will drop additional queries.  If it gets a response
8400                   after dropping queries, it will raise the estimate.  The
8401                   estimate will then be lowered in 20 minutes if it has
8402                   remained unchanged.
8403                 </para>
8404                 <para>
8405                   If <command>clients-per-query</command> is set to zero,
8406                   then there is no limit on the number of clients per query
8407                   and no queries will be dropped.
8408                 </para>
8409                 <para>
8410                   If <command>max-clients-per-query</command> is set to zero,
8411                   then there is no upper bound other than imposed by
8412                   <command>recursive-clients</command>.
8413                 </para>
8414               </listitem>
8415             </varlistentry>
8417             <varlistentry>
8418               <term><command>notify-delay</command></term>
8419               <listitem>
8420                 <para>
8421                   The delay, in seconds, between sending sets of notify
8422                   messages for a zone.  The default is zero.
8423                 </para>
8424               </listitem>
8425             </varlistentry>
8426           </variablelist>
8428         </sect3>
8430         <sect3 id="builtin">
8431           <title>Built-in server information zones</title>
8433           <para>
8434             The server provides some helpful diagnostic information
8435             through a number of built-in zones under the
8436             pseudo-top-level-domain <literal>bind</literal> in the
8437             <command>CHAOS</command> class.  These zones are part
8438             of a
8439             built-in view (see <xref linkend="view_statement_grammar"/>) of
8440             class
8441             <command>CHAOS</command> which is separate from the
8442             default view of
8443             class <command>IN</command>; therefore, any global
8444             server options
8445             such as <command>allow-query</command> do not apply
8446             the these zones.
8447             If you feel the need to disable these zones, use the options
8448             below, or hide the built-in <command>CHAOS</command>
8449             view by
8450             defining an explicit view of class <command>CHAOS</command>
8451             that matches all clients.
8452           </para>
8454           <variablelist>
8456             <varlistentry>
8457               <term><command>version</command></term>
8458               <listitem>
8459                 <para>
8460                   The version the server should report
8461                   via a query of the name <literal>version.bind</literal>
8462                   with type <command>TXT</command>, class <command>CHAOS</command>.
8463                   The default is the real version number of this server.
8464                   Specifying <command>version none</command>
8465                   disables processing of the queries.
8466                 </para>
8467               </listitem>
8468             </varlistentry>
8470             <varlistentry>
8471               <term><command>hostname</command></term>
8472               <listitem>
8473                 <para>
8474                   The hostname the server should report via a query of
8475                   the name <filename>hostname.bind</filename>
8476                   with type <command>TXT</command>, class <command>CHAOS</command>.
8477                   This defaults to the hostname of the machine hosting the
8478                   name server as
8479                   found by the gethostname() function.  The primary purpose of such queries
8480                   is to
8481                   identify which of a group of anycast servers is actually
8482                   answering your queries.  Specifying <command>hostname none;</command>
8483                   disables processing of the queries.
8484                 </para>
8485               </listitem>
8486             </varlistentry>
8488             <varlistentry>
8489               <term><command>server-id</command></term>
8490               <listitem>
8491                 <para>
8492                   The ID the server should report when receiving a Name
8493                   Server Identifier (NSID) query, or a query of the name
8494                   <filename>ID.SERVER</filename> with type
8495                   <command>TXT</command>, class <command>CHAOS</command>.
8496                   The primary purpose of such queries is to
8497                   identify which of a group of anycast servers is actually
8498                   answering your queries.  Specifying <command>server-id none;</command>
8499                   disables processing of the queries.
8500                   Specifying <command>server-id hostname;</command> will cause <command>named</command> to
8501                   use the hostname as found by the gethostname() function.
8502                   The default <command>server-id</command> is <command>none</command>.
8503                 </para>
8504               </listitem>
8505             </varlistentry>
8507           </variablelist>
8509         </sect3>
8511         <sect3 id="empty">
8512           <title>Built-in Empty Zones</title>
8513           <para>
8514             Named has some built-in empty zones (SOA and NS records only).
8515             These are for zones that should normally be answered locally
8516             and which queries should not be sent to the Internet's root
8517             servers.  The official servers which cover these namespaces
8518             return NXDOMAIN responses to these queries.  In particular,
8519             these cover the reverse namespace for addresses from RFC 1918 and
8520             RFC 3330.  They also include the reverse namespace for IPv6 local
8521             address (locally assigned), IPv6 link local addresses, the IPv6
8522             loopback address and the IPv6 unknown address.
8523           </para>
8524           <para>
8525             Named will attempt to determine if a built-in zone already exists
8526             or is active (covered by a forward-only forwarding declaration)
8527             and will not create an empty zone in that case.
8528           </para>
8529           <para>
8530             The current list of empty zones is:
8531             <itemizedlist>
8532 <!-- XXX: The RFC1918 addresses are #defined out in sources currently.
8533               <listitem>10.IN-ADDR.ARPA</listitem>
8534               <listitem>16.172.IN-ADDR.ARPA</listitem>
8535               <listitem>17.172.IN-ADDR.ARPA</listitem>
8536               <listitem>18.172.IN-ADDR.ARPA</listitem>
8537               <listitem>19.172.IN-ADDR.ARPA</listitem>
8538               <listitem>20.172.IN-ADDR.ARPA</listitem>
8539               <listitem>21.172.IN-ADDR.ARPA</listitem>
8540               <listitem>22.172.IN-ADDR.ARPA</listitem>
8541               <listitem>23.172.IN-ADDR.ARPA</listitem>
8542               <listitem>24.172.IN-ADDR.ARPA</listitem>
8543               <listitem>25.172.IN-ADDR.ARPA</listitem>
8544               <listitem>26.172.IN-ADDR.ARPA</listitem>
8545               <listitem>27.172.IN-ADDR.ARPA</listitem>
8546               <listitem>28.172.IN-ADDR.ARPA</listitem>
8547               <listitem>29.172.IN-ADDR.ARPA</listitem>
8548               <listitem>30.172.IN-ADDR.ARPA</listitem>
8549               <listitem>31.172.IN-ADDR.ARPA</listitem>
8550               <listitem>168.192.IN-ADDR.ARPA</listitem>
8551 XXX: end of RFC1918 addresses #defined out -->
8552               <listitem>0.IN-ADDR.ARPA</listitem>
8553               <listitem>127.IN-ADDR.ARPA</listitem>
8554               <listitem>254.169.IN-ADDR.ARPA</listitem>
8555               <listitem>2.0.192.IN-ADDR.ARPA</listitem>
8556               <listitem>255.255.255.255.IN-ADDR.ARPA</listitem>
8557               <listitem>0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA</listitem>
8558               <listitem>1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA</listitem>
8559               <listitem>D.F.IP6.ARPA</listitem>
8560               <listitem>8.E.F.IP6.ARPA</listitem>
8561               <listitem>9.E.F.IP6.ARPA</listitem>
8562               <listitem>A.E.F.IP6.ARPA</listitem>
8563               <listitem>B.E.F.IP6.ARPA</listitem>
8564             </itemizedlist>
8565           </para>
8566           <para>
8567             Empty zones are settable at the view level and only apply to
8568             views of class IN.  Disabled empty zones are only inherited
8569             from options if there are no disabled empty zones specified
8570             at the view level.  To override the options list of disabled
8571             zones, you can disable the root zone at the view level, for example:
8572 <programlisting>
8573             disable-empty-zone ".";
8574 </programlisting>
8575           </para>
8576           <para>
8577             If you are using the address ranges covered here, you should
8578             already have reverse zones covering the addresses you use.
8579             In practice this appears to not be the case with many queries
8580             being made to the infrastructure servers for names in these
8581             spaces.  So many in fact that sacrificial servers were needed
8582             to be deployed to channel the query load away from the
8583             infrastructure servers.
8584           </para>
8585           <note>
8586             The real parent servers for these zones should disable all
8587             empty zone under the parent zone they serve.  For the real
8588             root servers, this is all built-in empty zones.  This will
8589             enable them to return referrals to deeper in the tree.
8590           </note>
8591           <variablelist>
8592             <varlistentry>
8593               <term><command>empty-server</command></term>
8594               <listitem>
8595                 <para>
8596                   Specify what server name will appear in the returned
8597                   SOA record for empty zones.  If none is specified, then
8598                   the zone's name will be used.
8599                 </para>
8600                </listitem>
8601             </varlistentry>
8602               
8603             <varlistentry>
8604               <term><command>empty-contact</command></term>
8605               <listitem>
8606                 <para>
8607                   Specify what contact name will appear in the returned
8608                   SOA record for empty zones.  If none is specified, then
8609                   "." will be used.
8610                 </para>
8611               </listitem>
8612             </varlistentry>
8613   
8614             <varlistentry>
8615               <term><command>empty-zones-enable</command></term>
8616               <listitem>
8617                 <para>
8618                   Enable or disable all empty zones.  By default, they
8619                   are enabled.
8620                 </para>
8621               </listitem>
8622             </varlistentry>
8623   
8624             <varlistentry>
8625             <term><command>disable-empty-zone</command></term>
8626               <listitem>
8627                 <para>
8628                   Disable individual empty zones.  By default, none are
8629                   disabled.  This option can be specified multiple times.
8630                 </para>
8631               </listitem>
8632             </varlistentry>
8633           </variablelist>
8634         </sect3>
8636         <sect3 id="acache">
8637           <title>Additional Section Caching</title>
8639           <para>
8640             The additional section cache, also called <command>acache</command>,
8641             is an internal cache to improve the response performance of BIND 9.
8642             When additional section caching is enabled, BIND 9 will
8643             cache an internal short-cut to the additional section content for
8644             each answer RR.
8645             Note that <command>acache</command> is an internal caching
8646             mechanism of BIND 9, and is not related to the DNS caching
8647             server function.
8648           </para>
8650           <para>
8651             Additional section caching does not change the
8652             response content (except the RRsets ordering of the additional
8653             section, see below), but can improve the response performance
8654             significantly.
8655             It is particularly effective when BIND 9 acts as an authoritative
8656             server for a zone that has many delegations with many glue RRs.
8657           </para>
8659           <para>
8660             In order to obtain the maximum performance improvement
8661             from additional section caching, setting
8662             <command>additional-from-cache</command>
8663             to <command>no</command> is recommended, since the current
8664             implementation of <command>acache</command>
8665             does not short-cut of additional section information from the
8666             DNS cache data.
8667           </para>
8669           <para>
8670             One obvious disadvantage of <command>acache</command> is
8671             that it requires much more
8672             memory for the internal cached data.
8673             Thus, if the response performance does not matter and memory
8674             consumption is much more critical, the
8675             <command>acache</command> mechanism can be
8676             disabled by setting <command>acache-enable</command> to
8677             <command>no</command>.
8678             It is also possible to specify the upper limit of memory
8679             consumption
8680             for acache by using <command>max-acache-size</command>.
8681           </para>
8683           <para>
8684             Additional section caching also has a minor effect on the
8685             RRset ordering in the additional section.
8686             Without <command>acache</command>,
8687             <command>cyclic</command> order is effective for the additional
8688             section as well as the answer and authority sections.
8689             However, additional section caching fixes the ordering when it
8690             first caches an RRset for the additional section, and the same
8691             ordering will be kept in succeeding responses, regardless of the
8692             setting of <command>rrset-order</command>.
8693             The effect of this should be minor, however, since an
8694             RRset in the additional section
8695             typically only contains a small number of RRs (and in many cases
8696             it only contains a single RR), in which case the
8697             ordering does not matter much.
8698           </para>
8700           <para>
8701             The following is a summary of options related to
8702             <command>acache</command>.
8703           </para>
8705           <variablelist>
8707             <varlistentry>
8708               <term><command>acache-enable</command></term>
8709               <listitem>
8710                 <para>
8711                   If <command>yes</command>, additional section caching is
8712                   enabled.  The default value is <command>no</command>.
8713                 </para>
8714               </listitem>
8715             </varlistentry>
8717             <varlistentry>
8718               <term><command>acache-cleaning-interval</command></term>
8719               <listitem>
8720                 <para>
8721                   The server will remove stale cache entries, based on an LRU
8722                   based
8723                   algorithm, every <command>acache-cleaning-interval</command> minutes.
8724                   The default is 60 minutes.
8725                   If set to 0, no periodic cleaning will occur.
8726                 </para>
8727               </listitem>
8728             </varlistentry>
8730             <varlistentry>
8731               <term><command>max-acache-size</command></term>
8732               <listitem>
8733                 <para>
8734                   The maximum amount of memory in bytes to use for the server's acache.
8735                   When the amount of data in the acache reaches this limit,
8736                   the server
8737                   will clean more aggressively so that the limit is not
8738                   exceeded.
8739                   In a server with multiple views, the limit applies
8740                   separately to the
8741                   acache of each view.
8742                   The default is <literal>16M</literal>.
8743                 </para>
8744               </listitem>
8745             </varlistentry>
8747           </variablelist>
8749         </sect3>
8751         <sect3>
8752           <title>Content Filtering</title>
8753           <para>
8754             <acronym>BIND</acronym> 9 provides the ability to filter
8755             out DNS responses from external DNS servers containing
8756             certain types of data in the answer section.
8757             Specifically, it can reject address (A or AAAA) records if
8758             the corresponding IPv4 or IPv6 addresses match the given
8759             <varname>address_match_list</varname> of the
8760             <command>deny-answer-addresses</command> option.
8761             It can also reject CNAME or DNAME records if the "alias"
8762             name (i.e., the CNAME alias or the substituted query name
8763             due to DNAME) matches the
8764             given <varname>namelist</varname> of the
8765             <command>deny-answer-aliases</command> option, where
8766             "match" means the alias name is a subdomain of one of
8767             the <varname>name_list</varname> elements.
8768             If the optional <varname>namelist</varname> is specified
8769             with <command>except-from</command>, records whose query name
8770             matches the list will be accepted regardless of the filter
8771             setting.
8772             Likewise, if the alias name is a subdomain of the
8773             corresponding zone, the <command>deny-answer-aliases</command>
8774             filter will not apply;
8775             for example, even if "example.com" is specified for
8776             <command>deny-answer-aliases</command>,
8777           </para>
8778 <programlisting>www.example.com. CNAME xxx.example.com.</programlisting>
8780           <para>
8781             returned by an "example.com" server will be accepted.
8782           </para>
8784           <para>
8785             In the <varname>address_match_list</varname> of the
8786             <command>deny-answer-addresses</command> option, only
8787             <varname>ip_addr</varname>
8788             and <varname>ip_prefix</varname>
8789             are meaningful;
8790             any <varname>key_id</varname> will be silently ignored.
8791           </para>
8793           <para>
8794             If a response message is rejected due to the filtering,
8795             the entire message is discarded without being cached, and
8796             a SERVFAIL error will be returned to the client.
8797           </para>
8799           <para>
8800             This filtering is intended to prevent "DNS rebinding attacks," in
8801             which an attacker, in response to a query for a domain name the
8802             attacker controls, returns an IP address within your own network or
8803             an alias name within your own domain.
8804             A naive web browser or script could then serve as an
8805             unintended proxy, allowing the attacker
8806             to get access to an internal node of your local network
8807             that couldn't be externally accessed otherwise.
8808             See the paper available at
8809             <ulink>
8810             http://portal.acm.org/citation.cfm?id=1315245.1315298
8811             </ulink>
8812             for more details about the attacks.
8813           </para>
8815           <para>
8816             For example, if you own a domain named "example.net" and
8817             your internal network uses an IPv4 prefix 192.0.2.0/24,
8818             you might specify the following rules:
8819           </para>
8821 <programlisting>deny-answer-addresses { 192.0.2.0/24; } except-from { "example.net"; };
8822 deny-answer-aliases { "example.net"; };
8823 </programlisting>
8825           <para>
8826             If an external attacker lets a web browser in your local
8827             network look up an IPv4 address of "attacker.example.com",
8828             the attacker's DNS server would return a response like this:
8829           </para>
8831 <programlisting>attacker.example.com. A 192.0.2.1</programlisting>
8833           <para>
8834             in the answer section.
8835             Since the rdata of this record (the IPv4 address) matches
8836             the specified prefix 192.0.2.0/24, this response will be
8837             ignored.
8838           </para>
8840           <para>
8841             On the other hand, if the browser looks up a legitimate
8842             internal web server "www.example.net" and the
8843             following response is returned to
8844             the <acronym>BIND</acronym> 9 server
8845           </para>
8847 <programlisting>www.example.net. A 192.0.2.2</programlisting>
8849           <para>
8850             it will be accepted since the owner name "www.example.net"
8851             matches the <command>except-from</command> element,
8852             "example.net".
8853           </para>
8855           <para>
8856             Note that this is not really an attack on the DNS per se.
8857             In fact, there is nothing wrong for an "external" name to
8858             be mapped to your "internal" IP address or domain name
8859             from the DNS point of view.
8860             It might actually be provided for a legitimate purpose,
8861             such as for debugging.
8862             As long as the mapping is provided by the correct owner,
8863             it is not possible or does not make sense to detect
8864             whether the intent of the mapping is legitimate or not
8865             within the DNS.
8866             The "rebinding" attack must primarily be protected at the
8867             application that uses the DNS.
8868             For a large site, however, it may be difficult to protect
8869             all possible applications at once.
8870             This filtering feature is provided only to help such an
8871             operational environment;
8872             it is generally discouraged to turn it on unless you are
8873             very sure you have no other choice and the attack is a
8874             real threat for your applications.
8875           </para>
8877           <para>
8878             Care should be particularly taken if you want to use this
8879             option for addresses within 127.0.0.0/8.
8880             These addresses are obviously "internal", but many
8881             applications conventionally rely on a DNS mapping from
8882             some name to such an address.
8883             Filtering out DNS records containing this address
8884             spuriously can break such applications.
8885           </para>
8886         </sect3>
8887       </sect2>
8889       <sect2 id="server_statement_grammar">
8890         <title><command>server</command> Statement Grammar</title>
8892 <programlisting><command>server</command> <replaceable>ip_addr[/prefixlen]</replaceable> {
8893     <optional> bogus <replaceable>yes_or_no</replaceable> ; </optional>
8894     <optional> provide-ixfr <replaceable>yes_or_no</replaceable> ; </optional>
8895     <optional> request-ixfr <replaceable>yes_or_no</replaceable> ; </optional>
8896     <optional> edns <replaceable>yes_or_no</replaceable> ; </optional>
8897     <optional> edns-udp-size <replaceable>number</replaceable> ; </optional>
8898     <optional> max-udp-size <replaceable>number</replaceable> ; </optional>
8899     <optional> transfers <replaceable>number</replaceable> ; </optional>
8900     <optional> transfer-format <replaceable>( one-answer | many-answers )</replaceable> ; ]</optional>
8901     <optional> keys <replaceable>{ string ; <optional> string ; <optional>...</optional></optional> }</replaceable> ; </optional>
8902     <optional> transfer-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
8903     <optional> transfer-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
8904     <optional> notify-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
8905     <optional> notify-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
8906     <optional> query-source <optional> address ( <replaceable>ip_addr</replaceable> | <replaceable>*</replaceable> ) </optional>
8907                   <optional> port ( <replaceable>ip_port</replaceable> | <replaceable>*</replaceable> ) </optional>; </optional>
8908     <optional> query-source-v6 <optional> address ( <replaceable>ip_addr</replaceable> | <replaceable>*</replaceable> ) </optional>
8909                      <optional> port ( <replaceable>ip_port</replaceable> | <replaceable>*</replaceable> ) </optional>; </optional>
8910     <optional> use-queryport-pool <replaceable>yes_or_no</replaceable>; </optional>
8911     <optional> queryport-pool-ports <replaceable>number</replaceable>; </optional>
8912     <optional> queryport-pool-updateinterval <replaceable>number</replaceable>; </optional>
8914 </programlisting>
8916         </sect2>
8918         <sect2 id="server_statement_definition_and_usage">
8919           <title><command>server</command> Statement Definition and
8920             Usage</title>
8922           <para>
8923             The <command>server</command> statement defines
8924             characteristics
8925             to be associated with a remote name server.  If a prefix length is
8926             specified, then a range of servers is covered.  Only the most
8927             specific
8928             server clause applies regardless of the order in
8929             <filename>named.conf</filename>.
8930           </para>
8932           <para>
8933             The <command>server</command> statement can occur at
8934             the top level of the
8935             configuration file or inside a <command>view</command>
8936             statement.
8937             If a <command>view</command> statement contains
8938             one or more <command>server</command> statements, only
8939             those
8940             apply to the view and any top-level ones are ignored.
8941             If a view contains no <command>server</command>
8942             statements,
8943             any top-level <command>server</command> statements are
8944             used as
8945             defaults.
8946           </para>
8948           <para>
8949             If you discover that a remote server is giving out bad data,
8950             marking it as bogus will prevent further queries to it. The
8951             default
8952             value of <command>bogus</command> is <command>no</command>.
8953           </para>
8954           <para>
8955             The <command>provide-ixfr</command> clause determines
8956             whether
8957             the local server, acting as master, will respond with an
8958             incremental
8959             zone transfer when the given remote server, a slave, requests it.
8960             If set to <command>yes</command>, incremental transfer
8961             will be provided
8962             whenever possible. If set to <command>no</command>,
8963             all transfers
8964             to the remote server will be non-incremental. If not set, the
8965             value
8966             of the <command>provide-ixfr</command> option in the
8967             view or
8968             global options block is used as a default.
8969           </para>
8971           <para>
8972             The <command>request-ixfr</command> clause determines
8973             whether
8974             the local server, acting as a slave, will request incremental zone
8975             transfers from the given remote server, a master. If not set, the
8976             value of the <command>request-ixfr</command> option in
8977             the view or
8978             global options block is used as a default.
8979           </para>
8981           <para>
8982             IXFR requests to servers that do not support IXFR will
8983             automatically
8984             fall back to AXFR.  Therefore, there is no need to manually list
8985             which servers support IXFR and which ones do not; the global
8986             default
8987             of <command>yes</command> should always work.
8988             The purpose of the <command>provide-ixfr</command> and
8989             <command>request-ixfr</command> clauses is
8990             to make it possible to disable the use of IXFR even when both
8991             master
8992             and slave claim to support it, for example if one of the servers
8993             is buggy and crashes or corrupts data when IXFR is used.
8994           </para>
8996           <para>
8997             The <command>edns</command> clause determines whether
8998             the local server will attempt to use EDNS when communicating
8999             with the remote server.  The default is <command>yes</command>.
9000           </para>
9002           <para>
9003             The <command>edns-udp-size</command> option sets the EDNS UDP size
9004             that is advertised by <command>named</command> when querying the remote server.
9005             Valid values are 512 to 4096 bytes (values outside this range will be
9006             silently adjusted).  This option is useful when you wish to
9007             advertises a different value to this server than the value you
9008             advertise globally, for example, when there is a firewall at the
9009             remote site that is blocking large replies.
9010           </para>
9012           <para>
9013             The <command>max-udp-size</command> option sets the
9014             maximum EDNS UDP message size <command>named</command> will send.  Valid
9015             values are 512 to 4096 bytes (values outside this range will
9016             be silently adjusted).  This option is useful when you
9017             know that there is a firewall that is blocking large
9018             replies from <command>named</command>.
9019           </para>
9021           <para>
9022             The server supports two zone transfer methods. The first, <command>one-answer</command>,
9023             uses one DNS message per resource record transferred. <command>many-answers</command> packs
9024             as many resource records as possible into a message. <command>many-answers</command> is
9025             more efficient, but is only known to be understood by <acronym>BIND</acronym> 9, <acronym>BIND</acronym>
9026             8.x, and patched versions of <acronym>BIND</acronym>
9027             4.9.5. You can specify which method
9028             to use for a server with the <command>transfer-format</command> option.
9029             If <command>transfer-format</command> is not
9030             specified, the <command>transfer-format</command>
9031             specified
9032             by the <command>options</command> statement will be
9033             used.
9034           </para>
9036           <para><command>transfers</command>
9037             is used to limit the number of concurrent inbound zone
9038             transfers from the specified server. If no
9039             <command>transfers</command> clause is specified, the
9040             limit is set according to the
9041             <command>transfers-per-ns</command> option.
9042           </para>
9044           <para>
9045             The <command>keys</command> clause identifies a
9046             <command>key_id</command> defined by the <command>key</command> statement,
9047             to be used for transaction security (TSIG, <xref linkend="tsig"/>)
9048             when talking to the remote server.
9049             When a request is sent to the remote server, a request signature
9050             will be generated using the key specified here and appended to the
9051             message. A request originating from the remote server is not
9052             required
9053             to be signed by this key.
9054           </para>
9056           <para>
9057             Although the grammar of the <command>keys</command>
9058             clause
9059             allows for multiple keys, only a single key per server is
9060             currently
9061             supported.
9062           </para>
9064           <para>
9065             The <command>transfer-source</command> and
9066             <command>transfer-source-v6</command> clauses specify
9067             the IPv4 and IPv6 source
9068             address to be used for zone transfer with the remote server,
9069             respectively.
9070             For an IPv4 remote server, only <command>transfer-source</command> can
9071             be specified.
9072             Similarly, for an IPv6 remote server, only
9073             <command>transfer-source-v6</command> can be
9074             specified.
9075             For more details, see the description of
9076             <command>transfer-source</command> and
9077             <command>transfer-source-v6</command> in
9078             <xref linkend="zone_transfers"/>.
9079           </para>
9081           <para>
9082             The <command>notify-source</command> and
9083             <command>notify-source-v6</command> clauses specify the
9084             IPv4 and IPv6 source address to be used for notify
9085             messages sent to remote servers, respectively.  For an
9086             IPv4 remote server, only <command>notify-source</command>
9087             can be specified.  Similarly, for an IPv6 remote server,
9088             only <command>notify-source-v6</command> can be specified.
9089           </para>
9091           <para>
9092             The <command>query-source</command> and
9093             <command>query-source-v6</command> clauses specify the
9094             IPv4 and IPv6 source address to be used for queries
9095             sent to remote servers, respectively.  For an IPv4
9096             remote server, only <command>query-source</command> can
9097             be specified.  Similarly, for an IPv6 remote server,
9098             only <command>query-source-v6</command> can be specified.
9099           </para>
9101         </sect2>
9103       <sect2 id="statschannels">
9104         <title><command>statistics-channels</command> Statement Grammar</title>
9106 <programlisting><command>statistics-channels</command> {
9107    [ inet ( ip_addr | * ) [ port ip_port ]
9108    [ allow { <replaceable> address_match_list </replaceable> } ]; ]
9109    [ inet ...; ]
9111 </programlisting>
9112       </sect2>
9114       <sect2>
9115           <title><command>statistics-channels</command> Statement Definition and
9116             Usage</title>
9118         <para>
9119           The <command>statistics-channels</command> statement
9120           declares communication channels to be used by system
9121           administrators to get access to statistics information of
9122           the name server.
9123         </para>
9125         <para>
9126           This statement intends to be flexible to support multiple
9127           communication protocols in the future, but currently only
9128           HTTP access is supported.
9129           It requires that BIND 9 be compiled with libxml2;
9130           the <command>statistics-channels</command> statement is
9131           still accepted even if it is built without the library,
9132           but any HTTP access will fail with an error.
9133         </para>
9135         <para>
9136           An <command>inet</command> control channel is a TCP socket
9137           listening at the specified <command>ip_port</command> on the
9138           specified <command>ip_addr</command>, which can be an IPv4 or IPv6
9139           address.  An <command>ip_addr</command> of <literal>*</literal> (asterisk) is
9140           interpreted as the IPv4 wildcard address; connections will be
9141           accepted on any of the system's IPv4 addresses.
9142           To listen on the IPv6 wildcard address,
9143           use an <command>ip_addr</command> of <literal>::</literal>.
9144         </para>
9146         <para>
9147           If no port is specified, port 80 is used for HTTP channels.
9148           The asterisk "<literal>*</literal>" cannot be used for
9149           <command>ip_port</command>.
9150         </para>
9152         <para>
9153           The attempt of opening a statistics channel is
9154           restricted by the optional <command>allow</command> clause.
9155           Connections to the statistics channel are permitted based on the
9156           <command>address_match_list</command>.
9157           If no <command>allow</command> clause is present,
9158           <command>named</command> accepts connection
9159           attempts from any address; since the statistics may
9160           contain sensitive internal information, it is highly
9161           recommended to restrict the source of connection requests
9162           appropriately.
9163         </para>
9165         <para>
9166           If no <command>statistics-channels</command> statement is present,
9167           <command>named</command> will not open any communication channels.
9168         </para>
9170       </sect2>
9172         <sect2>
9173           <title><command>trusted-keys</command> Statement Grammar</title>
9175 <programlisting><command>trusted-keys</command> {
9176     <replaceable>string</replaceable> <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>string</replaceable> ;
9177     <optional> <replaceable>string</replaceable> <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>string</replaceable> ; <optional>...</optional></optional>
9179 </programlisting>
9181         </sect2>
9182         <sect2>
9183           <title><command>trusted-keys</command> Statement Definition
9184             and Usage</title>
9185           <para>
9186             The <command>trusted-keys</command> statement defines
9187             DNSSEC security roots. DNSSEC is described in <xref
9188             linkend="DNSSEC"/>. A security root is defined when the
9189             public key for a non-authoritative zone is known, but
9190             cannot be securely obtained through DNS, either because
9191             it is the DNS root zone or because its parent zone is
9192             unsigned.  Once a key has been configured as a trusted
9193             key, it is treated as if it had been validated and
9194             proven secure. The resolver attempts DNSSEC validation
9195             on all DNS data in subdomains of a security root.
9196           </para>
9197           <para>
9198             All keys (and corresponding zones) listed in
9199             <command>trusted-keys</command> are deemed to exist regardless
9200             of what parent zones say.  Similarly for all keys listed in
9201             <command>trusted-keys</command> only those keys are
9202             used to validate the DNSKEY RRset.  The parent's DS RRset
9203             will not be used.
9204           </para>
9205           <para>
9206             The <command>trusted-keys</command> statement can contain
9207             multiple key entries, each consisting of the key's
9208             domain name, flags, protocol, algorithm, and the Base-64
9209             representation of the key data.
9210             Spaces, tabs, newlines and carriage returns are ignored
9211             in the key data, so the configuration may be split up into
9212             multiple lines.
9213           </para>
9214           <para>
9215             <command>trusted-keys</command> may be set at the top level
9216             of <filename>named.conf</filename> or within a view.  If it is
9217             set in both places, they are additive: keys defined at the top
9218             level are inherited by all views, but keys defined in a view
9219             are only used within that view.
9220           </para>
9221         </sect2>
9223         <sect2>
9224           <title><command>managed-keys</command> Statement Grammar</title>
9226 <programlisting><command>managed-keys</command> {
9227     <replaceable>string</replaceable> initial-key <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>string</replaceable> ;
9228     <optional> <replaceable>string</replaceable> initial-key <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>string</replaceable> ; <optional>...</optional></optional>
9230 </programlisting>
9232         </sect2>
9233         <sect2>
9234           <title><command>managed-keys</command> Statement Definition
9235             and Usage</title>
9236           <para>
9237             The <command>managed-keys</command> statement, like 
9238             <command>trusted-keys</command>, defines DNSSEC
9239             security roots.  The difference is that
9240             <command>managed-keys</command> can be kept up to date
9241             automatically, without intervention from the resolver
9242             operator.
9243           </para>
9244           <para>
9245             Suppose, for example, that a zone's key-signing
9246             key was compromised, and the zone owner had to revoke and
9247             replace the key.  A resolver which had the old key in a
9248             <command>trusted-keys</command> statement would be
9249             unable to validate this zone any longer; it would
9250             reply with a SERVFAIL response code.  This would
9251             continue until the resolver operator had updated the
9252             <command>trusted-keys</command> statement with the new key.
9253           </para>
9254           <para>
9255             If, however, the zone were listed in a
9256             <command>managed-keys</command> statement instead, then the
9257             zone owner could add a "stand-by" key to the zone in advance.
9258             <command>named</command> would store the stand-by key, and
9259             when the original key was revoked, <command>named</command>
9260             would be able to transition smoothly to the new key.  It would
9261             also recognize that the old key had been revoked, and cease
9262             using that key to validate answers, minimizing the damage that
9263             the compromised key could do.
9264           </para>
9265           <para>
9266             A <command>managed-keys</command> statement contains a list of
9267             the keys to be managed, along with information about how the
9268             keys are to be initialized for the first time.  The only
9269             initialization method currently supported (as of
9270             <acronym>BIND</acronym> 9.7.0) is <literal>initial-key</literal>.
9271             This means the <command>managed-keys</command> statement must
9272             contain a copy of the initializing key.  (Future releases may
9273             allow keys to be initialized by other methods, eliminating this
9274             requirement.)
9275           </para>
9276           <para>
9277             Consequently, a <command>managed-keys</command> statement
9278             appears similar to a <command>trusted-keys</command>, differing
9279             in the presence of the second field, containing the keyword
9280             <literal>initial-key</literal>.  The difference is, whereas the
9281             keys listed in a <command>trusted-keys</command> continue to be
9282             trusted until they are removed from
9283             <filename>named.conf</filename>, an initializing key listed 
9284             in a <command>managed-keys</command> statement is only trusted
9285             <emphasis>once</emphasis>: for as long as it takes to load the
9286             managed key database and start the RFC 5011 key maintenance
9287             process.
9288           </para>
9289           <para>
9290             The first time <command>named</command> runs with a managed key
9291             configured in <filename>named.conf</filename>, it fetches the
9292             DNSKEY RRset directly from the zone apex, and validates it
9293             using the key specified in the <command>managed-keys</command>
9294             statement.  If the DNSKEY RRset is validly signed, then it is
9295             used as the basis for a new managed keys database.
9296           </para>
9297           <para>
9298             From that point on, whenever <command>named</command> runs, it
9299             sees the <command>managed-keys</command> statement, checks to
9300             make sure RFC 5011 key maintenance has already been initialized
9301             for the specified domain, and if so, it simply moves on.  The
9302             key specified in the <command>managed-keys</command> is not
9303             used to validate answers; it has been superseded by the key or
9304             keys stored in the managed keys database.
9305           </para>
9306           <para>
9307             The next time <command>named</command> runs after a name
9308             has been <emphasis>removed</emphasis> from the
9309             <command>managed-keys</command> statement, the corresponding
9310             zone will be removed from the managed keys database,
9311             and RFC 5011 key maintenance will no longer be used for that
9312             domain.
9313           </para>
9314           <para>
9315             <command>named</command> only maintains a single managed keys
9316             database; consequently, unlike <command>trusted-keys</command>,
9317             <command>managed-keys</command> may only be set at the top
9318             level of <filename>named.conf</filename>, not within a view.
9319           </para>
9320           <para>
9321             In the current implementation, the managed keys database is
9322             stored as a master-format zone file called
9323             <filename>managed-keys.bind</filename>.  When the key database
9324             is changed, the zone is updated.  As with any other dynamic
9325             zone, changes will be written into a journal file,
9326             <filename>managed-keys.bind.jnl</filename>.  They are committed
9327             to the master file as soon as possible afterward; in the case
9328             of the managed key database, this will usually occur within 30
9329             seconds.  So, whenever <command>named</command> is using
9330             automatic key maintenace, those two files can be expected to
9331             exist in the working directory.  (For this reason among others,
9332             the working directory should be always be writable by
9333             <command>named</command>.)
9334           </para>
9335           <para>
9336             If the <command>dnssec-lookaside</command> option is
9337             set to <userinput>auto</userinput>, <command>named</command>
9338             will automatically initialize a managed key for the
9339             zone <literal>dlv.isc.org</literal>.  The key that is
9340             used to initialize the key maintenance process is built
9341             into <command>named</command>, and can be overridden
9342             from <command>bindkeys-file</command>.
9343           </para>
9344         </sect2>
9346         <sect2 id="view_statement_grammar">
9347           <title><command>view</command> Statement Grammar</title>
9349 <programlisting><command>view</command> <replaceable>view_name</replaceable>
9350       <optional><replaceable>class</replaceable></optional> {
9351       match-clients { <replaceable>address_match_list</replaceable> };
9352       match-destinations { <replaceable>address_match_list</replaceable> };
9353       match-recursive-only <replaceable>yes_or_no</replaceable> ;
9354       <optional> <replaceable>view_option</replaceable>; ...</optional>
9355       <optional> <replaceable>zone_statement</replaceable>; ...</optional>
9357 </programlisting>
9359         </sect2>
9360         <sect2>
9361           <title><command>view</command> Statement Definition and Usage</title>
9363           <para>
9364             The <command>view</command> statement is a powerful
9365             feature
9366             of <acronym>BIND</acronym> 9 that lets a name server
9367             answer a DNS query differently
9368             depending on who is asking. It is particularly useful for
9369             implementing
9370             split DNS setups without having to run multiple servers.
9371           </para>
9373           <para>
9374             Each <command>view</command> statement defines a view
9375             of the
9376             DNS namespace that will be seen by a subset of clients.  A client
9377             matches
9378             a view if its source IP address matches the
9379             <varname>address_match_list</varname> of the view's
9380             <command>match-clients</command> clause and its
9381             destination IP address matches
9382             the <varname>address_match_list</varname> of the
9383             view's
9384             <command>match-destinations</command> clause.  If not
9385             specified, both
9386             <command>match-clients</command> and <command>match-destinations</command>
9387             default to matching all addresses.  In addition to checking IP
9388             addresses
9389             <command>match-clients</command> and <command>match-destinations</command>
9390             can also take <command>keys</command> which provide an
9391             mechanism for the
9392             client to select the view.  A view can also be specified
9393             as <command>match-recursive-only</command>, which
9394             means that only recursive
9395             requests from matching clients will match that view.
9396             The order of the <command>view</command> statements is
9397             significant &mdash;
9398             a client request will be resolved in the context of the first
9399             <command>view</command> that it matches.
9400           </para>
9402           <para>
9403             Zones defined within a <command>view</command>
9404             statement will
9405             only be accessible to clients that match the <command>view</command>.
9406             By defining a zone of the same name in multiple views, different
9407             zone data can be given to different clients, for example,
9408             "internal"
9409             and "external" clients in a split DNS setup.
9410           </para>
9412           <para>
9413             Many of the options given in the <command>options</command> statement
9414             can also be used within a <command>view</command>
9415             statement, and then
9416             apply only when resolving queries with that view.  When no
9417             view-specific
9418             value is given, the value in the <command>options</command> statement
9419             is used as a default.  Also, zone options can have default values
9420             specified
9421             in the <command>view</command> statement; these
9422             view-specific defaults
9423             take precedence over those in the <command>options</command> statement.
9424           </para>
9426           <para>
9427             Views are class specific.  If no class is given, class IN
9428             is assumed.  Note that all non-IN views must contain a hint zone,
9429             since only the IN class has compiled-in default hints.
9430           </para>
9432           <para>
9433             If there are no <command>view</command> statements in
9434             the config
9435             file, a default view that matches any client is automatically
9436             created
9437             in class IN. Any <command>zone</command> statements
9438             specified on
9439             the top level of the configuration file are considered to be part
9440             of
9441             this default view, and the <command>options</command>
9442             statement will
9443             apply to the default view. If any explicit <command>view</command>
9444             statements are present, all <command>zone</command>
9445             statements must
9446             occur inside <command>view</command> statements.
9447           </para>
9449           <para>
9450             Here is an example of a typical split DNS setup implemented
9451             using <command>view</command> statements:
9452           </para>
9454 <programlisting>view "internal" {
9455       // This should match our internal networks.
9456       match-clients { 10.0.0.0/8; };
9458       // Provide recursive service to internal
9459       // clients only.
9460       recursion yes;
9462       // Provide a complete view of the example.com
9463       // zone including addresses of internal hosts.
9464       zone "example.com" {
9465             type master;
9466             file "example-internal.db";
9467       };
9470 view "external" {
9471       // Match all clients not matched by the
9472       // previous view.
9473       match-clients { any; };
9475       // Refuse recursive service to external clients.
9476       recursion no;
9478       // Provide a restricted view of the example.com
9479       // zone containing only publicly accessible hosts.
9480       zone "example.com" {
9481            type master;
9482            file "example-external.db";
9483       };
9485 </programlisting>
9487         </sect2>
9488         <sect2 id="zone_statement_grammar">
9489           <title><command>zone</command>
9490             Statement Grammar</title>
9492 <programlisting><command>zone</command> <replaceable>zone_name</replaceable> <optional><replaceable>class</replaceable></optional> {
9493     type master;
9494     <optional> allow-query { <replaceable>address_match_list</replaceable> }; </optional>
9495     <optional> allow-query-on { <replaceable>address_match_list</replaceable> }; </optional>
9496     <optional> allow-transfer { <replaceable>address_match_list</replaceable> }; </optional>
9497     <optional> allow-update { <replaceable>address_match_list</replaceable> }; </optional>
9498     <optional> update-policy <replaceable>local</replaceable> | { <replaceable>update_policy_rule</replaceable> <optional>...</optional> }; </optional>
9499     <optional> also-notify { <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ;
9500                   <optional> <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ; ... </optional> }; </optional>
9501     <optional> check-names (<constant>warn</constant>|<constant>fail</constant>|<constant>ignore</constant>) ; </optional>
9502     <optional> check-mx (<constant>warn</constant>|<constant>fail</constant>|<constant>ignore</constant>) ; </optional>
9503     <optional> check-wildcard <replaceable>yes_or_no</replaceable>; </optional>
9504     <optional> check-integrity <replaceable>yes_or_no</replaceable> ; </optional>
9505     <optional> dialup <replaceable>dialup_option</replaceable> ; </optional>
9506     <optional> file <replaceable>string</replaceable> ; </optional>
9507     <optional> masterfile-format (<constant>text</constant>|<constant>raw</constant>) ; </optional>
9508     <optional> journal <replaceable>string</replaceable> ; </optional>
9509     <optional> max-journal-size <replaceable>size_spec</replaceable>; </optional>
9510     <optional> forward (<constant>only</constant>|<constant>first</constant>) ; </optional>
9511     <optional> forwarders { <optional> <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ; ... </optional> }; </optional>
9512     <optional> ixfr-base <replaceable>string</replaceable> ; </optional>
9513     <optional> ixfr-from-differences <replaceable>yes_or_no</replaceable>; </optional>
9514     <optional> ixfr-tmp-file <replaceable>string</replaceable> ; </optional>
9515     <optional> maintain-ixfr-base <replaceable>yes_or_no</replaceable> ; </optional>
9516     <optional> max-ixfr-log-size <replaceable>number</replaceable> ; </optional>
9517     <optional> max-transfer-idle-out <replaceable>number</replaceable> ; </optional>
9518     <optional> max-transfer-time-out <replaceable>number</replaceable> ; </optional>
9519     <optional> notify <replaceable>yes_or_no</replaceable> | <replaceable>explicit</replaceable> | <replaceable>master-only</replaceable> ; </optional>
9520     <optional> notify-delay <replaceable>seconds</replaceable> ; </optional>
9521     <optional> notify-to-soa <replaceable>yes_or_no</replaceable>; </optional>
9522     <optional> pubkey <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>string</replaceable> ; </optional>
9523     <optional> notify-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9524     <optional> notify-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9525     <optional> zone-statistics <replaceable>yes_or_no</replaceable> ; </optional>
9526     <optional> sig-validity-interval <replaceable>number</replaceable> <optional><replaceable>number</replaceable></optional> ; </optional>
9527     <optional> sig-signing-nodes <replaceable>number</replaceable> ; </optional>
9528     <optional> sig-signing-signatures <replaceable>number</replaceable> ; </optional>
9529     <optional> sig-signing-type <replaceable>number</replaceable> ; </optional>
9530     <optional> database <replaceable>string</replaceable> ; </optional>
9531     <optional> min-refresh-time <replaceable>number</replaceable> ; </optional>
9532     <optional> max-refresh-time <replaceable>number</replaceable> ; </optional>
9533     <optional> min-retry-time <replaceable>number</replaceable> ; </optional>
9534     <optional> max-retry-time <replaceable>number</replaceable> ; </optional>
9535     <optional> key-directory <replaceable>path_name</replaceable>; </optional>
9536     <optional> auto-dnssec <constant>allow</constant>|<constant>maintain</constant>|<constant>create</constant>|<constant>off</constant>; </optional>
9537     <optional> zero-no-soa-ttl <replaceable>yes_or_no</replaceable> ; </optional>
9540 zone <replaceable>zone_name</replaceable> <optional><replaceable>class</replaceable></optional> {
9541     type slave;
9542     <optional> allow-notify { <replaceable>address_match_list</replaceable> }; </optional>
9543     <optional> allow-query { <replaceable>address_match_list</replaceable> }; </optional>
9544     <optional> allow-query-on { <replaceable>address_match_list</replaceable> }; </optional>
9545     <optional> allow-transfer { <replaceable>address_match_list</replaceable> }; </optional>
9546     <optional> allow-update-forwarding { <replaceable>address_match_list</replaceable> }; </optional>
9547     <optional> update-check-ksk <replaceable>yes_or_no</replaceable>; </optional>
9548     <optional> dnssec-dnskey-kskonly <replaceable>yes_or_no</replaceable>; </optional>
9549     <optional> dnssec-secure-to-insecure <replaceable>yes_or_no</replaceable> ; </optional>
9550     <optional> try-tcp-refresh <replaceable>yes_or_no</replaceable>; </optional>
9551     <optional> also-notify { <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ;
9552                   <optional> <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ; ... </optional> }; </optional>
9553     <optional> check-names (<constant>warn</constant>|<constant>fail</constant>|<constant>ignore</constant>) ; </optional>
9554     <optional> dialup <replaceable>dialup_option</replaceable> ; </optional>
9555     <optional> file <replaceable>string</replaceable> ; </optional>
9556     <optional> masterfile-format (<constant>text</constant>|<constant>raw</constant>) ; </optional>
9557     <optional> journal <replaceable>string</replaceable> ; </optional>
9558     <optional> max-journal-size <replaceable>size_spec</replaceable>; </optional>
9559     <optional> forward (<constant>only</constant>|<constant>first</constant>) ; </optional>
9560     <optional> forwarders { <optional> <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ; ... </optional> }; </optional>
9561     <optional> ixfr-base <replaceable>string</replaceable> ; </optional>
9562     <optional> ixfr-from-differences <replaceable>yes_or_no</replaceable>; </optional>
9563     <optional> ixfr-tmp-file <replaceable>string</replaceable> ; </optional>
9564     <optional> maintain-ixfr-base <replaceable>yes_or_no</replaceable> ; </optional>
9565     <optional> masters <optional>port <replaceable>ip_port</replaceable></optional> { ( <replaceable>masters_list</replaceable> | <replaceable>ip_addr</replaceable>
9566                               <optional>port <replaceable>ip_port</replaceable></optional>
9567                               <optional>key <replaceable>key</replaceable></optional> ) ; <optional>...</optional> }; </optional>
9568     <optional> max-ixfr-log-size <replaceable>number</replaceable> ; </optional>
9569     <optional> max-transfer-idle-in <replaceable>number</replaceable> ; </optional>
9570     <optional> max-transfer-idle-out <replaceable>number</replaceable> ; </optional>
9571     <optional> max-transfer-time-in <replaceable>number</replaceable> ; </optional>
9572     <optional> max-transfer-time-out <replaceable>number</replaceable> ; </optional>
9573     <optional> notify <replaceable>yes_or_no</replaceable> | <replaceable>explicit</replaceable> | <replaceable>master-only</replaceable> ; </optional>
9574     <optional> notify-delay <replaceable>seconds</replaceable> ; </optional>
9575     <optional> notify-to-soa <replaceable>yes_or_no</replaceable>; </optional>
9576     <optional> pubkey <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>string</replaceable> ; </optional>
9577     <optional> transfer-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9578     <optional> transfer-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9579     <optional> alt-transfer-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9580     <optional> alt-transfer-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>)
9581                              <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9582     <optional> use-alt-transfer-source <replaceable>yes_or_no</replaceable>; </optional>
9583     <optional> notify-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9584     <optional> notify-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9585     <optional> zone-statistics <replaceable>yes_or_no</replaceable> ; </optional>
9586     <optional> database <replaceable>string</replaceable> ; </optional>
9587     <optional> min-refresh-time <replaceable>number</replaceable> ; </optional>
9588     <optional> max-refresh-time <replaceable>number</replaceable> ; </optional>
9589     <optional> min-retry-time <replaceable>number</replaceable> ; </optional>
9590     <optional> max-retry-time <replaceable>number</replaceable> ; </optional>
9591     <optional> multi-master <replaceable>yes_or_no</replaceable> ; </optional>
9592     <optional> zero-no-soa-ttl <replaceable>yes_or_no</replaceable> ; </optional>
9595 zone <replaceable>zone_name</replaceable> <optional><replaceable>class</replaceable></optional> {
9596     type hint;
9597     file <replaceable>string</replaceable> ;
9598     <optional> delegation-only <replaceable>yes_or_no</replaceable> ; </optional>
9599     <optional> check-names (<constant>warn</constant>|<constant>fail</constant>|<constant>ignore</constant>) ; </optional> // Not Implemented.
9602 zone <replaceable>zone_name</replaceable> <optional><replaceable>class</replaceable></optional> {
9603     type stub;
9604     <optional> allow-query { <replaceable>address_match_list</replaceable> }; </optional>
9605     <optional> allow-query-on { <replaceable>address_match_list</replaceable> }; </optional>
9606     <optional> check-names (<constant>warn</constant>|<constant>fail</constant>|<constant>ignore</constant>) ; </optional>
9607     <optional> dialup <replaceable>dialup_option</replaceable> ; </optional>
9608     <optional> delegation-only <replaceable>yes_or_no</replaceable> ; </optional>
9609     <optional> file <replaceable>string</replaceable> ; </optional>
9610     <optional> masterfile-format (<constant>text</constant>|<constant>raw</constant>) ; </optional>
9611     <optional> forward (<constant>only</constant>|<constant>first</constant>) ; </optional>
9612     <optional> forwarders { <optional> <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ; ... </optional> }; </optional>
9613     <optional> masters <optional>port <replaceable>ip_port</replaceable></optional> { ( <replaceable>masters_list</replaceable> | <replaceable>ip_addr</replaceable>
9614                               <optional>port <replaceable>ip_port</replaceable></optional>
9615                               <optional>key <replaceable>key</replaceable></optional> ) ; <optional>...</optional> }; </optional>
9616     <optional> max-transfer-idle-in <replaceable>number</replaceable> ; </optional>
9617     <optional> max-transfer-time-in <replaceable>number</replaceable> ; </optional>
9618     <optional> pubkey <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>number</replaceable> <replaceable>string</replaceable> ; </optional>
9619     <optional> transfer-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9620     <optional> transfer-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>)
9621                          <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9622     <optional> alt-transfer-source (<replaceable>ip4_addr</replaceable> | <constant>*</constant>) <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9623     <optional> alt-transfer-source-v6 (<replaceable>ip6_addr</replaceable> | <constant>*</constant>)
9624                             <optional>port <replaceable>ip_port</replaceable></optional> ; </optional>
9625     <optional> use-alt-transfer-source <replaceable>yes_or_no</replaceable>; </optional>
9626     <optional> zone-statistics <replaceable>yes_or_no</replaceable> ; </optional>
9627     <optional> database <replaceable>string</replaceable> ; </optional>
9628     <optional> min-refresh-time <replaceable>number</replaceable> ; </optional>
9629     <optional> max-refresh-time <replaceable>number</replaceable> ; </optional>
9630     <optional> min-retry-time <replaceable>number</replaceable> ; </optional>
9631     <optional> max-retry-time <replaceable>number</replaceable> ; </optional>
9632     <optional> multi-master <replaceable>yes_or_no</replaceable> ; </optional>
9635 zone <replaceable>zone_name</replaceable> <optional><replaceable>class</replaceable></optional> {
9636     type forward;
9637     <optional> forward (<constant>only</constant>|<constant>first</constant>) ; </optional>
9638     <optional> forwarders { <optional> <replaceable>ip_addr</replaceable> <optional>port <replaceable>ip_port</replaceable></optional> ; ... </optional> }; </optional>
9639     <optional> delegation-only <replaceable>yes_or_no</replaceable> ; </optional>
9642 zone <replaceable>zone_name</replaceable> <optional><replaceable>class</replaceable></optional> {
9643     type delegation-only;
9646 </programlisting>
9648         </sect2>
9649         <sect2>
9650           <title><command>zone</command> Statement Definition and Usage</title>
9651           <sect3>
9652             <title>Zone Types</title>
9653             <informaltable colsep="0" rowsep="0">
9654               <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
9655                 <!--colspec colname="1" colnum="1" colsep="0" colwidth="1.108in"/-->
9656                 <!--colspec colname="2" colnum="2" colsep="0" colwidth="4.017in"/-->
9657                 <colspec colname="1" colnum="1" colsep="0"/>
9658                 <colspec colname="2" colnum="2" colsep="0" colwidth="4.017in"/>
9659                 <tbody>
9660                   <row rowsep="0">
9661                     <entry colname="1">
9662                       <para>
9663                         <varname>master</varname>
9664                       </para>
9665                     </entry>
9666                     <entry colname="2">
9667                       <para>
9668                         The server has a master copy of the data
9669                         for the zone and will be able to provide authoritative
9670                         answers for
9671                         it.
9672                       </para>
9673                     </entry>
9674                   </row>
9675                   <row rowsep="0">
9676                     <entry colname="1">
9677                       <para>
9678                         <varname>slave</varname>
9679                       </para>
9680                     </entry>
9681                     <entry colname="2">
9682                       <para>
9683                         A slave zone is a replica of a master
9684                         zone. The <command>masters</command> list
9685                         specifies one or more IP addresses
9686                         of master servers that the slave contacts to update
9687                         its copy of the zone.
9688                         Masters list elements can also be names of other
9689                         masters lists.
9690                         By default, transfers are made from port 53 on the
9691                         servers; this can
9692                         be changed for all servers by specifying a port number
9693                         before the
9694                         list of IP addresses, or on a per-server basis after
9695                         the IP address.
9696                         Authentication to the master can also be done with
9697                         per-server TSIG keys.
9698                         If a file is specified, then the
9699                         replica will be written to this file whenever the zone
9700                         is changed,
9701                         and reloaded from this file on a server restart. Use
9702                         of a file is
9703                         recommended, since it often speeds server startup and
9704                         eliminates
9705                         a needless waste of bandwidth. Note that for large
9706                         numbers (in the
9707                         tens or hundreds of thousands) of zones per server, it
9708                         is best to
9709                         use a two-level naming scheme for zone filenames. For
9710                         example,
9711                         a slave server for the zone <literal>example.com</literal> might place
9712                         the zone contents into a file called
9713                         <filename>ex/example.com</filename> where <filename>ex/</filename> is
9714                         just the first two letters of the zone name. (Most
9715                         operating systems
9716                         behave very slowly if you put 100000 files into
9717                         a single directory.)
9718                       </para>
9719                     </entry>
9720                   </row>
9721                   <row rowsep="0">
9722                     <entry colname="1">
9723                       <para>
9724                         <varname>stub</varname>
9725                       </para>
9726                     </entry>
9727                     <entry colname="2">
9728                       <para>
9729                         A stub zone is similar to a slave zone,
9730                         except that it replicates only the NS records of a
9731                         master zone instead
9732                         of the entire zone. Stub zones are not a standard part
9733                         of the DNS;
9734                         they are a feature specific to the <acronym>BIND</acronym> implementation.
9735                       </para>
9737                       <para>
9738                         Stub zones can be used to eliminate the need for glue
9739                         NS record
9740                         in a parent zone at the expense of maintaining a stub
9741                         zone entry and
9742                         a set of name server addresses in <filename>named.conf</filename>.
9743                         This usage is not recommended for new configurations,
9744                         and BIND 9
9745                         supports it only in a limited way.
9746                         In <acronym>BIND</acronym> 4/8, zone
9747                         transfers of a parent zone
9748                         included the NS records from stub children of that
9749                         zone. This meant
9750                         that, in some cases, users could get away with
9751                         configuring child stubs
9752                         only in the master server for the parent zone. <acronym>BIND</acronym>
9753                         9 never mixes together zone data from different zones
9754                         in this
9755                         way. Therefore, if a <acronym>BIND</acronym> 9 master serving a parent
9756                         zone has child stub zones configured, all the slave
9757                         servers for the
9758                         parent zone also need to have the same child stub
9759                         zones
9760                         configured.
9761                       </para>
9763                       <para>
9764                         Stub zones can also be used as a way of forcing the
9765                         resolution
9766                         of a given domain to use a particular set of
9767                         authoritative servers.
9768                         For example, the caching name servers on a private
9769                         network using
9770                         RFC1918 addressing may be configured with stub zones
9771                         for
9772                         <literal>10.in-addr.arpa</literal>
9773                         to use a set of internal name servers as the
9774                         authoritative
9775                         servers for that domain.
9776                       </para>
9777                     </entry>
9778                   </row>
9779                   <row rowsep="0">
9780                     <entry colname="1">
9781                       <para>
9782                         <varname>forward</varname>
9783                       </para>
9784                     </entry>
9785                     <entry colname="2">
9786                       <para>
9787                         A "forward zone" is a way to configure
9788                         forwarding on a per-domain basis.  A <command>zone</command> statement
9789                         of type <command>forward</command> can
9790                         contain a <command>forward</command>
9791                         and/or <command>forwarders</command>
9792                         statement,
9793                         which will apply to queries within the domain given by
9794                         the zone
9795                         name. If no <command>forwarders</command>
9796                         statement is present or
9797                         an empty list for <command>forwarders</command> is given, then no
9798                         forwarding will be done for the domain, canceling the
9799                         effects of
9800                         any forwarders in the <command>options</command> statement. Thus
9801                         if you want to use this type of zone to change the
9802                         behavior of the
9803                         global <command>forward</command> option
9804                         (that is, "forward first"
9805                         to, then "forward only", or vice versa, but want to
9806                         use the same
9807                         servers as set globally) you need to re-specify the
9808                         global forwarders.
9809                       </para>
9810                     </entry>
9811                   </row>
9812                   <row rowsep="0">
9813                     <entry colname="1">
9814                       <para>
9815                         <varname>hint</varname>
9816                       </para>
9817                     </entry>
9818                     <entry colname="2">
9819                       <para>
9820                         The initial set of root name servers is
9821                         specified using a "hint zone". When the server starts
9822                         up, it uses
9823                         the root hints to find a root name server and get the
9824                         most recent
9825                         list of root name servers. If no hint zone is
9826                         specified for class
9827                         IN, the server uses a compiled-in default set of root
9828                         servers hints.
9829                         Classes other than IN have no built-in defaults hints.
9830                       </para>
9831                     </entry>
9832                   </row>
9833                   <row rowsep="0">
9834                     <entry colname="1">
9835                       <para>
9836                         <varname>delegation-only</varname>
9837                       </para>
9838                     </entry>
9839                     <entry colname="2">
9840                       <para>
9841                         This is used to enforce the delegation-only
9842                         status of infrastructure zones (e.g. COM,
9843                         NET, ORG).  Any answer that is received
9844                         without an explicit or implicit delegation
9845                         in the authority section will be treated
9846                         as NXDOMAIN.  This does not apply to the
9847                         zone apex.  This should not be applied to
9848                         leaf zones.
9849                       </para>
9850                       <para>
9851                         <varname>delegation-only</varname> has no
9852                         effect on answers received from forwarders.
9853                       </para>
9854                       <para>
9855                         See caveats in <xref linkend="root_delegation_only"/>.
9856                       </para>
9857                     </entry>
9858                   </row>
9859                 </tbody>
9860               </tgroup>
9861             </informaltable>
9862           </sect3>
9864           <sect3>
9865             <title>Class</title>
9866             <para>
9867               The zone's name may optionally be followed by a class. If
9868               a class is not specified, class <literal>IN</literal> (for <varname>Internet</varname>),
9869               is assumed. This is correct for the vast majority of cases.
9870             </para>
9871             <para>
9872               The <literal>hesiod</literal> class is
9873               named for an information service from MIT's Project Athena. It
9874               is
9875               used to share information about various systems databases, such
9876               as users, groups, printers and so on. The keyword
9877               <literal>HS</literal> is
9878               a synonym for hesiod.
9879             </para>
9880             <para>
9881               Another MIT development is Chaosnet, a LAN protocol created
9882               in the mid-1970s. Zone data for it can be specified with the <literal>CHAOS</literal> class.
9883             </para>
9884           </sect3>
9885           <sect3>
9887             <title>Zone Options</title>
9889             <variablelist>
9891               <varlistentry>
9892                 <term><command>allow-notify</command></term>
9893                 <listitem>
9894                   <para>
9895                     See the description of
9896                     <command>allow-notify</command> in <xref linkend="access_control"/>.
9897                   </para>
9898                 </listitem>
9899               </varlistentry>
9901               <varlistentry>
9902                 <term><command>allow-query</command></term>
9903                 <listitem>
9904                   <para>
9905                     See the description of
9906                     <command>allow-query</command> in <xref linkend="access_control"/>.
9907                   </para>
9908                 </listitem>
9909               </varlistentry>
9911               <varlistentry>
9912                 <term><command>allow-query-on</command></term>
9913                 <listitem>
9914                   <para>
9915                     See the description of
9916                     <command>allow-query-on</command> in <xref linkend="access_control"/>.
9917                   </para>
9918                 </listitem>
9919               </varlistentry>
9921               <varlistentry>
9922                 <term><command>allow-transfer</command></term>
9923                 <listitem>
9924                   <para>
9925                     See the description of <command>allow-transfer</command>
9926                     in <xref linkend="access_control"/>.
9927                   </para>
9928                 </listitem>
9929               </varlistentry>
9931               <varlistentry>
9932                 <term><command>allow-update</command></term>
9933                 <listitem>
9934                   <para>
9935                     See the description of <command>allow-update</command>
9936                     in <xref linkend="access_control"/>.
9937                   </para>
9938                 </listitem>
9939               </varlistentry>
9941               <varlistentry>
9942                 <term><command>update-policy</command></term>
9943                 <listitem>
9944                   <para>
9945                     Specifies a "Simple Secure Update" policy. See
9946                     <xref linkend="dynamic_update_policies"/>.
9947                   </para>
9948                 </listitem>
9949               </varlistentry>
9951               <varlistentry>
9952                 <term><command>allow-update-forwarding</command></term>
9953                 <listitem>
9954                   <para>
9955                     See the description of <command>allow-update-forwarding</command>
9956                     in <xref linkend="access_control"/>.
9957                   </para>
9958                 </listitem>
9959               </varlistentry>
9961               <varlistentry>
9962                 <term><command>also-notify</command></term>
9963                 <listitem>
9964                   <para>
9965                     Only meaningful if <command>notify</command>
9966                     is
9967                     active for this zone. The set of machines that will
9968                     receive a
9969                     <literal>DNS NOTIFY</literal> message
9970                     for this zone is made up of all the listed name servers
9971                     (other than
9972                     the primary master) for the zone plus any IP addresses
9973                     specified
9974                     with <command>also-notify</command>. A port
9975                     may be specified
9976                     with each <command>also-notify</command>
9977                     address to send the notify
9978                     messages to a port other than the default of 53.
9979                     <command>also-notify</command> is not
9980                     meaningful for stub zones.
9981                     The default is the empty list.
9982                   </para>
9983                 </listitem>
9984               </varlistentry>
9986               <varlistentry>
9987                 <term><command>check-names</command></term>
9988                 <listitem>
9989                   <para>
9990                     This option is used to restrict the character set and
9991                     syntax of
9992                     certain domain names in master files and/or DNS responses
9993                     received from the
9994                     network.  The default varies according to zone type.  For <command>master</command> zones the default is <command>fail</command>.  For <command>slave</command>
9995                     zones the default is <command>warn</command>.
9996                     It is not implemented for <command>hint</command> zones.
9997                   </para>
9998                 </listitem>
9999               </varlistentry>
10001               <varlistentry>
10002                 <term><command>check-mx</command></term>
10003                 <listitem>
10004                   <para>
10005                     See the description of
10006                     <command>check-mx</command> in <xref linkend="boolean_options"/>.
10007                   </para>
10008                 </listitem>
10009               </varlistentry>
10011               <varlistentry>
10012                 <term><command>check-wildcard</command></term>
10013                 <listitem>
10014                   <para>
10015                     See the description of
10016                     <command>check-wildcard</command> in <xref linkend="boolean_options"/>.
10017                   </para>
10018                 </listitem>
10019               </varlistentry>
10021               <varlistentry>
10022                 <term><command>check-integrity</command></term>
10023                 <listitem>
10024                   <para>
10025                     See the description of
10026                     <command>check-integrity</command> in <xref linkend="boolean_options"/>.
10027                   </para>
10028                 </listitem>
10029               </varlistentry>
10031               <varlistentry>
10032                 <term><command>check-sibling</command></term>
10033                 <listitem>
10034                   <para>
10035                     See the description of
10036                     <command>check-sibling</command> in <xref linkend="boolean_options"/>.
10037                   </para>
10038                 </listitem>
10039               </varlistentry>
10041               <varlistentry>
10042                 <term><command>zero-no-soa-ttl</command></term>
10043                 <listitem>
10044                   <para>
10045                     See the description of
10046                     <command>zero-no-soa-ttl</command> in <xref linkend="boolean_options"/>.
10047                   </para>
10048                 </listitem>
10049               </varlistentry>
10051               <varlistentry>
10052                 <term><command>update-check-ksk</command></term>
10053                 <listitem>
10054                   <para>
10055                     See the description of
10056                     <command>update-check-ksk</command> in <xref linkend="boolean_options"/>.
10057                   </para>
10058                 </listitem>
10059               </varlistentry>
10061               <varlistentry>
10062                 <term><command>dnssec-dnskey-kskonly</command></term>
10063                 <listitem>
10064                   <para>
10065                     See the description of
10066                     <command>dnssec-dnskey-kskonly</command> in <xref linkend="boolean_options"/>.
10067                   </para>
10068                 </listitem>
10069               </varlistentry>
10071               <varlistentry>
10072                 <term><command>try-tcp-refresh</command></term>
10073                 <listitem>
10074                   <para>
10075                     See the description of
10076                     <command>try-tcp-refresh</command> in <xref linkend="boolean_options"/>.
10077                   </para>
10078                 </listitem>
10079               </varlistentry>
10081               <varlistentry>
10082                 <term><command>database</command></term>
10083                 <listitem>
10084                   <para>
10085                     Specify the type of database to be used for storing the
10086                     zone data.  The string following the <command>database</command> keyword
10087                     is interpreted as a list of whitespace-delimited words.
10088                     The first word
10089                     identifies the database type, and any subsequent words are
10090                     passed
10091                     as arguments to the database to be interpreted in a way
10092                     specific
10093                     to the database type.
10094                   </para>
10095                   <para>
10096                     The default is <userinput>"rbt"</userinput>, BIND 9's
10097                     native in-memory
10098                     red-black-tree database.  This database does not take
10099                     arguments.
10100                   </para>
10101                   <para>
10102                     Other values are possible if additional database drivers
10103                     have been linked into the server.  Some sample drivers are
10104                     included
10105                     with the distribution but none are linked in by default.
10106                   </para>
10107                 </listitem>
10108               </varlistentry>
10110               <varlistentry>
10111                 <term><command>dialup</command></term>
10112                 <listitem>
10113                   <para>
10114                     See the description of
10115                     <command>dialup</command> in <xref linkend="boolean_options"/>.
10116                   </para>
10117                 </listitem>
10118               </varlistentry>
10120               <varlistentry>
10121                 <term><command>delegation-only</command></term>
10122                 <listitem>
10123                   <para>
10124                     The flag only applies to hint and stub zones.  If set
10125                     to <userinput>yes</userinput>, then the zone will also be
10126                     treated as if it is also a delegation-only type zone.
10127                   </para>
10128                   <para>
10129                     See caveats in <xref linkend="root_delegation_only"/>.
10130                   </para>
10131                 </listitem>
10132               </varlistentry>
10134               <varlistentry>
10135                 <term><command>forward</command></term>
10136                 <listitem>
10137                   <para>
10138                     Only meaningful if the zone has a forwarders
10139                     list. The <command>only</command> value causes
10140                     the lookup to fail
10141                     after trying the forwarders and getting no answer, while <command>first</command> would
10142                     allow a normal lookup to be tried.
10143                   </para>
10144                 </listitem>
10145               </varlistentry>
10147               <varlistentry>
10148                 <term><command>forwarders</command></term>
10149                 <listitem>
10150                   <para>
10151                     Used to override the list of global forwarders.
10152                     If it is not specified in a zone of type <command>forward</command>,
10153                     no forwarding is done for the zone and the global options are
10154                     not used.
10155                   </para>
10156                 </listitem>
10157               </varlistentry>
10159               <varlistentry>
10160                 <term><command>ixfr-base</command></term>
10161                 <listitem>
10162                   <para>
10163                     Was used in <acronym>BIND</acronym> 8 to
10164                     specify the name
10165                     of the transaction log (journal) file for dynamic update
10166                     and IXFR.
10167                     <acronym>BIND</acronym> 9 ignores the option
10168                     and constructs the name of the journal
10169                     file by appending "<filename>.jnl</filename>"
10170                     to the name of the
10171                     zone file.
10172                   </para>
10173                 </listitem>
10174               </varlistentry>
10176               <varlistentry>
10177                 <term><command>ixfr-tmp-file</command></term>
10178                 <listitem>
10179                   <para>
10180                     Was an undocumented option in <acronym>BIND</acronym> 8.
10181                     Ignored in <acronym>BIND</acronym> 9.
10182                   </para>
10183                 </listitem>
10184               </varlistentry>
10186               <varlistentry>
10187                 <term><command>journal</command></term>
10188                 <listitem>
10189                   <para>
10190                     Allow the default journal's filename to be overridden.
10191                     The default is the zone's filename with "<filename>.jnl</filename>" appended.
10192                     This is applicable to <command>master</command> and <command>slave</command> zones.
10193                   </para>
10194                 </listitem>
10195               </varlistentry>
10197               <varlistentry>
10198                 <term><command>max-journal-size</command></term>
10199                 <listitem>
10200                   <para>
10201                     See the description of
10202                     <command>max-journal-size</command> in <xref linkend="server_resource_limits"/>.
10203                   </para>
10204                 </listitem>
10205               </varlistentry>
10207               <varlistentry>
10208                 <term><command>max-transfer-time-in</command></term>
10209                 <listitem>
10210                   <para>
10211                     See the description of
10212                     <command>max-transfer-time-in</command> in <xref linkend="zone_transfers"/>.
10213                   </para>
10214                 </listitem>
10215               </varlistentry>
10217               <varlistentry>
10218                 <term><command>max-transfer-idle-in</command></term>
10219                 <listitem>
10220                   <para>
10221                     See the description of
10222                     <command>max-transfer-idle-in</command> in <xref linkend="zone_transfers"/>.
10223                   </para>
10224                 </listitem>
10225               </varlistentry>
10227               <varlistentry>
10228                 <term><command>max-transfer-time-out</command></term>
10229                 <listitem>
10230                   <para>
10231                     See the description of
10232                     <command>max-transfer-time-out</command> in <xref linkend="zone_transfers"/>.
10233                   </para>
10234                 </listitem>
10235               </varlistentry>
10237               <varlistentry>
10238                 <term><command>max-transfer-idle-out</command></term>
10239                 <listitem>
10240                   <para>
10241                     See the description of
10242                     <command>max-transfer-idle-out</command> in <xref linkend="zone_transfers"/>.
10243                   </para>
10244                 </listitem>
10245               </varlistentry>
10247               <varlistentry>
10248                 <term><command>notify</command></term>
10249                 <listitem>
10250                   <para>
10251                     See the description of
10252                     <command>notify</command> in <xref linkend="boolean_options"/>.
10253                   </para>
10254                 </listitem>
10255               </varlistentry>
10257               <varlistentry>
10258                 <term><command>notify-delay</command></term>
10259                 <listitem>
10260                   <para>
10261                     See the description of
10262                     <command>notify-delay</command> in <xref linkend="tuning"/>.
10263                   </para>
10264                 </listitem>
10265               </varlistentry>
10267               <varlistentry>
10268                 <term><command>notify-to-soa</command></term>
10269                 <listitem>
10270                   <para>
10271                     See the description of
10272                     <command>notify-to-soa</command> in
10273                     <xref linkend="boolean_options"/>.
10274                   </para>
10275                 </listitem>
10276               </varlistentry>
10278               <varlistentry>
10279                 <term><command>pubkey</command></term>
10280                 <listitem>
10281                   <para>
10282                     In <acronym>BIND</acronym> 8, this option was
10283                     intended for specifying
10284                     a public zone key for verification of signatures in DNSSEC
10285                     signed
10286                     zones when they are loaded from disk. <acronym>BIND</acronym> 9 does not verify signatures
10287                     on load and ignores the option.
10288                   </para>
10289                 </listitem>
10290               </varlistentry>
10292               <varlistentry>
10293                 <term><command>zone-statistics</command></term>
10294                 <listitem>
10295                   <para>
10296                     If <userinput>yes</userinput>, the server will keep
10297                     statistical
10298                     information for this zone, which can be dumped to the
10299                     <command>statistics-file</command> defined in
10300                     the server options.
10301                   </para>
10302                 </listitem>
10303               </varlistentry>
10305               <varlistentry>
10306                 <term><command>sig-validity-interval</command></term>
10307                 <listitem>
10308                   <para>
10309                     See the description of
10310                     <command>sig-validity-interval</command> in <xref linkend="tuning"/>.
10311                   </para>
10312                 </listitem>
10313               </varlistentry>
10315               <varlistentry>
10316                 <term><command>sig-signing-nodes</command></term>
10317                 <listitem>
10318                   <para>
10319                     See the description of
10320                     <command>sig-signing-nodes</command> in <xref linkend="tuning"/>.
10321                   </para>
10322                 </listitem>
10323               </varlistentry>
10325               <varlistentry>
10326                 <term><command>sig-signing-signatures</command></term>
10327                 <listitem>
10328                   <para>
10329                     See the description of
10330                     <command>sig-signing-signatures</command> in <xref linkend="tuning"/>.
10331                   </para>
10332                 </listitem>
10333               </varlistentry>
10335               <varlistentry>
10336                 <term><command>sig-signing-type</command></term>
10337                 <listitem>
10338                   <para>
10339                     See the description of
10340                     <command>sig-signing-type</command> in <xref linkend="tuning"/>.
10341                   </para>
10342                 </listitem>
10343               </varlistentry>
10345               <varlistentry>
10346                 <term><command>transfer-source</command></term>
10347                 <listitem>
10348                   <para>
10349                     See the description of
10350                     <command>transfer-source</command> in <xref linkend="zone_transfers"/>.
10351                   </para>
10352                 </listitem>
10353               </varlistentry>
10355               <varlistentry>
10356                 <term><command>transfer-source-v6</command></term>
10357                 <listitem>
10358                   <para>
10359                     See the description of
10360                     <command>transfer-source-v6</command> in <xref linkend="zone_transfers"/>.
10361                   </para>
10362                 </listitem>
10363               </varlistentry>
10365               <varlistentry>
10366                 <term><command>alt-transfer-source</command></term>
10367                 <listitem>
10368                   <para>
10369                     See the description of
10370                     <command>alt-transfer-source</command> in <xref linkend="zone_transfers"/>.
10371                   </para>
10372                 </listitem>
10373               </varlistentry>
10375               <varlistentry>
10376                 <term><command>alt-transfer-source-v6</command></term>
10377                 <listitem>
10378                   <para>
10379                     See the description of
10380                     <command>alt-transfer-source-v6</command> in <xref linkend="zone_transfers"/>.
10381                   </para>
10382                 </listitem>
10383               </varlistentry>
10385               <varlistentry>
10386                 <term><command>use-alt-transfer-source</command></term>
10387                 <listitem>
10388                   <para>
10389                     See the description of
10390                     <command>use-alt-transfer-source</command> in <xref linkend="zone_transfers"/>.
10391                   </para>
10392                 </listitem>
10393               </varlistentry>
10396               <varlistentry>
10397                 <term><command>notify-source</command></term>
10398                 <listitem>
10399                   <para>
10400                     See the description of
10401                     <command>notify-source</command> in <xref linkend="zone_transfers"/>.
10402                   </para>
10403                 </listitem>
10404               </varlistentry>
10406               <varlistentry>
10407                 <term><command>notify-source-v6</command></term>
10408                 <listitem>
10409                   <para>
10410                     See the description of
10411                     <command>notify-source-v6</command> in <xref linkend="zone_transfers"/>.
10412                   </para>
10413                 </listitem>
10414               </varlistentry>
10416               <varlistentry>
10417                 <term><command>min-refresh-time</command></term>
10418                 <term><command>max-refresh-time</command></term>
10419                 <term><command>min-retry-time</command></term>
10420                 <term><command>max-retry-time</command></term>
10421                 <listitem>
10422                   <para>
10423                     See the description in <xref linkend="tuning"/>.
10424                   </para>
10425                 </listitem>
10426               </varlistentry>
10428               <varlistentry>
10429                 <term><command>ixfr-from-differences</command></term>
10430                 <listitem>
10431                   <para>
10432                     See the description of
10433                     <command>ixfr-from-differences</command> in <xref linkend="boolean_options"/>.
10434                     (Note that the <command>ixfr-from-differences</command>
10435                     <userinput>master</userinput> and
10436                     <userinput>slave</userinput> choices are not
10437                     available at the zone level.)
10438                   </para>
10439                 </listitem>
10440               </varlistentry>
10442               <varlistentry>
10443                 <term><command>key-directory</command></term>
10444                 <listitem>
10445                   <para>
10446                     See the description of
10447                     <command>key-directory</command> in <xref linkend="options"/>.
10448                   </para>
10449                 </listitem>
10450               </varlistentry>
10452               <varlistentry>
10453                 <term><command>auto-dnssec</command></term>
10454                 <listitem>
10455                   <para>
10456                     Zones configured for dynamic DNS may also use this
10457                     option to allow varying levels of autonatic DNSSEC key
10458                     management. There are four possible settings:
10459                   </para>
10460                   <para>
10461                     <command>auto-dnssec allow;</command> permits
10462                     keys to be updated and the zone re-signed whenever the
10463                     user issues the command <command>rndc sign
10464                     <replaceable>zonename</replaceable></command>.
10465                   </para>
10466                   <para>
10467                     <command>auto-dnssec maintain;</command> includes the
10468                     above, but also automatically adjusts the zone's DNSSEC
10469                     keys on schedule, according to the keys' timing metadata
10470                     (see <xref linkend="man.dnssec-keygen"/> and
10471                     <xref linkend="man.dnssec-settime"/>).
10472                   </para>
10473                   <para>
10474                     <command>auto-dnssec create;</command> includes the
10475                     above, but also allows <command>named</command>
10476                     to create new keys in the key repository when needed.
10477                     (NOTE: This option is not yet implemented; the syntax is
10478                     being reserved for future use.)
10479                   </para>
10480                   <para>
10481                     The default setting is <command>auto-dnssec off</command>.
10482                   </para>
10483                 </listitem>
10484               </varlistentry>
10486               <varlistentry>
10487                 <term><command>multi-master</command></term>
10488                 <listitem>
10489                   <para>
10490                     See the description of <command>multi-master</command> in
10491                     <xref linkend="boolean_options"/>.
10492                   </para>
10493                 </listitem>
10494               </varlistentry>
10495         
10496               <varlistentry>
10497                 <term><command>masterfile-format</command></term>
10498                 <listitem>
10499                   <para>
10500                     See the description of <command>masterfile-format</command>
10501                     in <xref linkend="tuning"/>.
10502                   </para>
10503                 </listitem>
10504               </varlistentry>
10506               <varlistentry>
10507                 <term><command>dnssec-secure-to-insecure</command></term>
10508                 <listitem>
10509                   <para>
10510                     See the description of
10511                     <command>dnssec-secure-to-insecure</command> in <xref linkend="boolean_options"/>.
10512                   </para>
10513                 </listitem>
10514               </varlistentry>
10516             </variablelist>
10518           </sect3>
10519           <sect3 id="dynamic_update_policies">
10520             <title>Dynamic Update Policies</title>
10521             <para><acronym>BIND</acronym> 9 supports two alternative
10522               methods of granting clients the right to perform
10523               dynamic updates to a zone, configured by the
10524               <command>allow-update</command> and
10525               <command>update-policy</command> option, respectively.
10526             </para>
10527             <para>
10528               The <command>allow-update</command> clause works the
10529               same way as in previous versions of <acronym>BIND</acronym>.
10530               It grants given clients the permission to update any
10531               record of any name in the zone.
10532             </para>
10533             <para>
10534               The <command>update-policy</command> clause
10535               allows more fine-grained control over what updates are
10536               allowed.  A set of rules is specified, where each rule
10537               either grants or denies permissions for one or more
10538               names to be updated by one or more identities.  If
10539               the dynamic update request message is signed (that is,
10540               it includes either a TSIG or SIG(0) record), the
10541               identity of the signer can be determined.
10542             </para>
10543             <para>
10544               Rules are specified in the <command>update-policy</command>
10545               zone option, and are only meaningful for master zones.
10546               When the <command>update-policy</command> statement
10547               is present, it is a configuration error for the
10548               <command>allow-update</command> statement to be
10549               present.  The <command>update-policy</command> statement
10550               only examines the signer of a message; the source
10551               address is not relevant.
10552             </para>
10553             <para>
10554               There is a pre-defined <command>update-policy</command>
10555               rule which can be switched on with the command
10556               <command>update-policy local;</command>.
10557               Switching on this rule in a zone causes
10558               <command>named</command> to generate a TSIG session
10559               key and place it in a file, and to allow that key
10560               to update the zone.  (By default, the file is
10561               <filename>/var/run/named/session.key</filename>, the key
10562               name is "local-ddns" and the key algorithm is HMAC-SHA256,
10563               but these values are configurable with the
10564               <command>session-keyfile</command>,
10565               <command>session-keyname</command> and
10566               <command>session-keyalg</command> options, respectively).
10567             </para>
10568             <para>
10569               A client running on the local system, and with appropriate
10570               permissions, may read that file and use the key to sign update
10571               requests.  The zone's update policy will be set to allow that
10572               key to change any record within the zone.  Assuming the
10573               key name is "local-ddns", this policy is equivalent to:
10574             </para>
10576             <programlisting>update-policy { grant local-ddns zonesub any; };
10577             </programlisting>
10579             <para>
10580               The command <command>nsupdate -l</command> sends update
10581               requests to localhost, and signs them using the session key.
10582             </para>
10584             <para>
10585               Other rule definitions look like this:
10586             </para>
10588 <programlisting>
10589 ( <command>grant</command> | <command>deny</command> ) <replaceable>identity</replaceable> <replaceable>nametype</replaceable> <optional> <replaceable>name</replaceable> </optional> <optional> <replaceable>types</replaceable> </optional>
10590 </programlisting>
10592             <para>
10593               Each rule grants or denies privileges.  Once a message has
10594               successfully matched a rule, the operation is immediately
10595               granted or denied and no further rules are examined.  A rule
10596               is matched when the signer matches the identity field, the
10597               name matches the name field in accordance with the nametype
10598               field, and the type matches the types specified in the type
10599               field.
10600             </para>
10601             <para>
10602               No signer is required for <replaceable>tcp-self</replaceable>
10603               or <replaceable>6to4-self</replaceable> however the standard
10604               reverse mapping / prefix conversion must match the identity
10605               field.
10606             </para>
10607             <para>
10608               The identity field specifies a name or a wildcard
10609               name.  Normally, this is the name of the TSIG or
10610               SIG(0) key used to sign the update request.  When a
10611               TKEY exchange has been used to create a shared secret,
10612               the identity of the shared secret is the same as the
10613               identity of the key used to authenticate the TKEY
10614               exchange.  TKEY is also the negotiation method used
10615               by GSS-TSIG, which establishes an identity that is
10616               the Kerberos principal of the client, such as
10617               <userinput>"user@host.domain"</userinput>.  When the
10618               <replaceable>identity</replaceable> field specifies
10619               a wildcard name, it is subject to DNS wildcard
10620               expansion, so the rule will apply to multiple identities.
10621               The <replaceable>identity</replaceable> field must
10622               contain a fully-qualified domain name.
10623             </para>
10625             <para>
10626               The <replaceable>nametype</replaceable> field has 13
10627               values:
10628               <varname>name</varname>, <varname>subdomain</varname>,
10629               <varname>wildcard</varname>, <varname>self</varname>,
10630               <varname>selfsub</varname>, <varname>selfwild</varname>,
10631               <varname>krb5-self</varname>, <varname>ms-self</varname>,
10632               <varname>krb5-subdomain</varname>,
10633               <varname>ms-subdomain</varname>,
10634               <varname>tcp-self</varname>, <varname>6to4-self</varname>,
10635               and <varname>zonesub</varname>.
10636             </para>
10637             <informaltable>
10638               <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
10639                 <colspec colname="1" colnum="1" colsep="0" colwidth="0.819in"/>
10640                 <colspec colname="2" colnum="2" colsep="0" colwidth="3.681in"/>
10641                 <tbody>
10642                   <row rowsep="0">
10643                     <entry colname="1">
10644                       <para>
10645                         <varname>name</varname>
10646                       </para>
10647                     </entry> <entry colname="2">
10648                       <para>
10649                         Exact-match semantics.  This rule matches
10650                         when the name being updated is identical
10651                         to the contents of the
10652                         <replaceable>name</replaceable> field.
10653                       </para>
10654                     </entry>
10655                   </row>
10656                   <row rowsep="0">
10657                     <entry colname="1">
10658                       <para>
10659                         <varname>subdomain</varname>
10660                       </para>
10661                     </entry> <entry colname="2">
10662                       <para>
10663                         This rule matches when the name being updated
10664                         is a subdomain of, or identical to, the
10665                         contents of the <replaceable>name</replaceable>
10666                         field.
10667                       </para>
10668                     </entry>
10669                   </row>
10670                   <row rowsep="0">
10671                     <entry colname="1">
10672                       <para>
10673                         <varname>zonesub</varname>
10674                       </para>
10675                     </entry> <entry colname="2">
10676                       <para>
10677                         This rule is similar to subdomain, except that
10678                         it matches when the name being updated is a
10679                         subdomain of the zone in which the
10680                         <command>update-policy</command> statement
10681                         appears.  This obviates the need to type the zone
10682                         name twice, and enables the use of a standard
10683                         <command>update-policy</command> statement in
10684                         multiple zones without modification.
10685                       </para>
10686                       <para>
10687                         When this rule is used, the
10688                         <replaceable>name</replaceable> field is omitted.
10689                       </para>
10690                     </entry>
10691                   </row>
10692                   <row rowsep="0">
10693                     <entry colname="1">
10694                       <para>
10695                         <varname>wildcard</varname>
10696                       </para>
10697                     </entry> <entry colname="2">
10698                       <para>
10699                         The <replaceable>name</replaceable> field
10700                         is subject to DNS wildcard expansion, and
10701                         this rule matches when the name being updated
10702                         name is a valid expansion of the wildcard.
10703                       </para>
10704                     </entry>
10705                   </row>
10706                   <row rowsep="0">
10707                     <entry colname="1">
10708                       <para>
10709                         <varname>self</varname>
10710                       </para>
10711                     </entry>
10712                     <entry colname="2">
10713                       <para>
10714                         This rule matches when the name being updated
10715                         matches the contents of the
10716                         <replaceable>identity</replaceable> field.
10717                         The <replaceable>name</replaceable> field
10718                         is ignored, but should be the same as the
10719                         <replaceable>identity</replaceable> field.
10720                         The <varname>self</varname> nametype is
10721                         most useful when allowing using one key per
10722                         name to update, where the key has the same
10723                         name as the name to be updated.  The
10724                         <replaceable>identity</replaceable> would
10725                         be specified as <constant>*</constant> (an asterisk) in
10726                         this case.
10727                       </para>
10728                     </entry>
10729                   </row>
10730                   <row rowsep="0">
10731                     <entry colname="1">
10732                       <para>
10733                         <varname>selfsub</varname>
10734                       </para>
10735                     </entry> <entry colname="2">
10736                       <para>
10737                         This rule is similar to <varname>self</varname>
10738                         except that subdomains of <varname>self</varname>
10739                         can also be updated.
10740                       </para>
10741                     </entry>
10742                   </row>
10743                   <row rowsep="0">
10744                     <entry colname="1">
10745                       <para>
10746                         <varname>selfwild</varname>
10747                       </para>
10748                     </entry> <entry colname="2">
10749                       <para>
10750                         This rule is similar to <varname>self</varname>
10751                         except that only subdomains of
10752                         <varname>self</varname> can be updated.
10753                       </para>
10754                     </entry>
10755                   </row>
10756                   <row rowsep="0">
10757                     <entry colname="1">
10758                       <para>
10759                         <varname>tcp-self</varname>
10760                       </para>
10761                     </entry> <entry colname="2">
10762                       <para>
10763                         Allow updates that have been sent via TCP and
10764                         for which the standard mapping from the initiating
10765                         IP address into the IN-ADDR.ARPA and IP6.ARPA
10766                         namespaces match the name to be updated.
10767                       </para>
10768                       <note>
10769                         It is theoretically possible to spoof these TCP
10770                         sessions.
10771                       </note>
10772                     </entry>
10773                   </row>
10774                   <row rowsep="0">
10775                     <entry colname="1">
10776                       <para>
10777                         <varname>6to4-self</varname>
10778                       </para>
10779                     </entry> <entry colname="2">
10780                       <para>
10781                         Allow the 6to4 prefix to be update by any TCP
10782                         connection from the 6to4 network or from the
10783                         corresponding IPv4 address.  This is intended
10784                         to allow NS or DNAME RRsets to be added to the
10785                         reverse tree.
10786                       </para>
10787                       <note>
10788                         It is theoretically possible to spoof these TCP
10789                         sessions.
10790                       </note>
10791                     </entry>
10792                   </row>
10793                 </tbody>
10794               </tgroup>
10795             </informaltable>
10797             <para>
10798               In all cases, the <replaceable>name</replaceable>
10799               field must
10800               specify a fully-qualified domain name.
10801             </para>
10803             <para>
10804               If no types are explicitly specified, this rule matches
10805               all types except RRSIG, NS, SOA, NSEC and NSEC3. Types
10806               may be specified by name, including "ANY" (ANY matches
10807               all types except NSEC and NSEC3, which can never be
10808               updated).  Note that when an attempt is made to delete
10809               all records associated with a name, the rules are
10810               checked for each existing record type.
10811             </para>
10812           </sect3>
10813         </sect2>
10814       </sect1>
10815       <sect1>
10816         <title>Zone File</title>
10817         <sect2 id="types_of_resource_records_and_when_to_use_them">
10818           <title>Types of Resource Records and When to Use Them</title>
10819           <para>
10820             This section, largely borrowed from RFC 1034, describes the
10821             concept of a Resource Record (RR) and explains when each is used.
10822             Since the publication of RFC 1034, several new RRs have been
10823             identified
10824             and implemented in the DNS. These are also included.
10825           </para>
10826           <sect3>
10827             <title>Resource Records</title>
10829             <para>
10830               A domain name identifies a node.  Each node has a set of
10831               resource information, which may be empty.  The set of resource
10832               information associated with a particular name is composed of
10833               separate RRs. The order of RRs in a set is not significant and
10834               need not be preserved by name servers, resolvers, or other
10835               parts of the DNS. However, sorting of multiple RRs is
10836               permitted for optimization purposes, for example, to specify
10837               that a particular nearby server be tried first. See <xref linkend="the_sortlist_statement"/> and <xref linkend="rrset_ordering"/>.
10838             </para>
10840             <para>
10841               The components of a Resource Record are:
10842             </para>
10843             <informaltable colsep="0" rowsep="0">
10844               <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
10845                 <colspec colname="1" colnum="1" colsep="0" colwidth="1.000in"/>
10846                 <colspec colname="2" colnum="2" colsep="0" colwidth="3.500in"/>
10847                 <tbody>
10848                   <row rowsep="0">
10849                     <entry colname="1">
10850                       <para>
10851                         owner name
10852                       </para>
10853                     </entry>
10854                     <entry colname="2">
10855                       <para>
10856                         The domain name where the RR is found.
10857                       </para>
10858                     </entry>
10859                   </row>
10860                   <row rowsep="0">
10861                     <entry colname="1">
10862                       <para>
10863                         type
10864                       </para>
10865                     </entry>
10866                     <entry colname="2">
10867                       <para>
10868                         An encoded 16-bit value that specifies
10869                         the type of the resource record.
10870                       </para>
10871                     </entry>
10872                   </row>
10873                   <row rowsep="0">
10874                     <entry colname="1">
10875                       <para>
10876                         TTL
10877                       </para>
10878                     </entry>
10879                     <entry colname="2">
10880                       <para>
10881                         The time-to-live of the RR. This field
10882                         is a 32-bit integer in units of seconds, and is
10883                         primarily used by
10884                         resolvers when they cache RRs. The TTL describes how
10885                         long a RR can
10886                         be cached before it should be discarded.
10887                       </para>
10888                     </entry>
10889                   </row>
10890                   <row rowsep="0">
10891                     <entry colname="1">
10892                       <para>
10893                         class
10894                       </para>
10895                     </entry>
10896                     <entry colname="2">
10897                       <para>
10898                         An encoded 16-bit value that identifies
10899                         a protocol family or instance of a protocol.
10900                       </para>
10901                     </entry>
10902                   </row>
10903                   <row rowsep="0">
10904                     <entry colname="1">
10905                       <para>
10906                         RDATA
10907                       </para>
10908                     </entry>
10909                     <entry colname="2">
10910                       <para>
10911                         The resource data.  The format of the
10912                         data is type (and sometimes class) specific.
10913                       </para>
10914                     </entry>
10915                   </row>
10916                 </tbody>
10917               </tgroup>
10918             </informaltable>
10919             <para>
10920               The following are <emphasis>types</emphasis> of valid RRs:
10921             </para>
10922             <informaltable colsep="0" rowsep="0">
10923               <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
10924                 <colspec colname="1" colnum="1" colsep="0" colwidth="0.875in"/>
10925                 <colspec colname="2" colnum="2" colsep="0" colwidth="3.625in"/>
10926                 <tbody>
10927                   <row rowsep="0">
10928                     <entry colname="1">
10929                       <para>
10930                         A
10931                       </para>
10932                     </entry>
10933                     <entry colname="2">
10934                       <para>
10935                         A host address.  In the IN class, this is a
10936                         32-bit IP address.  Described in RFC 1035.
10937                       </para>
10938                     </entry>
10939                   </row>
10940                   <row rowsep="0">
10941                     <entry colname="1">
10942                       <para>
10943                         AAAA
10944                       </para>
10945                     </entry>
10946                     <entry colname="2">
10947                       <para>
10948                         IPv6 address.  Described in RFC 1886.
10949                       </para>
10950                     </entry>
10951                   </row>
10952                   <row rowsep="0">
10953                     <entry colname="1">
10954                       <para>
10955                         A6
10956                       </para>
10957                     </entry>
10958                     <entry colname="2">
10959                       <para>
10960                         IPv6 address.  This can be a partial
10961                         address (a suffix) and an indirection to the name
10962                         where the rest of the
10963                         address (the prefix) can be found.  Experimental.
10964                         Described in RFC 2874.
10965                       </para>
10966                     </entry>
10967                   </row>
10968                   <row rowsep="0">
10969                     <entry colname="1">
10970                       <para>
10971                         AFSDB
10972                       </para>
10973                     </entry>
10974                     <entry colname="2">
10975                       <para>
10976                         Location of AFS database servers.
10977                         Experimental.  Described in RFC 1183.
10978                       </para>
10979                     </entry>
10980                   </row>
10981                   <row rowsep="0">
10982                     <entry colname="1">
10983                       <para>
10984                         APL
10985                       </para>
10986                     </entry>
10987                     <entry colname="2">
10988                       <para>
10989                         Address prefix list.  Experimental.
10990                         Described in RFC 3123.
10991                       </para>
10992                     </entry>
10993                   </row>
10994                   <row rowsep="0">
10995                     <entry colname="1">
10996                       <para>
10997                         CERT
10998                       </para>
10999                     </entry>
11000                     <entry colname="2">
11001                       <para>
11002                         Holds a digital certificate.
11003                         Described in RFC 2538.
11004                       </para>
11005                     </entry>
11006                   </row>
11007                   <row rowsep="0">
11008                     <entry colname="1">
11009                       <para>
11010                         CNAME
11011                       </para>
11012                     </entry>
11013                     <entry colname="2">
11014                       <para>
11015                         Identifies the canonical name of an alias.
11016                         Described in RFC 1035.
11017                       </para>
11018                     </entry>
11019                   </row>
11020                   <row rowsep="0">
11021                     <entry colname="1">
11022                       <para>
11023                         DHCID
11024                       </para>
11025                     </entry>
11026                     <entry colname="2">
11027                       <para>
11028                         Is used for identifying which DHCP client is
11029                         associated with this name.  Described in RFC 4701.
11030                       </para>
11031                     </entry>
11032                   </row>
11033                   <row rowsep="0">
11034                     <entry colname="1">
11035                       <para>
11036                         DNAME
11037                       </para>
11038                     </entry>
11039                     <entry colname="2">
11040                       <para>
11041                         Replaces the domain name specified with
11042                         another name to be looked up, effectively aliasing an
11043                         entire
11044                         subtree of the domain name space rather than a single
11045                         record
11046                         as in the case of the CNAME RR.
11047                         Described in RFC 2672.
11048                       </para>
11049                     </entry>
11050                   </row>
11051                   <row rowsep="0">
11052                     <entry colname="1">
11053                       <para>
11054                         DNSKEY
11055                       </para>
11056                     </entry>
11057                     <entry colname="2">
11058                       <para>
11059                         Stores a public key associated with a signed
11060                         DNS zone.  Described in RFC 4034.
11061                       </para>
11062                     </entry>
11063                   </row>
11064                   <row rowsep="0">
11065                     <entry colname="1">
11066                       <para>
11067                         DS
11068                       </para>
11069                     </entry>
11070                     <entry colname="2">
11071                       <para>
11072                         Stores the hash of a public key associated with a
11073                         signed DNS zone.  Described in RFC 4034.
11074                       </para>
11075                     </entry>
11076                   </row>
11077                   <row rowsep="0">
11078                     <entry colname="1">
11079                       <para>
11080                         GPOS
11081                       </para>
11082                     </entry>
11083                     <entry colname="2">
11084                       <para>
11085                         Specifies the global position.  Superseded by LOC.
11086                       </para>
11087                     </entry>
11088                   </row>
11089                   <row rowsep="0">
11090                     <entry colname="1">
11091                       <para>
11092                         HINFO
11093                       </para>
11094                     </entry>
11095                     <entry colname="2">
11096                       <para>
11097                         Identifies the CPU and OS used by a host.
11098                         Described in RFC 1035.
11099                       </para>
11100                     </entry>
11101                   </row>
11102                   <row rowsep="0">
11103                     <entry colname="1">
11104                       <para>
11105                         IPSECKEY
11106                       </para>
11107                     </entry>
11108                     <entry colname="2">
11109                       <para>
11110                         Provides a method for storing IPsec keying material in
11111                         DNS.  Described in RFC 4025.
11112                       </para>
11113                     </entry>
11114                   </row>
11115                   <row rowsep="0">
11116                     <entry colname="1">
11117                       <para>
11118                         ISDN
11119                       </para>
11120                     </entry>
11121                     <entry colname="2">
11122                       <para>
11123                         Representation of ISDN addresses.
11124                         Experimental.  Described in RFC 1183.
11125                       </para>
11126                     </entry>
11127                   </row>
11128                   <row rowsep="0">
11129                     <entry colname="1">
11130                       <para>
11131                         KEY
11132                       </para>
11133                     </entry>
11134                     <entry colname="2">
11135                       <para>
11136                         Stores a public key associated with a
11137                         DNS name.  Used in original DNSSEC; replaced
11138                         by DNSKEY in DNSSECbis, but still used with
11139                         SIG(0).  Described in RFCs 2535 and 2931.
11140                       </para>
11141                     </entry>
11142                   </row>
11143                   <row rowsep="0">
11144                     <entry colname="1">
11145                       <para>
11146                         KX
11147                       </para>
11148                     </entry>
11149                     <entry colname="2">
11150                       <para>
11151                         Identifies a key exchanger for this
11152                         DNS name.  Described in RFC 2230.
11153                       </para>
11154                     </entry>
11155                   </row>
11156                   <row rowsep="0">
11157                     <entry colname="1">
11158                       <para>
11159                         LOC
11160                       </para>
11161                     </entry>
11162                     <entry colname="2">
11163                       <para>
11164                         For storing GPS info.  Described in RFC 1876.
11165                         Experimental.
11166                       </para>
11167                     </entry>
11168                   </row>
11169                   <row rowsep="0">
11170                     <entry colname="1">
11171                       <para>
11172                         MX
11173                       </para>
11174                     </entry>
11175                     <entry colname="2">
11176                       <para>
11177                         Identifies a mail exchange for the domain with
11178                         a 16-bit preference value (lower is better)
11179                         followed by the host name of the mail exchange.
11180                         Described in RFC 974, RFC 1035.
11181                       </para>
11182                     </entry>
11183                   </row>
11184                   <row rowsep="0">
11185                     <entry colname="1">
11186                       <para>
11187                         NAPTR
11188                       </para>
11189                     </entry>
11190                     <entry colname="2">
11191                       <para>
11192                         Name authority pointer.  Described in RFC 2915.
11193                       </para>
11194                     </entry>
11195                   </row>
11196                   <row rowsep="0">
11197                     <entry colname="1">
11198                       <para>
11199                         NSAP
11200                       </para>
11201                     </entry>
11202                     <entry colname="2">
11203                       <para>
11204                         A network service access point.
11205                         Described in RFC 1706.
11206                       </para>
11207                     </entry>
11208                   </row>
11209                   <row rowsep="0">
11210                     <entry colname="1">
11211                       <para>
11212                         NS
11213                       </para>
11214                     </entry>
11215                     <entry colname="2">
11216                       <para>
11217                         The authoritative name server for the
11218                         domain.  Described in RFC 1035.
11219                       </para>
11220                     </entry>
11221                   </row>
11222                   <row rowsep="0">
11223                     <entry colname="1">
11224                       <para>
11225                         NSEC
11226                       </para>
11227                     </entry>
11228                     <entry colname="2">
11229                       <para>
11230                         Used in DNSSECbis to securely indicate that
11231                         RRs with an owner name in a certain name interval do
11232                         not exist in
11233                         a zone and indicate what RR types are present for an
11234                         existing name.
11235                         Described in RFC 4034.
11236                       </para>
11237                     </entry>
11238                   </row>
11239                   <row rowsep="0">
11240                     <entry colname="1">
11241                       <para>
11242                         NSEC3
11243                       </para>
11244                     </entry>
11245                     <entry colname="2">
11246                       <para>
11247                         Used in DNSSECbis to securely indicate that
11248                         RRs with an owner name in a certain name
11249                         interval do not exist in a zone and indicate
11250                         what RR types are present for an existing
11251                         name.  NSEC3 differs from NSEC in that it
11252                         prevents zone enumeration but is more
11253                         computationally expensive on both the server
11254                         and the client than NSEC.  Described in RFC
11255                         5155.
11256                       </para>
11257                     </entry>
11258                   </row>
11259                   <row rowsep="0">
11260                     <entry colname="1">
11261                       <para>
11262                         NSEC3PARAM
11263                       </para>
11264                     </entry>
11265                     <entry colname="2">
11266                       <para>
11267                         Used in DNSSECbis to tell the authoritative
11268                         server which NSEC3 chains are available to use.
11269                         Described in RFC 5155.
11270                       </para>
11271                     </entry>
11272                   </row>
11273                   <row rowsep="0">
11274                     <entry colname="1">
11275                       <para>
11276                         NXT
11277                       </para>
11278                     </entry>
11279                     <entry colname="2">
11280                       <para>
11281                         Used in DNSSEC to securely indicate that
11282                         RRs with an owner name in a certain name interval do
11283                         not exist in
11284                         a zone and indicate what RR types are present for an
11285                         existing name.
11286                         Used in original DNSSEC; replaced by NSEC in
11287                         DNSSECbis.
11288                         Described in RFC 2535.
11289                       </para>
11290                     </entry>
11291                   </row>
11292                   <row rowsep="0">
11293                     <entry colname="1">
11294                       <para>
11295                         PTR
11296                       </para>
11297                     </entry>
11298                     <entry colname="2">
11299                       <para>
11300                         A pointer to another part of the domain
11301                         name space.  Described in RFC 1035.
11302                       </para>
11303                     </entry>
11304                   </row>
11305                   <row rowsep="0">
11306                     <entry colname="1">
11307                       <para>
11308                         PX
11309                       </para>
11310                     </entry>
11311                     <entry colname="2">
11312                       <para>
11313                         Provides mappings between RFC 822 and X.400
11314                         addresses.  Described in RFC 2163.
11315                       </para>
11316                     </entry>
11317                   </row>
11318                   <row rowsep="0">
11319                     <entry colname="1">
11320                       <para>
11321                         RP
11322                       </para>
11323                     </entry>
11324                     <entry colname="2">
11325                       <para>
11326                         Information on persons responsible
11327                         for the domain.  Experimental.  Described in RFC 1183.
11328                       </para>
11329                     </entry>
11330                   </row>
11331                   <row rowsep="0">
11332                     <entry colname="1">
11333                       <para>
11334                         RRSIG
11335                       </para>
11336                     </entry>
11337                     <entry colname="2">
11338                       <para>
11339                         Contains DNSSECbis signature data.  Described
11340                         in RFC 4034.
11341                       </para>
11342                     </entry>
11343                   </row>
11344                   <row rowsep="0">
11345                     <entry colname="1">
11346                       <para>
11347                         RT
11348                       </para>
11349                     </entry>
11350                     <entry colname="2">
11351                       <para>
11352                         Route-through binding for hosts that
11353                         do not have their own direct wide area network
11354                         addresses.
11355                         Experimental.  Described in RFC 1183.
11356                       </para>
11357                     </entry>
11358                   </row>
11359                   <row rowsep="0">
11360                     <entry colname="1">
11361                       <para>
11362                         SIG
11363                       </para>
11364                     </entry>
11365                     <entry colname="2">
11366                       <para>
11367                         Contains DNSSEC signature data.  Used in
11368                         original DNSSEC; replaced by RRSIG in
11369                         DNSSECbis, but still used for SIG(0).
11370                         Described in RFCs 2535 and 2931.
11371                       </para>
11372                     </entry>
11373                   </row>
11374                   <row rowsep="0">
11375                     <entry colname="1">
11376                       <para>
11377                         SOA
11378                       </para>
11379                     </entry>
11380                     <entry colname="2">
11381                       <para>
11382                         Identifies the start of a zone of authority.
11383                         Described in RFC 1035.
11384                       </para>
11385                     </entry>
11386                   </row>
11387                   <row rowsep="0">
11388                     <entry colname="1">
11389                       <para>
11390                         SPF
11391                       </para>
11392                     </entry>
11393                     <entry colname="2">
11394                       <para>
11395                         Contains the Sender Policy Framework information
11396                         for a given email domain.  Described in RFC 4408.
11397                       </para>
11398                     </entry>
11399                   </row>
11400                   <row rowsep="0">
11401                     <entry colname="1">
11402                       <para>
11403                         SRV
11404                       </para>
11405                     </entry>
11406                     <entry colname="2">
11407                       <para>
11408                         Information about well known network
11409                         services (replaces WKS).  Described in RFC 2782.
11410                       </para>
11411                     </entry>
11412                   </row>
11413                   <row rowsep="0">
11414                     <entry colname="1">
11415                       <para>
11416                         SSHFP
11417                       </para>
11418                     </entry>
11419                     <entry colname="2">
11420                       <para>
11421                         Provides a way to securely publish a secure shell key's
11422                         fingerprint.  Described in RFC 4255.
11423                       </para>
11424                     </entry>
11425                   </row>
11426                   <row rowsep="0">
11427                     <entry colname="1">
11428                       <para>
11429                         TXT
11430                       </para>
11431                     </entry>
11432                     <entry colname="2">
11433                       <para>
11434                         Text records.  Described in RFC 1035.
11435                       </para>
11436                     </entry>
11437                   </row>
11438                   <row rowsep="0">
11439                     <entry colname="1">
11440                       <para>
11441                         WKS
11442                       </para>
11443                     </entry>
11444                     <entry colname="2">
11445                       <para>
11446                         Information about which well known
11447                         network services, such as SMTP, that a domain
11448                         supports. Historical.
11449                       </para>
11450                     </entry>
11451                   </row>
11452                   <row rowsep="0">
11453                     <entry colname="1">
11454                       <para>
11455                         X25
11456                       </para>
11457                     </entry>
11458                     <entry colname="2">
11459                       <para>
11460                         Representation of X.25 network addresses.
11461                         Experimental.  Described in RFC 1183.
11462                       </para>
11463                     </entry>
11464                   </row>
11465                 </tbody>
11466               </tgroup>
11467             </informaltable>
11468             <para>
11469               The following <emphasis>classes</emphasis> of resource records
11470               are currently valid in the DNS:
11471             </para>
11472             <informaltable colsep="0" rowsep="0"><tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
11473                 <colspec colname="1" colnum="1" colsep="0" colwidth="0.875in"/>
11474                 <colspec colname="2" colnum="2" colsep="0" colwidth="3.625in"/>
11475                 <tbody>
11477                   <row rowsep="0">
11478                     <entry colname="1">
11479                       <para>
11480                         IN
11481                       </para>
11482                     </entry>
11483                     <entry colname="2">
11484                       <para>
11485                         The Internet.
11486                       </para>
11487                     </entry>
11488                   </row>
11490                   <row rowsep="0">
11491                     <entry colname="1">
11492                       <para>
11493                         CH
11494                       </para>
11495                     </entry>
11496                     <entry colname="2">
11497                       <para>
11498                         Chaosnet, a LAN protocol created at MIT in the
11499                         mid-1970s.
11500                         Rarely used for its historical purpose, but reused for
11501                         BIND's
11502                         built-in server information zones, e.g.,
11503                         <literal>version.bind</literal>.
11504                       </para>
11505                     </entry>
11506                   </row>
11508                   <row rowsep="0">
11509                     <entry colname="1">
11510                       <para>
11511                         HS
11512                       </para>
11513                     </entry>
11514                     <entry colname="2">
11515                       <para>
11516                         Hesiod, an information service
11517                         developed by MIT's Project Athena. It is used to share
11518                         information
11519                         about various systems databases, such as users,
11520                         groups, printers
11521                         and so on.
11522                       </para>
11523                     </entry>
11524                   </row>
11526                 </tbody>
11527               </tgroup>
11528             </informaltable>
11530             <para>
11531               The owner name is often implicit, rather than forming an
11532               integral
11533               part of the RR.  For example, many name servers internally form
11534               tree
11535               or hash structures for the name space, and chain RRs off nodes.
11536               The remaining RR parts are the fixed header (type, class, TTL)
11537               which is consistent for all RRs, and a variable part (RDATA)
11538               that
11539               fits the needs of the resource being described.
11540             </para>
11541             <para>
11542               The meaning of the TTL field is a time limit on how long an
11543               RR can be kept in a cache.  This limit does not apply to
11544               authoritative
11545               data in zones; it is also timed out, but by the refreshing
11546               policies
11547               for the zone.  The TTL is assigned by the administrator for the
11548               zone where the data originates.  While short TTLs can be used to
11549               minimize caching, and a zero TTL prohibits caching, the
11550               realities
11551               of Internet performance suggest that these times should be on
11552               the
11553               order of days for the typical host.  If a change can be
11554               anticipated,
11555               the TTL can be reduced prior to the change to minimize
11556               inconsistency
11557               during the change, and then increased back to its former value
11558               following
11559               the change.
11560             </para>
11561             <para>
11562               The data in the RDATA section of RRs is carried as a combination
11563               of binary strings and domain names.  The domain names are
11564               frequently
11565               used as "pointers" to other data in the DNS.
11566             </para>
11567           </sect3>
11568           <sect3>
11569             <title>Textual expression of RRs</title>
11570             <para>
11571               RRs are represented in binary form in the packets of the DNS
11572               protocol, and are usually represented in highly encoded form
11573               when
11574               stored in a name server or resolver.  In the examples provided
11575               in
11576               RFC 1034, a style similar to that used in master files was
11577               employed
11578               in order to show the contents of RRs.  In this format, most RRs
11579               are shown on a single line, although continuation lines are
11580               possible
11581               using parentheses.
11582             </para>
11583             <para>
11584               The start of the line gives the owner of the RR.  If a line
11585               begins with a blank, then the owner is assumed to be the same as
11586               that of the previous RR.  Blank lines are often included for
11587               readability.
11588             </para>
11589             <para>
11590               Following the owner, we list the TTL, type, and class of the
11591               RR.  Class and type use the mnemonics defined above, and TTL is
11592               an integer before the type field.  In order to avoid ambiguity
11593               in
11594               parsing, type and class mnemonics are disjoint, TTLs are
11595               integers,
11596               and the type mnemonic is always last. The IN class and TTL
11597               values
11598               are often omitted from examples in the interests of clarity.
11599             </para>
11600             <para>
11601               The resource data or RDATA section of the RR are given using
11602               knowledge of the typical representation for the data.
11603             </para>
11604             <para>
11605               For example, we might show the RRs carried in a message as:
11606             </para>
11607             <informaltable colsep="0" rowsep="0"><tgroup cols="3" colsep="0" rowsep="0" tgroupstyle="4Level-table">
11608                 <colspec colname="1" colnum="1" colsep="0" colwidth="1.381in"/>
11609                 <colspec colname="2" colnum="2" colsep="0" colwidth="1.020in"/>
11610                 <colspec colname="3" colnum="3" colsep="0" colwidth="2.099in"/>
11611                 <tbody>
11612                   <row rowsep="0">
11613                     <entry colname="1">
11614                       <para>
11615                         <literal>ISI.EDU.</literal>
11616                       </para>
11617                     </entry>
11618                     <entry colname="2">
11619                       <para>
11620                         <literal>MX</literal>
11621                       </para>
11622                     </entry>
11623                     <entry colname="3">
11624                       <para>
11625                         <literal>10 VENERA.ISI.EDU.</literal>
11626                       </para>
11627                     </entry>
11628                   </row>
11629                   <row rowsep="0">
11630                     <entry colname="1">
11631                       <para/>
11632                     </entry>
11633                     <entry colname="2">
11634                       <para>
11635                         <literal>MX</literal>
11636                       </para>
11637                     </entry>
11638                     <entry colname="3">
11639                       <para>
11640                         <literal>10 VAXA.ISI.EDU</literal>
11641                       </para>
11642                     </entry>
11643                   </row>
11644                   <row rowsep="0">
11645                     <entry colname="1">
11646                       <para>
11647                         <literal>VENERA.ISI.EDU</literal>
11648                       </para>
11649                     </entry>
11650                     <entry colname="2">
11651                       <para>
11652                         <literal>A</literal>
11653                       </para>
11654                     </entry>
11655                     <entry colname="3">
11656                       <para>
11657                         <literal>128.9.0.32</literal>
11658                       </para>
11659                     </entry>
11660                   </row>
11661                   <row rowsep="0">
11662                     <entry colname="1">
11663                       <para/>
11664                     </entry>
11665                     <entry colname="2">
11666                       <para>
11667                         <literal>A</literal>
11668                       </para>
11669                     </entry>
11670                     <entry colname="3">
11671                       <para>
11672                         <literal>10.1.0.52</literal>
11673                       </para>
11674                     </entry>
11675                   </row>
11676                   <row rowsep="0">
11677                     <entry colname="1">
11678                       <para>
11679                         <literal>VAXA.ISI.EDU</literal>
11680                       </para>
11681                     </entry>
11682                     <entry colname="2">
11683                       <para>
11684                         <literal>A</literal>
11685                       </para>
11686                     </entry>
11687                     <entry colname="3">
11688                       <para>
11689                         <literal>10.2.0.27</literal>
11690                       </para>
11691                     </entry>
11692                   </row>
11693                   <row rowsep="0">
11694                     <entry colname="1">
11695                       <para/>
11696                     </entry>
11697                     <entry colname="2">
11698                       <para>
11699                         <literal>A</literal>
11700                       </para>
11701                     </entry>
11702                     <entry colname="3">
11703                       <para>
11704                         <literal>128.9.0.33</literal>
11705                       </para>
11706                     </entry>
11707                   </row>
11708                 </tbody>
11709               </tgroup>
11710             </informaltable>
11711             <para>
11712               The MX RRs have an RDATA section which consists of a 16-bit
11713               number followed by a domain name.  The address RRs use a
11714               standard
11715               IP address format to contain a 32-bit internet address.
11716             </para>
11717             <para>
11718               The above example shows six RRs, with two RRs at each of three
11719               domain names.
11720             </para>
11721             <para>
11722               Similarly we might see:
11723             </para>
11724             <informaltable colsep="0" rowsep="0"><tgroup cols="3" colsep="0" rowsep="0" tgroupstyle="4Level-table">
11725                 <colspec colname="1" colnum="1" colsep="0" colwidth="1.491in"/>
11726                 <colspec colname="2" colnum="2" colsep="0" colwidth="1.067in"/>
11727                 <colspec colname="3" colnum="3" colsep="0" colwidth="2.067in"/>
11728                 <tbody>
11729                   <row rowsep="0">
11730                     <entry colname="1">
11731                       <para>
11732                         <literal>XX.LCS.MIT.EDU.</literal>
11733                       </para>
11734                     </entry>
11735                     <entry colname="2">
11736                       <para>
11737                         <literal>IN A</literal>
11738                       </para>
11739                     </entry>
11740                     <entry colname="3">
11741                       <para>
11742                         <literal>10.0.0.44</literal>
11743                       </para>
11744                     </entry>
11745                   </row>
11746                   <row rowsep="0">
11747                     <entry colname="1"/>
11748                     <entry colname="2">
11749                       <para>
11750                         <literal>CH A</literal>
11751                       </para>
11752                     </entry>
11753                     <entry colname="3">
11754                       <para>
11755                         <literal>MIT.EDU. 2420</literal>
11756                       </para>
11757                     </entry>
11758                   </row>
11759                 </tbody>
11760               </tgroup>
11761             </informaltable>
11762             <para>
11763               This example shows two addresses for
11764               <literal>XX.LCS.MIT.EDU</literal>, each of a different class.
11765             </para>
11766           </sect3>
11767         </sect2>
11769         <sect2>
11770           <title>Discussion of MX Records</title>
11772           <para>
11773             As described above, domain servers store information as a
11774             series of resource records, each of which contains a particular
11775             piece of information about a given domain name (which is usually,
11776             but not always, a host). The simplest way to think of a RR is as
11777             a typed pair of data, a domain name matched with a relevant datum,
11778             and stored with some additional type information to help systems
11779             determine when the RR is relevant.
11780           </para>
11782           <para>
11783             MX records are used to control delivery of email. The data
11784             specified in the record is a priority and a domain name. The
11785             priority
11786             controls the order in which email delivery is attempted, with the
11787             lowest number first. If two priorities are the same, a server is
11788             chosen randomly. If no servers at a given priority are responding,
11789             the mail transport agent will fall back to the next largest
11790             priority.
11791             Priority numbers do not have any absolute meaning &mdash; they are
11792             relevant
11793             only respective to other MX records for that domain name. The
11794             domain
11795             name given is the machine to which the mail will be delivered.
11796             It <emphasis>must</emphasis> have an associated address record
11797             (A or AAAA) &mdash; CNAME is not sufficient.
11798           </para>
11799           <para>
11800             For a given domain, if there is both a CNAME record and an
11801             MX record, the MX record is in error, and will be ignored.
11802             Instead,
11803             the mail will be delivered to the server specified in the MX
11804             record
11805             pointed to by the CNAME.
11806             For example:
11807           </para>
11808           <informaltable colsep="0" rowsep="0">
11809             <tgroup cols="5" colsep="0" rowsep="0" tgroupstyle="3Level-table">
11810               <colspec colname="1" colnum="1" colsep="0" colwidth="1.708in"/>
11811               <colspec colname="2" colnum="2" colsep="0" colwidth="0.444in"/>
11812               <colspec colname="3" colnum="3" colsep="0" colwidth="0.444in"/>
11813               <colspec colname="4" colnum="4" colsep="0" colwidth="0.976in"/>
11814               <colspec colname="5" colnum="5" colsep="0" colwidth="1.553in"/>
11815               <tbody>
11816                 <row rowsep="0">
11817                   <entry colname="1">
11818                     <para>
11819                       <literal>example.com.</literal>
11820                     </para>
11821                   </entry>
11822                   <entry colname="2">
11823                     <para>
11824                       <literal>IN</literal>
11825                     </para>
11826                   </entry>
11827                   <entry colname="3">
11828                     <para>
11829                       <literal>MX</literal>
11830                     </para>
11831                   </entry>
11832                   <entry colname="4">
11833                     <para>
11834                       <literal>10</literal>
11835                     </para>
11836                   </entry>
11837                   <entry colname="5">
11838                     <para>
11839                       <literal>mail.example.com.</literal>
11840                     </para>
11841                   </entry>
11842                 </row>
11843                 <row rowsep="0">
11844                   <entry colname="1">
11845                     <para/>
11846                   </entry>
11847                   <entry colname="2">
11848                     <para>
11849                       <literal>IN</literal>
11850                     </para>
11851                   </entry>
11852                   <entry colname="3">
11853                     <para>
11854                       <literal>MX</literal>
11855                     </para>
11856                   </entry>
11857                   <entry colname="4">
11858                     <para>
11859                       <literal>10</literal>
11860                     </para>
11861                   </entry>
11862                   <entry colname="5">
11863                     <para>
11864                       <literal>mail2.example.com.</literal>
11865                     </para>
11866                   </entry>
11867                 </row>
11868                 <row rowsep="0">
11869                   <entry colname="1">
11870                     <para/>
11871                   </entry>
11872                   <entry colname="2">
11873                     <para>
11874                       <literal>IN</literal>
11875                     </para>
11876                   </entry>
11877                   <entry colname="3">
11878                     <para>
11879                       <literal>MX</literal>
11880                     </para>
11881                   </entry>
11882                   <entry colname="4">
11883                     <para>
11884                       <literal>20</literal>
11885                     </para>
11886                   </entry>
11887                   <entry colname="5">
11888                     <para>
11889                       <literal>mail.backup.org.</literal>
11890                     </para>
11891                   </entry>
11892                 </row>
11893                 <row rowsep="0">
11894                   <entry colname="1">
11895                     <para>
11896                       <literal>mail.example.com.</literal>
11897                     </para>
11898                   </entry>
11899                   <entry colname="2">
11900                     <para>
11901                       <literal>IN</literal>
11902                     </para>
11903                   </entry>
11904                   <entry colname="3">
11905                     <para>
11906                       <literal>A</literal>
11907                     </para>
11908                   </entry>
11909                   <entry colname="4">
11910                     <para>
11911                       <literal>10.0.0.1</literal>
11912                     </para>
11913                   </entry>
11914                   <entry colname="5">
11915                     <para/>
11916                   </entry>
11917                 </row>
11918                 <row rowsep="0">
11919                   <entry colname="1">
11920                     <para>
11921                       <literal>mail2.example.com.</literal>
11922                     </para>
11923                   </entry>
11924                   <entry colname="2">
11925                     <para>
11926                       <literal>IN</literal>
11927                     </para>
11928                   </entry>
11929                   <entry colname="3">
11930                     <para>
11931                       <literal>A</literal>
11932                     </para>
11933                   </entry>
11934                   <entry colname="4">
11935                     <para>
11936                       <literal>10.0.0.2</literal>
11937                     </para>
11938                   </entry>
11939                   <entry colname="5">
11940                     <para/>
11941                   </entry>
11942                 </row>
11943               </tbody>
11944             </tgroup>
11945             </informaltable><para>
11946             Mail delivery will be attempted to <literal>mail.example.com</literal> and
11947             <literal>mail2.example.com</literal> (in
11948             any order), and if neither of those succeed, delivery to <literal>mail.backup.org</literal> will
11949             be attempted.
11950           </para>
11951         </sect2>
11952         <sect2 id="Setting_TTLs">
11953           <title>Setting TTLs</title>
11954           <para>
11955             The time-to-live of the RR field is a 32-bit integer represented
11956             in units of seconds, and is primarily used by resolvers when they
11957             cache RRs. The TTL describes how long a RR can be cached before it
11958             should be discarded. The following three types of TTL are
11959             currently
11960             used in a zone file.
11961           </para>
11962           <informaltable colsep="0" rowsep="0">
11963             <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
11964               <colspec colname="1" colnum="1" colsep="0" colwidth="0.750in"/>
11965               <colspec colname="2" colnum="2" colsep="0" colwidth="4.375in"/>
11966               <tbody>
11967                 <row rowsep="0">
11968                   <entry colname="1">
11969                     <para>
11970                       SOA
11971                     </para>
11972                   </entry>
11973                   <entry colname="2">
11974                     <para>
11975                       The last field in the SOA is the negative
11976                       caching TTL. This controls how long other servers will
11977                       cache no-such-domain
11978                       (NXDOMAIN) responses from you.
11979                     </para>
11980                     <para>
11981                       The maximum time for
11982                       negative caching is 3 hours (3h).
11983                     </para>
11984                   </entry>
11985                 </row>
11986                 <row rowsep="0">
11987                   <entry colname="1">
11988                     <para>
11989                       $TTL
11990                     </para>
11991                   </entry>
11992                   <entry colname="2">
11993                     <para>
11994                       The $TTL directive at the top of the
11995                       zone file (before the SOA) gives a default TTL for every
11996                       RR without
11997                       a specific TTL set.
11998                     </para>
11999                   </entry>
12000                 </row>
12001                 <row rowsep="0">
12002                   <entry colname="1">
12003                     <para>
12004                       RR TTLs
12005                     </para>
12006                   </entry>
12007                   <entry colname="2">
12008                     <para>
12009                       Each RR can have a TTL as the second
12010                       field in the RR, which will control how long other
12011                       servers can cache
12012                       the it.
12013                     </para>
12014                   </entry>
12015                 </row>
12016               </tbody>
12017             </tgroup>
12018           </informaltable>
12019           <para>
12020             All of these TTLs default to units of seconds, though units
12021             can be explicitly specified, for example, <literal>1h30m</literal>.
12022           </para>
12023         </sect2>
12024         <sect2>
12025           <title>Inverse Mapping in IPv4</title>
12026           <para>
12027             Reverse name resolution (that is, translation from IP address
12028             to name) is achieved by means of the <emphasis>in-addr.arpa</emphasis> domain
12029             and PTR records. Entries in the in-addr.arpa domain are made in
12030             least-to-most significant order, read left to right. This is the
12031             opposite order to the way IP addresses are usually written. Thus,
12032             a machine with an IP address of 10.1.2.3 would have a
12033             corresponding
12034             in-addr.arpa name of
12035             3.2.1.10.in-addr.arpa. This name should have a PTR resource record
12036             whose data field is the name of the machine or, optionally,
12037             multiple
12038             PTR records if the machine has more than one name. For example,
12039             in the <optional>example.com</optional> domain:
12040           </para>
12041           <informaltable colsep="0" rowsep="0">
12042             <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
12043               <colspec colname="1" colnum="1" colsep="0" colwidth="1.125in"/>
12044               <colspec colname="2" colnum="2" colsep="0" colwidth="4.000in"/>
12045               <tbody>
12046                 <row rowsep="0">
12047                   <entry colname="1">
12048                     <para>
12049                       <literal>$ORIGIN</literal>
12050                     </para>
12051                   </entry>
12052                   <entry colname="2">
12053                     <para>
12054                       <literal>2.1.10.in-addr.arpa</literal>
12055                     </para>
12056                   </entry>
12057                 </row>
12058                 <row rowsep="0">
12059                   <entry colname="1">
12060                     <para>
12061                       <literal>3</literal>
12062                     </para>
12063                   </entry>
12064                   <entry colname="2">
12065                     <para>
12066                       <literal>IN PTR foo.example.com.</literal>
12067                     </para>
12068                   </entry>
12069                 </row>
12070               </tbody>
12071             </tgroup>
12072           </informaltable>
12073           <note>
12074             <para>
12075               The <command>$ORIGIN</command> lines in the examples
12076               are for providing context to the examples only &mdash; they do not
12077               necessarily
12078               appear in the actual usage. They are only used here to indicate
12079               that the example is relative to the listed origin.
12080             </para>
12081           </note>
12082         </sect2>
12083         <sect2>
12084           <title>Other Zone File Directives</title>
12085           <para>
12086             The Master File Format was initially defined in RFC 1035 and
12087             has subsequently been extended. While the Master File Format
12088             itself
12089             is class independent all records in a Master File must be of the
12090             same
12091             class.
12092           </para>
12093           <para>
12094             Master File Directives include <command>$ORIGIN</command>, <command>$INCLUDE</command>,
12095             and <command>$TTL.</command>
12096           </para>
12097           <sect3>
12098             <title>The <command>@</command> (at-sign)</title>
12099             <para>
12100               When used in the label (or name) field, the asperand or
12101               at-sign (@) symbol represents the current origin.
12102               At the start of the zone file, it is the 
12103               &lt;<varname>zone_name</varname>&gt; (followed by
12104               trailing dot).
12105             </para>
12106           </sect3>
12107           <sect3>
12108             <title>The <command>$ORIGIN</command> Directive</title>
12109             <para>
12110               Syntax: <command>$ORIGIN</command>
12111               <replaceable>domain-name</replaceable>
12112               <optional><replaceable>comment</replaceable></optional>
12113             </para>
12114             <para><command>$ORIGIN</command>
12115               sets the domain name that will be appended to any
12116               unqualified records. When a zone is first read in there
12117               is an implicit <command>$ORIGIN</command>
12118               &lt;<varname>zone_name</varname>&gt;<command>.</command>
12119               (followed by trailing dot).
12120               The current <command>$ORIGIN</command> is appended to
12121               the domain specified in the <command>$ORIGIN</command>
12122               argument if it is not absolute.
12123             </para>
12125 <programlisting>
12126 $ORIGIN example.com.
12127 WWW     CNAME   MAIN-SERVER
12128 </programlisting>
12130             <para>
12131               is equivalent to
12132             </para>
12134 <programlisting>
12135 WWW.EXAMPLE.COM. CNAME MAIN-SERVER.EXAMPLE.COM.
12136 </programlisting>
12138           </sect3>
12139           <sect3>
12140             <title>The <command>$INCLUDE</command> Directive</title>
12141             <para>
12142               Syntax: <command>$INCLUDE</command>
12143               <replaceable>filename</replaceable>
12144               <optional>
12145 <replaceable>origin</replaceable> </optional>
12146               <optional> <replaceable>comment</replaceable> </optional>
12147             </para>
12148             <para>
12149               Read and process the file <filename>filename</filename> as
12150               if it were included into the file at this point.  If <command>origin</command> is
12151               specified the file is processed with <command>$ORIGIN</command> set
12152               to that value, otherwise the current <command>$ORIGIN</command> is
12153               used.
12154             </para>
12155             <para>
12156               The origin and the current domain name
12157               revert to the values they had prior to the <command>$INCLUDE</command> once
12158               the file has been read.
12159             </para>
12160             <note>
12161               <para>
12162                 RFC 1035 specifies that the current origin should be restored
12163                 after
12164                 an <command>$INCLUDE</command>, but it is silent
12165                 on whether the current
12166                 domain name should also be restored.  BIND 9 restores both of
12167                 them.
12168                 This could be construed as a deviation from RFC 1035, a
12169                 feature, or both.
12170               </para>
12171             </note>
12172           </sect3>
12173           <sect3>
12174             <title>The <command>$TTL</command> Directive</title>
12175             <para>
12176               Syntax: <command>$TTL</command>
12177               <replaceable>default-ttl</replaceable>
12178               <optional>
12179 <replaceable>comment</replaceable> </optional>
12180             </para>
12181             <para>
12182               Set the default Time To Live (TTL) for subsequent records
12183               with undefined TTLs. Valid TTLs are of the range 0-2147483647
12184               seconds.
12185             </para>
12186             <para><command>$TTL</command>
12187                is defined in RFC 2308.
12188             </para>
12189           </sect3>
12190         </sect2>
12191         <sect2>
12192           <title><acronym>BIND</acronym> Master File Extension: the  <command>$GENERATE</command> Directive</title>
12193           <para>
12194             Syntax: <command>$GENERATE</command>
12195             <replaceable>range</replaceable>
12196             <replaceable>lhs</replaceable>
12197             <optional><replaceable>ttl</replaceable></optional>
12198             <optional><replaceable>class</replaceable></optional>
12199             <replaceable>type</replaceable>
12200             <replaceable>rhs</replaceable>
12201             <optional><replaceable>comment</replaceable></optional>
12202           </para>
12203           <para><command>$GENERATE</command>
12204             is used to create a series of resource records that only
12205             differ from each other by an
12206             iterator. <command>$GENERATE</command> can be used to
12207             easily generate the sets of records required to support
12208             sub /24 reverse delegations described in RFC 2317:
12209             Classless IN-ADDR.ARPA delegation.
12210           </para>
12212 <programlisting>$ORIGIN 0.0.192.IN-ADDR.ARPA.
12213 $GENERATE 1-2 @ NS SERVER$.EXAMPLE.
12214 $GENERATE 1-127 $ CNAME $.0</programlisting>
12216           <para>
12217             is equivalent to
12218           </para>
12220 <programlisting>0.0.0.192.IN-ADDR.ARPA. NS SERVER1.EXAMPLE.
12221 0.0.0.192.IN-ADDR.ARPA. NS SERVER2.EXAMPLE.
12222 1.0.0.192.IN-ADDR.ARPA. CNAME 1.0.0.0.192.IN-ADDR.ARPA.
12223 2.0.0.192.IN-ADDR.ARPA. CNAME 2.0.0.0.192.IN-ADDR.ARPA.
12225 127.0.0.192.IN-ADDR.ARPA. CNAME 127.0.0.0.192.IN-ADDR.ARPA.
12226 </programlisting>
12228            <para>
12229             Generate a set of A and MX records.  Note the MX's right hand
12230             side is a quoted string.  The quotes will be stripped when the
12231             right hand side is processed.
12232            </para>
12234 <programlisting>
12235 $ORIGIN EXAMPLE.
12236 $GENERATE 1-127 HOST-$ A 1.2.3.$
12237 $GENERATE 1-127 HOST-$ MX "0 ."</programlisting>
12239           <para>
12240             is equivalent to
12241           </para>
12243 <programlisting>HOST-1.EXAMPLE.   A  1.2.3.1
12244 HOST-1.EXAMPLE.   MX 0 .
12245 HOST-2.EXAMPLE.   A  1.2.3.2
12246 HOST-2.EXAMPLE.   MX 0 .
12247 HOST-3.EXAMPLE.   A  1.2.3.3
12248 HOST-3.EXAMPLE.   MX 0 .
12250 HOST-127.EXAMPLE. A  1.2.3.127
12251 HOST-127.EXAMPLE. MX 0 .
12252 </programlisting>
12254           <informaltable colsep="0" rowsep="0">
12255             <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="3Level-table">
12256                         <colspec colname="1" colnum="1" colsep="0" colwidth="0.875in"/>
12257               <colspec colname="2" colnum="2" colsep="0" colwidth="4.250in"/>
12258               <tbody>
12259                 <row rowsep="0">
12260                   <entry colname="1">
12261                     <para><command>range</command></para>
12262                   </entry>
12263                   <entry colname="2">
12264                     <para>
12265                       This can be one of two forms: start-stop
12266                       or start-stop/step. If the first form is used, then step
12267                       is set to
12268                       1. All of start, stop and step must be positive.
12269                     </para>
12270                   </entry>
12271                 </row>
12272                 <row rowsep="0">
12273                   <entry colname="1">
12274                     <para><command>lhs</command></para>
12275                   </entry>
12276                   <entry colname="2">
12277                     <para>This
12278                       describes the owner name of the resource records
12279                       to be created.  Any single <command>$</command>
12280                       (dollar sign)
12281                       symbols within the <command>lhs</command> string
12282                       are replaced by the iterator value.
12284                       To get a $ in the output, you need to escape the
12285                       <command>$</command> using a backslash
12286                       <command>\</command>,
12287                       e.g. <command>\$</command>. The
12288                       <command>$</command> may optionally be followed
12289                       by modifiers which change the offset from the
12290                       iterator, field width and base.
12292                       Modifiers are introduced by a
12293                       <command>{</command> (left brace) immediately following the
12294                       <command>$</command> as
12295                       <command>${offset[,width[,base]]}</command>.
12296                       For example, <command>${-20,3,d}</command>
12297                       subtracts 20 from the current value, prints the
12298                       result as a decimal in a zero-padded field of
12299                       width 3.
12301                       Available output forms are decimal
12302                       (<command>d</command>), octal
12303                       (<command>o</command>), hexadecimal
12304                       (<command>x</command> or <command>X</command>
12305                       for uppercase) and nibble
12306                       (<command>n</command> or <command>N</command>\
12307                       for uppercase).  The default modifier is
12308                       <command>${0,0,d}</command>.  If the
12309                       <command>lhs</command> is not absolute, the
12310                       current <command>$ORIGIN</command> is appended
12311                       to the name.
12312                     </para>
12313                     <para>
12314                       In nibble mode the value will be treated as
12315                       if it was a reversed hexadecimal string
12316                       with each hexadecimal digit as a separate
12317                       label.  The width field includes the label
12318                       separator.
12319                     </para>
12320                     <para>
12321                       For compatibility with earlier versions,
12322                       <command>$$</command> is still recognized as
12323                       indicating a literal $ in the output.
12324                     </para>
12325                   </entry>
12326                 </row>
12327                 <row rowsep="0">
12328                   <entry colname="1">
12329                     <para><command>ttl</command></para>
12330                   </entry>
12331                   <entry colname="2">
12332                     <para>
12333                       Specifies the time-to-live of the generated records. If
12334                       not specified this will be inherited using the
12335                       normal TTL inheritance rules.
12336                     </para>
12337                     <para><command>class</command>
12338                       and <command>ttl</command> can be
12339                       entered in either order.
12340                     </para>
12341                   </entry>
12342                 </row>
12343                 <row rowsep="0">
12344                   <entry colname="1">
12345                     <para><command>class</command></para>
12346                   </entry>
12347                   <entry colname="2">
12348                     <para>
12349                       Specifies the class of the generated records.
12350                       This must match the zone class if it is
12351                       specified.
12352                     </para>
12353                     <para><command>class</command>
12354                       and <command>ttl</command> can be
12355                       entered in either order.
12356                     </para>
12357                   </entry>
12358                 </row>
12359                 <row rowsep="0">
12360                   <entry colname="1">
12361                     <para><command>type</command></para>
12362                   </entry>
12363                   <entry colname="2">
12364                     <para>
12365                       Any valid type.
12366                     </para>
12367                   </entry>
12368                 </row>
12369                 <row rowsep="0">
12370                   <entry colname="1">
12371                     <para><command>rhs</command></para>
12372                   </entry>
12373                   <entry colname="2">
12374                     <para>
12375                       <command>rhs</command>, optionally, quoted string.
12376                     </para>
12377                   </entry>
12378                 </row>
12379               </tbody>
12380             </tgroup>
12381           </informaltable>
12382           <para>
12383             The <command>$GENERATE</command> directive is a <acronym>BIND</acronym> extension
12384             and not part of the standard zone file format.
12385           </para>
12386           <para>
12387             BIND 8 does not support the optional TTL and CLASS fields.
12388           </para>
12389         </sect2>
12391         <sect2 id="zonefile_format">
12392           <title>Additional File Formats</title>
12393           <para>
12394             In addition to the standard textual format, BIND 9
12395             supports the ability to read or dump to zone files in
12396             other formats.  The <constant>raw</constant> format is
12397             currently available as an additional format.  It is a
12398             binary format representing BIND 9's internal data
12399             structure directly, thereby remarkably improving the
12400             loading time.
12401           </para>
12402           <para>
12403             For a primary server, a zone file in the
12404             <constant>raw</constant> format is expected to be
12405             generated from a textual zone file by the
12406             <command>named-compilezone</command> command.  For a
12407             secondary server or for a dynamic zone, it is automatically
12408             generated (if this format is specified by the
12409             <command>masterfile-format</command> option) when
12410             <command>named</command> dumps the zone contents after
12411             zone transfer or when applying prior updates.
12412           </para>
12413           <para>
12414             If a zone file in a binary format needs manual modification,
12415             it first must be converted to a textual form by the
12416             <command>named-compilezone</command> command.  All
12417             necessary modification should go to the text file, which
12418             should then be converted to the binary form by the
12419             <command>named-compilezone</command> command again.
12420           </para>
12421           <para>
12422              Although the <constant>raw</constant> format uses the
12423              network byte order and avoids architecture-dependent
12424              data alignment so that it is as much portable as
12425              possible, it is primarily expected to be used inside
12426              the same single system.  In order to export a zone
12427              file in the <constant>raw</constant> format or make a
12428              portable backup of the file, it is recommended to
12429              convert the file to the standard textual representation.
12430           </para>
12431         </sect2>
12432       </sect1>
12434       <sect1 id="statistics">
12435         <title>BIND9 Statistics</title>
12436         <para>
12437           <acronym>BIND</acronym> 9 maintains lots of statistics
12438           information and provides several interfaces for users to
12439           get access to the statistics.
12440           The available statistics include all statistics counters
12441           that were available in <acronym>BIND</acronym> 8 and
12442           are meaningful in <acronym>BIND</acronym> 9,
12443           and other information that is considered useful.
12444         </para>
12446         <para>
12447           The statistics information is categorized into the following
12448           sections.
12449         </para>
12451         <informaltable frame="all">
12452           <tgroup cols="2">
12453             <colspec colname="1" colnum="1" colsep="0" colwidth="3.300in"/>
12454             <colspec colname="2" colnum="2" colsep="0" colwidth="2.625in"/>
12455             <tbody>
12457               <row rowsep="0">
12458                 <entry colname="1">
12459                   <para>Incoming Requests</para>
12460                 </entry>
12461                 <entry colname="2">
12462                   <para>
12463                     The number of incoming DNS requests for each OPCODE.
12464                   </para>
12465                 </entry>
12466               </row>
12468               <row rowsep="0">
12469                 <entry colname="1">
12470                   <para>Incoming Queries</para>
12471                 </entry>
12472                 <entry colname="2">
12473                   <para>
12474                     The number of incoming queries for each RR type.
12475                   </para>
12476                 </entry>
12477               </row>
12479               <row rowsep="0">
12480                 <entry colname="1">
12481                   <para>Outgoing Queries</para>
12482                 </entry>
12483                 <entry colname="2">
12484                   <para>
12485                     The number of outgoing queries for each RR
12486                     type sent from the internal resolver.
12487                     Maintained per view.
12488                   </para>
12489                 </entry>
12490               </row>
12492               <row rowsep="0">
12493                 <entry colname="1">
12494                   <para>Name Server Statistics</para>
12495                 </entry>
12496                 <entry colname="2">
12497                   <para>
12498                     Statistics counters about incoming request processing.
12499                   </para>
12500                 </entry>
12501               </row>
12503               <row rowsep="0">
12504                 <entry colname="1">
12505                   <para>Zone Maintenance Statistics</para>
12506                 </entry>
12507                 <entry colname="2">
12508                   <para>
12509                     Statistics counters regarding zone maintenance
12510                     operations such as zone transfers.
12511                   </para>
12512                 </entry>
12513               </row>
12515               <row rowsep="0">
12516                 <entry colname="1">
12517                   <para>Resolver Statistics</para>
12518                 </entry>
12519                 <entry colname="2">
12520                   <para>
12521                     Statistics counters about name resolution
12522                     performed in the internal resolver.
12523                     Maintained per view.
12524                   </para>
12525                 </entry>
12526               </row>
12528               <row rowsep="0">
12529                 <entry colname="1">
12530                   <para>Cache DB RRsets</para>
12531                 </entry>
12532                 <entry colname="2">
12533                   <para>
12534                     The number of RRsets per RR type and nonexistent
12535                     names stored in the cache database.
12536                     If the exclamation mark (!) is printed for a RR
12537                     type, it means that particular type of RRset is
12538                     known to be nonexistent (this is also known as
12539                     "NXRRSET").
12540                     Maintained per view.
12541                   </para>
12542                 </entry>
12543               </row>
12545               <row rowsep="0">
12546                 <entry colname="1">
12547                   <para>Socket I/O Statistics</para>
12548                 </entry>
12549                 <entry colname="2">
12550                   <para>
12551                     Statistics counters about network related events.
12552                   </para>
12553                 </entry>
12554               </row>
12556             </tbody>
12557           </tgroup>
12558         </informaltable>
12560         <para>
12561           A subset of Name Server Statistics is collected and shown
12562           per zone for which the server has the authority when
12563           <command>zone-statistics</command> is set to
12564           <userinput>yes</userinput>.
12565           These statistics counters are shown with their zone and view
12566           names.
12567           In some cases the view names are omitted for the default view.
12568         </para>
12570         <para>
12571           There are currently two user interfaces to get access to the
12572           statistics.
12573           One is in the plain text format dumped to the file specified
12574           by the <command>statistics-file</command> configuration option.
12575           The other is remotely accessible via a statistics channel
12576           when the <command>statistics-channels</command> statement
12577           is specified in the configuration file
12578           (see <xref linkend="statschannels"/>.)
12579         </para>
12581         <sect3 id="statsfile">
12582           <title>The Statistics File</title>
12583           <para>
12584             The text format statistics dump begins with a line, like:
12585           </para>
12586           <para>
12587             <command>+++ Statistics Dump +++ (973798949)</command>
12588           </para>
12589           <para>
12590             The number in parentheses is a standard
12591             Unix-style timestamp, measured as seconds since January 1, 1970.
12593             Following
12594             that line is a set of statistics information, which is categorized
12595             as described above.
12596             Each section begins with a line, like:
12597           </para>
12599           <para>
12600             <command>++ Name Server Statistics ++</command>
12601           </para>
12603           <para>
12604             Each section consists of lines, each containing the statistics
12605             counter value followed by its textual description.
12606             See below for available counters.
12607             For brevity, counters that have a value of 0 are not shown
12608             in the statistics file.
12609           </para>
12611           <para>
12612             The statistics dump ends with the line where the
12613             number is identical to the number in the beginning line; for example:
12614           </para>
12615           <para>
12616             <command>--- Statistics Dump --- (973798949)</command>
12617           </para>
12618         </sect3>
12620         <sect2 id="statistics_counters">
12621           <title>Statistics Counters</title>
12622           <para>
12623             The following tables summarize statistics counters that
12624             <acronym>BIND</acronym> 9 provides.
12625             For each row of the tables, the leftmost column is the
12626             abbreviated symbol name of that counter.
12627             These symbols are shown in the statistics information
12628             accessed via an HTTP statistics channel.
12629             The rightmost column gives the description of the counter,
12630             which is also shown in the statistics file
12631             (but, in this document, possibly with slight modification
12632             for better readability).
12633             Additional notes may also be provided in this column.
12634             When a middle column exists between these two columns,
12635             it gives the corresponding counter name of the
12636             <acronym>BIND</acronym> 8 statistics, if applicable.
12637           </para>
12639           <sect3>
12640             <title>Name Server Statistics Counters</title>
12642             <informaltable colsep="0" rowsep="0">
12643               <tgroup cols="3" colsep="0" rowsep="0" tgroupstyle="4Level-table">
12644                 <colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
12645                 <colspec colname="2" colnum="2" colsep="0" colwidth="1.150in"/>
12646                 <colspec colname="3" colnum="3" colsep="0" colwidth="3.350in"/>
12647                 <tbody>
12648                   <row>
12649                     <entry colname="1">
12650                       <para>
12651                         <emphasis>Symbol</emphasis>
12652                       </para>
12653                     </entry>
12654                     <entry colname="2">
12655                       <para>
12656                         <emphasis>BIND8 Symbol</emphasis>
12657                       </para>
12658                     </entry>
12659                     <entry colname="3">
12660                       <para>
12661                         <emphasis>Description</emphasis>
12662                       </para>
12663                     </entry>
12664                   </row>
12666                   <row rowsep="0">
12667                     <entry colname="1">
12668                       <para><command>Requestv4</command></para>
12669                     </entry>
12670                     <entry colname="2">
12671                       <para><command>RQ</command></para>
12672                     </entry>
12673                     <entry colname="3">
12674                       <para>
12675                         IPv4 requests received.
12676                         Note: this also counts non query requests.
12677                       </para>
12678                     </entry>
12679                   </row>
12680                   <row rowsep="0">
12681                     <entry colname="1">
12682                       <para><command>Requestv6</command></para>
12683                     </entry>
12684                     <entry colname="2">
12685                       <para><command>RQ</command></para>
12686                     </entry>
12687                     <entry colname="3">
12688                       <para>
12689                         IPv6 requests received.
12690                         Note: this also counts non query requests.
12691                       </para>
12692                     </entry>
12693                   </row>
12694                   <row rowsep="0">
12695                     <entry colname="1">
12696                       <para><command>ReqEdns0</command></para>
12697                     </entry>
12698                     <entry colname="2">
12699                       <para><command></command></para>
12700                     </entry>
12701                     <entry colname="3">
12702                       <para>
12703                         Requests with EDNS(0) received.
12704                       </para>
12705                     </entry>
12706                   </row>
12707                   <row rowsep="0">
12708                     <entry colname="1">
12709                       <para><command>ReqBadEDNSVer</command></para>
12710                     </entry>
12711                     <entry colname="2">
12712                       <para><command></command></para>
12713                     </entry>
12714                     <entry colname="3">
12715                       <para>
12716                         Requests with unsupported EDNS version received.
12717                       </para>
12718                     </entry>
12719                   </row>
12720                   <row rowsep="0">
12721                     <entry colname="1">
12722                       <para><command>ReqTSIG</command></para>
12723                     </entry>
12724                     <entry colname="2">
12725                       <para><command></command></para>
12726                     </entry>
12727                     <entry colname="3">
12728                       <para>
12729                         Requests with TSIG received.
12730                       </para>
12731                     </entry>
12732                   </row>
12733                   <row rowsep="0">
12734                     <entry colname="1">
12735                       <para><command>ReqSIG0</command></para>
12736                     </entry>
12737                     <entry colname="2">
12738                       <para><command></command></para>
12739                     </entry>
12740                     <entry colname="3">
12741                       <para>
12742                         Requests with SIG(0) received.
12743                       </para>
12744                     </entry>
12745                   </row>
12746                   <row rowsep="0">
12747                     <entry colname="1">
12748                       <para><command>ReqBadSIG</command></para>
12749                     </entry>
12750                     <entry colname="2">
12751                       <para><command></command></para>
12752                     </entry>
12753                     <entry colname="3">
12754                       <para>
12755                         Requests with invalid (TSIG or SIG(0)) signature.
12756                       </para>
12757                     </entry>
12758                   </row>
12759                   <row rowsep="0">
12760                     <entry colname="1">
12761                       <para><command>ReqTCP</command></para>
12762                     </entry>
12763                     <entry colname="2">
12764                       <para><command>RTCP</command></para>
12765                     </entry>
12766                     <entry colname="3">
12767                       <para>
12768                         TCP requests received.
12769                       </para>
12770                     </entry>
12771                   </row>
12772                   <row rowsep="0">
12773                     <entry colname="1">
12774                       <para><command>AuthQryRej</command></para>
12775                     </entry>
12776                     <entry colname="2">
12777                       <para><command>RUQ</command></para>
12778                     </entry>
12779                     <entry colname="3">
12780                       <para>
12781                         Authoritative (non recursive) queries rejected.
12782                       </para>
12783                     </entry>
12784                   </row>
12785                   <row rowsep="0">
12786                     <entry colname="1">
12787                       <para><command>RecQryRej</command></para>
12788                     </entry>
12789                     <entry colname="2">
12790                       <para><command>RURQ</command></para>
12791                     </entry>
12792                     <entry colname="3">
12793                       <para>
12794                         Recursive queries rejected.
12795                       </para>
12796                     </entry>
12797                   </row>
12798                   <row rowsep="0">
12799                     <entry colname="1">
12800                       <para><command>XfrRej</command></para>
12801                     </entry>
12802                     <entry colname="2">
12803                       <para><command>RUXFR</command></para>
12804                     </entry>
12805                     <entry colname="3">
12806                       <para>
12807                         Zone transfer requests rejected.
12808                       </para>
12809                     </entry>
12810                   </row>
12811                   <row rowsep="0">
12812                     <entry colname="1">
12813                       <para><command>UpdateRej</command></para>
12814                     </entry>
12815                     <entry colname="2">
12816                       <para><command>RUUpd</command></para>
12817                     </entry>
12818                     <entry colname="3">
12819                       <para>
12820                         Dynamic update requests rejected.
12821                       </para>
12822                     </entry>
12823                   </row>
12824                   <row rowsep="0">
12825                     <entry colname="1">
12826                       <para><command>Response</command></para>
12827                     </entry>
12828                     <entry colname="2">
12829                       <para><command>SAns</command></para>
12830                     </entry>
12831                     <entry colname="3">
12832                       <para>
12833                         Responses sent.
12834                       </para>
12835                     </entry>
12836                   </row>
12837                   <row rowsep="0">
12838                     <entry colname="1">
12839                       <para><command>RespTruncated</command></para>
12840                     </entry>
12841                     <entry colname="2">
12842                       <para><command></command></para>
12843                     </entry>
12844                     <entry colname="3">
12845                       <para>
12846                         Truncated responses sent.
12847                       </para>
12848                     </entry>
12849                   </row>
12850                   <row rowsep="0">
12851                     <entry colname="1">
12852                       <para><command>RespEDNS0</command></para>
12853                     </entry>
12854                     <entry colname="2">
12855                       <para><command></command></para>
12856                     </entry>
12857                     <entry colname="3">
12858                       <para>
12859                         Responses with EDNS(0) sent.
12860                       </para>
12861                     </entry>
12862                   </row>
12863                   <row rowsep="0">
12864                     <entry colname="1">
12865                       <para><command>RespTSIG</command></para>
12866                     </entry>
12867                     <entry colname="2">
12868                       <para><command></command></para>
12869                     </entry>
12870                     <entry colname="3">
12871                       <para>
12872                         Responses with TSIG sent.
12873                       </para>
12874                     </entry>
12875                   </row>
12876                   <row rowsep="0">
12877                     <entry colname="1">
12878                       <para><command>RespSIG0</command></para>
12879                     </entry>
12880                     <entry colname="2">
12881                       <para><command></command></para>
12882                     </entry>
12883                     <entry colname="3">
12884                       <para>
12885                         Responses with SIG(0) sent.
12886                       </para>
12887                     </entry>
12888                   </row>
12889                   <row rowsep="0">
12890                     <entry colname="1">
12891                       <para><command>QrySuccess</command></para>
12892                     </entry>
12893                     <entry colname="2">
12894                       <para><command></command></para>
12895                     </entry>
12896                     <entry colname="3">
12897                       <para>
12898                         Queries resulted in a successful answer.
12899                         This means the query which returns a NOERROR response
12900                         with at least one answer RR.
12901                         This corresponds to the
12902                         <command>success</command> counter
12903                         of previous versions of
12904                         <acronym>BIND</acronym> 9.
12905                       </para>
12906                     </entry>
12907                   </row>
12908                   <row rowsep="0">
12909                     <entry colname="1">
12910                       <para><command>QryAuthAns</command></para>
12911                     </entry>
12912                     <entry colname="2">
12913                       <para><command></command></para>
12914                     </entry>
12915                     <entry colname="3">
12916                       <para>
12917                         Queries resulted in authoritative answer.
12918                       </para>
12919                     </entry>
12920                   </row>
12921                   <row rowsep="0">
12922                     <entry colname="1">
12923                       <para><command>QryNoauthAns</command></para>
12924                     </entry>
12925                     <entry colname="2">
12926                       <para><command>SNaAns</command></para>
12927                     </entry>
12928                     <entry colname="3">
12929                       <para>
12930                         Queries resulted in non authoritative answer.
12931                       </para>
12932                     </entry>
12933                   </row>
12934                   <row rowsep="0">
12935                     <entry colname="1">
12936                       <para><command>QryReferral</command></para>
12937                     </entry>
12938                     <entry colname="2">
12939                       <para><command></command></para>
12940                     </entry>
12941                     <entry colname="3">
12942                       <para>
12943                         Queries resulted in referral answer.
12944                         This corresponds to the
12945                         <command>referral</command> counter
12946                         of previous versions of
12947                         <acronym>BIND</acronym> 9.
12948                       </para>
12949                     </entry>
12950                   </row>
12951                   <row rowsep="0">
12952                     <entry colname="1">
12953                       <para><command>QryNxrrset</command></para>
12954                     </entry>
12955                     <entry colname="2">
12956                       <para><command></command></para>
12957                     </entry>
12958                     <entry colname="3">
12959                       <para>
12960                         Queries resulted in NOERROR responses with no data.
12961                         This corresponds to the
12962                         <command>nxrrset</command> counter
12963                         of previous versions of
12964                         <acronym>BIND</acronym> 9.
12965                       </para>
12966                     </entry>
12967                   </row>
12968                   <row rowsep="0">
12969                     <entry colname="1">
12970                       <para><command>QrySERVFAIL</command></para>
12971                     </entry>
12972                     <entry colname="2">
12973                       <para><command>SFail</command></para>
12974                     </entry>
12975                     <entry colname="3">
12976                       <para>
12977                         Queries resulted in SERVFAIL.
12978                       </para>
12979                     </entry>
12980                   </row>
12981                   <row rowsep="0">
12982                     <entry colname="1">
12983                       <para><command>QryFORMERR</command></para>
12984                     </entry>
12985                     <entry colname="2">
12986                       <para><command>SFErr</command></para>
12987                     </entry>
12988                     <entry colname="3">
12989                       <para>
12990                         Queries resulted in FORMERR.
12991                       </para>
12992                     </entry>
12993                   </row>
12994                   <row rowsep="0">
12995                     <entry colname="1">
12996                       <para><command>QryNXDOMAIN</command></para>
12997                     </entry>
12998                     <entry colname="2">
12999                       <para><command>SNXD</command></para>
13000                     </entry>
13001                     <entry colname="3">
13002                       <para>
13003                         Queries resulted in NXDOMAIN.
13004                         This corresponds to the
13005                         <command>nxdomain</command> counter
13006                         of previous versions of
13007                         <acronym>BIND</acronym> 9.
13008                       </para>
13009                     </entry>
13010                   </row>
13011                   <row rowsep="0">
13012                     <entry colname="1">
13013                       <para><command>QryRecursion</command></para>
13014                     </entry>
13015                     <entry colname="2">
13016                       <para><command>RFwdQ</command></para>
13017                     </entry>
13018                     <entry colname="3">
13019                       <para>
13020                         Queries which caused the server
13021                         to perform recursion in order to find the final answer.
13022                         This corresponds to the
13023                         <command>recursion</command> counter
13024                         of previous versions of
13025                         <acronym>BIND</acronym> 9.
13026                       </para>
13027                     </entry>
13028                   </row>
13029                   <row rowsep="0">
13030                     <entry colname="1">
13031                       <para><command>QryDuplicate</command></para>
13032                     </entry>
13033                     <entry colname="2">
13034                       <para><command>RDupQ</command></para>
13035                     </entry>
13036                     <entry colname="3">
13037                       <para>
13038                         Queries which the server attempted to
13039                         recurse but discovered an existing query with the same
13040                         IP address, port, query ID, name, type and class
13041                         already being processed.
13042                         This corresponds to the
13043                         <command>duplicate</command> counter
13044                         of previous versions of
13045                         <acronym>BIND</acronym> 9.
13046                       </para>
13047                     </entry>
13048                   </row>
13049                   <row rowsep="0">
13050                     <entry colname="1">
13051                       <para><command>QryDropped</command></para>
13052                     </entry>
13053                     <entry colname="2">
13054                       <para><command></command></para>
13055                     </entry>
13056                     <entry colname="3">
13057                       <para>
13058                         Recursive queries for which the server
13059                         discovered an excessive number of existing
13060                         recursive queries for the same name, type and
13061                         class and were subsequently dropped.
13062                         This is the number of dropped queries due to
13063                         the reason explained with the
13064                         <command>clients-per-query</command>
13065                         and
13066                         <command>max-clients-per-query</command>
13067                         options
13068                         (see the description about
13069                         <xref linkend="clients-per-query"/>.)
13070                         This corresponds to the
13071                         <command>dropped</command> counter
13072                         of previous versions of
13073                         <acronym>BIND</acronym> 9.
13074                       </para>
13075                     </entry>
13076                   </row>
13077                   <row rowsep="0">
13078                     <entry colname="1">
13079                       <para><command>QryFailure</command></para>
13080                     </entry>
13081                     <entry colname="2">
13082                       <para><command></command></para>
13083                     </entry>
13084                     <entry colname="3">
13085                       <para>
13086                         Other query failures.
13087                         This corresponds to the
13088                         <command>failure</command> counter
13089                         of previous versions of
13090                         <acronym>BIND</acronym> 9.
13091                         Note: this counter is provided mainly for
13092                         backward compatibility with the previous versions.
13093                         Normally a more fine-grained counters such as
13094                         <command>AuthQryRej</command> and
13095                         <command>RecQryRej</command>
13096                         that would also fall into this counter are provided,
13097                         and so this counter would not be of much
13098                         interest in practice.
13099                       </para>
13100                     </entry>
13101                   </row>
13102                   <row rowsep="0">
13103                     <entry colname="1">
13104                       <para><command>XfrReqDone</command></para>
13105                     </entry>
13106                     <entry colname="2">
13107                       <para><command></command></para>
13108                     </entry>
13109                     <entry colname="3">
13110                       <para>
13111                         Requested zone transfers completed.
13112                       </para>
13113                     </entry>
13114                   </row>
13115                   <row rowsep="0">
13116                     <entry colname="1">
13117                       <para><command>UpdateReqFwd</command></para>
13118                     </entry>
13119                     <entry colname="2">
13120                       <para><command></command></para>
13121                     </entry>
13122                     <entry colname="3">
13123                       <para>
13124                         Update requests forwarded.
13125                       </para>
13126                     </entry>
13127                   </row>
13128                   <row rowsep="0">
13129                     <entry colname="1">
13130                       <para><command>UpdateRespFwd</command></para>
13131                     </entry>
13132                     <entry colname="2">
13133                       <para><command></command></para>
13134                     </entry>
13135                     <entry colname="3">
13136                       <para>
13137                         Update responses forwarded.
13138                       </para>
13139                     </entry>
13140                   </row>
13141                   <row rowsep="0">
13142                     <entry colname="1">
13143                       <para><command>UpdateFwdFail</command></para>
13144                     </entry>
13145                     <entry colname="2">
13146                       <para><command></command></para>
13147                     </entry>
13148                     <entry colname="3">
13149                       <para>
13150                         Dynamic update forward failed.
13151                       </para>
13152                     </entry>
13153                   </row>
13154                   <row rowsep="0">
13155                     <entry colname="1">
13156                       <para><command>UpdateDone</command></para>
13157                     </entry>
13158                     <entry colname="2">
13159                       <para><command></command></para>
13160                     </entry>
13161                     <entry colname="3">
13162                       <para>
13163                         Dynamic updates completed.
13164                       </para>
13165                     </entry>
13166                   </row>
13167                   <row rowsep="0">
13168                     <entry colname="1">
13169                       <para><command>UpdateFail</command></para>
13170                     </entry>
13171                     <entry colname="2">
13172                       <para><command></command></para>
13173                     </entry>
13174                     <entry colname="3">
13175                       <para>
13176                         Dynamic updates failed.
13177                       </para>
13178                     </entry>
13179                   </row>
13180                   <row rowsep="0">
13181                     <entry colname="1">
13182                       <para><command>UpdateBadPrereq</command></para>
13183                     </entry>
13184                     <entry colname="2">
13185                       <para><command></command></para>
13186                     </entry>
13187                     <entry colname="3">
13188                       <para>
13189                         Dynamic updates rejected due to prerequisite failure.
13190                       </para>
13191                     </entry>
13192                   </row>
13193                 </tbody>
13194               </tgroup>
13195             </informaltable>
13196           </sect3>
13198           <sect3>
13199             <title>Zone Maintenance Statistics Counters</title>
13201             <informaltable colsep="0" rowsep="0">
13202               <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
13203                 <colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
13204                 <colspec colname="2" colnum="2" colsep="0" colwidth="3.350in"/>
13205                 <tbody>
13206                   <row>
13207                     <entry colname="1">
13208                       <para>
13209                         <emphasis>Symbol</emphasis>
13210                       </para>
13211                     </entry>
13212                     <entry colname="2">
13213                       <para>
13214                         <emphasis>Description</emphasis>
13215                       </para>
13216                     </entry>
13217                   </row>
13219                   <row rowsep="0">
13220                     <entry colname="1">
13221                       <para><command>NotifyOutv4</command></para>
13222                     </entry>
13223                     <entry colname="2">
13224                       <para>
13225                         IPv4 notifies sent.
13226                       </para>
13227                     </entry>
13228                   </row>
13229                   <row rowsep="0">
13230                     <entry colname="1">
13231                       <para><command>NotifyOutv6</command></para>
13232                     </entry>
13233                     <entry colname="2">
13234                       <para>
13235                         IPv6 notifies sent.
13236                       </para>
13237                     </entry>
13238                   </row>
13239                   <row rowsep="0">
13240                     <entry colname="1">
13241                       <para><command>NotifyInv4</command></para>
13242                     </entry>
13243                     <entry colname="2">
13244                       <para>
13245                         IPv4 notifies received.
13246                       </para>
13247                     </entry>
13248                   </row>
13249                   <row rowsep="0">
13250                     <entry colname="1">
13251                       <para><command>NotifyInv6</command></para>
13252                     </entry>
13253                     <entry colname="2">
13254                       <para>
13255                         IPv6 notifies received.
13256                       </para>
13257                     </entry>
13258                   </row>
13259                   <row rowsep="0">
13260                     <entry colname="1">
13261                       <para><command>NotifyRej</command></para>
13262                     </entry>
13263                     <entry colname="2">
13264                       <para>
13265                         Incoming notifies rejected.
13266                       </para>
13267                     </entry>
13268                   </row>
13269                   <row rowsep="0">
13270                     <entry colname="1">
13271                       <para><command>SOAOutv4</command></para>
13272                     </entry>
13273                     <entry colname="2">
13274                       <para>
13275                         IPv4 SOA queries sent.
13276                       </para>
13277                     </entry>
13278                   </row>
13279                   <row rowsep="0">
13280                     <entry colname="1">
13281                       <para><command>SOAOutv6</command></para>
13282                     </entry>
13283                     <entry colname="2">
13284                       <para>
13285                         IPv6 SOA queries sent.
13286                       </para>
13287                     </entry>
13288                   </row>
13289                   <row rowsep="0">
13290                     <entry colname="1">
13291                       <para><command>AXFRReqv4</command></para>
13292                     </entry>
13293                     <entry colname="2">
13294                       <para>
13295                         IPv4 AXFR requested.
13296                       </para>
13297                     </entry>
13298                   </row>
13299                   <row rowsep="0">
13300                     <entry colname="1">
13301                       <para><command>AXFRReqv6</command></para>
13302                     </entry>
13303                     <entry colname="2">
13304                       <para>
13305                         IPv6 AXFR requested.
13306                       </para>
13307                     </entry>
13308                   </row>
13309                   <row rowsep="0">
13310                     <entry colname="1">
13311                       <para><command>IXFRReqv4</command></para>
13312                     </entry>
13313                     <entry colname="2">
13314                       <para>
13315                         IPv4 IXFR requested.
13316                       </para>
13317                     </entry>
13318                   </row>
13319                   <row rowsep="0">
13320                     <entry colname="1">
13321                       <para><command>IXFRReqv6</command></para>
13322                     </entry>
13323                     <entry colname="2">
13324                       <para>
13325                         IPv6 IXFR requested.
13326                       </para>
13327                     </entry>
13328                   </row>
13329                   <row rowsep="0">
13330                     <entry colname="1">
13331                       <para><command>XfrSuccess</command></para>
13332                     </entry>
13333                     <entry colname="2">
13334                       <para>
13335                         Zone transfer requests succeeded.
13336                       </para>
13337                     </entry>
13338                   </row>
13339                   <row rowsep="0">
13340                     <entry colname="1">
13341                       <para><command>XfrFail</command></para>
13342                     </entry>
13343                     <entry colname="2">
13344                       <para>
13345                         Zone transfer requests failed.
13346                       </para>
13347                     </entry>
13348                   </row>
13349                 </tbody>
13350               </tgroup>
13351             </informaltable>
13352           </sect3>
13354           <sect3>
13355             <title>Resolver Statistics Counters</title>
13357             <informaltable colsep="0" rowsep="0">
13358               <tgroup cols="3" colsep="0" rowsep="0" tgroupstyle="4Level-table">
13359                 <colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
13360                 <colspec colname="2" colnum="2" colsep="0" colwidth="1.150in"/>
13361                 <colspec colname="3" colnum="3" colsep="0" colwidth="3.350in"/>
13362                 <tbody>
13363                   <row>
13364                     <entry colname="1">
13365                       <para>
13366                         <emphasis>Symbol</emphasis>
13367                       </para>
13368                     </entry>
13369                     <entry colname="2">
13370                       <para>
13371                         <emphasis>BIND8 Symbol</emphasis>
13372                       </para>
13373                     </entry>
13374                     <entry colname="3">
13375                       <para>
13376                         <emphasis>Description</emphasis>
13377                       </para>
13378                     </entry>
13379                   </row>
13381                   <row rowsep="0">
13382                     <entry colname="1">
13383                       <para><command>Queryv4</command></para>
13384                     </entry>
13385                     <entry colname="2">
13386                       <para><command>SFwdQ</command></para>
13387                     </entry>
13388                     <entry colname="3">
13389                       <para>
13390                         IPv4 queries sent.
13391                       </para>
13392                     </entry>
13393                   </row>
13394                   <row rowsep="0">
13395                     <entry colname="1">
13396                       <para><command>Queryv6</command></para>
13397                     </entry>
13398                     <entry colname="2">
13399                       <para><command>SFwdQ</command></para>
13400                     </entry>
13401                     <entry colname="3">
13402                       <para>
13403                         IPv6 queries sent.
13404                       </para>
13405                     </entry>
13406                   </row>
13407                   <row rowsep="0">
13408                     <entry colname="1">
13409                       <para><command>Responsev4</command></para>
13410                     </entry>
13411                     <entry colname="2">
13412                       <para><command>RR</command></para>
13413                     </entry>
13414                     <entry colname="3">
13415                       <para>
13416                         IPv4 responses received.
13417                       </para>
13418                     </entry>
13419                   </row>
13420                   <row rowsep="0">
13421                     <entry colname="1">
13422                       <para><command>Responsev6</command></para>
13423                     </entry>
13424                     <entry colname="2">
13425                       <para><command>RR</command></para>
13426                     </entry>
13427                     <entry colname="3">
13428                       <para>
13429                         IPv6 responses received.
13430                       </para>
13431                     </entry>
13432                   </row>
13433                   <row rowsep="0">
13434                     <entry colname="1">
13435                       <para><command>NXDOMAIN</command></para>
13436                     </entry>
13437                     <entry colname="2">
13438                       <para><command>RNXD</command></para>
13439                     </entry>
13440                     <entry colname="3">
13441                       <para>
13442                         NXDOMAIN received.
13443                       </para>
13444                     </entry>
13445                   </row>
13446                   <row rowsep="0">
13447                     <entry colname="1">
13448                       <para><command>SERVFAIL</command></para>
13449                     </entry>
13450                     <entry colname="2">
13451                       <para><command>RFail</command></para>
13452                     </entry>
13453                     <entry colname="3">
13454                       <para>
13455                         SERVFAIL received.
13456                       </para>
13457                     </entry>
13458                   </row>
13459                   <row rowsep="0">
13460                     <entry colname="1">
13461                       <para><command>FORMERR</command></para>
13462                     </entry>
13463                     <entry colname="2">
13464                       <para><command>RFErr</command></para>
13465                     </entry>
13466                     <entry colname="3">
13467                       <para>
13468                         FORMERR received.
13469                       </para>
13470                     </entry>
13471                   </row>
13472                   <row rowsep="0">
13473                     <entry colname="1">
13474                       <para><command>OtherError</command></para>
13475                     </entry>
13476                     <entry colname="2">
13477                       <para><command>RErr</command></para>
13478                     </entry>
13479                     <entry colname="3">
13480                       <para>
13481                         Other errors received.
13482                       </para>
13483                     </entry>
13484                   </row>
13485                   <row rowsep="0">
13486                     <entry colname="1">
13487                       <para><command>EDNS0Fail</command></para>
13488                                                  </entry>
13489                     <entry colname="2">
13490                       <para><command></command></para>
13491                     </entry>
13492                     <entry colname="3">
13493                       <para>
13494                         EDNS(0) query failures.
13495                       </para>
13496                     </entry>
13497                   </row>
13498                   <row rowsep="0">
13499                     <entry colname="1">
13500                       <para><command>Mismatch</command></para>
13501                     </entry>
13502                     <entry colname="2">
13503                       <para><command>RDupR</command></para>
13504                     </entry>
13505                     <entry colname="3">
13506                       <para>
13507                         Mismatch responses received.
13508                         The DNS ID, response's source address,
13509                         and/or the response's source port does not
13510                         match what was expected.
13511                         (The port must be 53 or as defined by
13512                         the <command>port</command> option.)
13513                         This may be an indication of a cache
13514                         poisoning attempt.
13515                       </para>
13516                     </entry>
13517                   </row>
13518                   <row rowsep="0">
13519                     <entry colname="1">
13520                       <para><command>Truncated</command></para>
13521                     </entry>
13522                     <entry colname="2">
13523                       <para><command></command></para>
13524                     </entry>
13525                     <entry colname="3">
13526                       <para>
13527                         Truncated responses received.
13528                       </para>
13529                     </entry>
13530                   </row>
13531                   <row rowsep="0">
13532                     <entry colname="1">
13533                       <para><command>Lame</command></para>
13534                     </entry>
13535                     <entry colname="2">
13536                       <para><command>RLame</command></para>
13537                     </entry>
13538                     <entry colname="3">
13539                       <para>
13540                         Lame delegations received.
13541                       </para>
13542                     </entry>
13543                   </row>
13544                   <row rowsep="0">
13545                     <entry colname="1">
13546                       <para><command>Retry</command></para>
13547                     </entry>
13548                     <entry colname="2">
13549                       <para><command>SDupQ</command></para>
13550                     </entry>
13551                     <entry colname="3">
13552                       <para>
13553                         Query retries performed.
13554                       </para>
13555                     </entry>
13556                   </row>
13557                   <row rowsep="0">
13558                     <entry colname="1">
13559                       <para><command>QueryAbort</command></para>
13560                     </entry>
13561                     <entry colname="2">
13562                       <para><command></command></para>
13563                     </entry>
13564                     <entry colname="3">
13565                       <para>
13566                         Queries aborted due to quota control.
13567                       </para>
13568                     </entry>
13569                   </row>
13570                   <row rowsep="0">
13571                     <entry colname="1">
13572                       <para><command>QuerySockFail</command></para>
13573                     </entry>
13574                     <entry colname="2">
13575                       <para><command></command></para>
13576                     </entry>
13577                     <entry colname="3">
13578                       <para>
13579                         Failures in opening query sockets.
13580                         One common reason for such failures is a
13581                         failure of opening a new socket due to a
13582                         limitation on file descriptors.
13583                       </para>
13584                     </entry>
13585                   </row>
13586                   <row rowsep="0">
13587                     <entry colname="1">
13588                       <para><command>QueryTimeout</command></para>
13589                     </entry>
13590                     <entry colname="2">
13591                       <para><command></command></para>
13592                     </entry>
13593                     <entry colname="3">
13594                       <para>
13595                         Query timeouts.
13596                       </para>
13597                     </entry>
13598                   </row>
13599                   <row rowsep="0">
13600                     <entry colname="1">
13601                       <para><command>GlueFetchv4</command></para>
13602                     </entry>
13603                     <entry colname="2">
13604                       <para><command>SSysQ</command></para>
13605                     </entry>
13606                     <entry colname="3">
13607                       <para>
13608                         IPv4 NS address fetches invoked.
13609                       </para>
13610                     </entry>
13611                   </row>
13612                   <row rowsep="0">
13613                     <entry colname="1">
13614                       <para><command>GlueFetchv6</command></para>
13615                     </entry>
13616                     <entry colname="2">
13617                       <para><command>SSysQ</command></para>
13618                     </entry>
13619                     <entry colname="3">
13620                       <para>
13621                         IPv6 NS address fetches invoked.
13622                       </para>
13623                     </entry>
13624                   </row>
13625                   <row rowsep="0">
13626                     <entry colname="1">
13627                       <para><command>GlueFetchv4Fail</command></para>
13628                     </entry>
13629                     <entry colname="2">
13630                       <para><command></command></para>
13631                     </entry>
13632                     <entry colname="3">
13633                       <para>
13634                         IPv4 NS address fetch failed.
13635                       </para>
13636                     </entry>
13637                   </row>
13638                   <row rowsep="0">
13639                     <entry colname="1">
13640                       <para><command>GlueFetchv6Fail</command></para>
13641                     </entry>
13642                     <entry colname="2">
13643                       <para><command></command></para>
13644                     </entry>
13645                     <entry colname="3">
13646                       <para>
13647                         IPv6 NS address fetch failed.
13648                       </para>
13649                     </entry>
13650                   </row>
13651                   <row rowsep="0">
13652                     <entry colname="1">
13653                       <para><command>ValAttempt</command></para>
13654                     </entry>
13655                     <entry colname="2">
13656                       <para><command></command></para>
13657                     </entry>
13658                     <entry colname="3">
13659                       <para>
13660                         DNSSEC validation attempted.
13661                       </para>
13662                     </entry>
13663                   </row>
13664                   <row rowsep="0">
13665                     <entry colname="1">
13666                       <para><command>ValOk</command></para>
13667                     </entry>
13668                     <entry colname="2">
13669                       <para><command></command></para>
13670                     </entry>
13671                     <entry colname="3">
13672                       <para>
13673                         DNSSEC validation succeeded.
13674                       </para>
13675                     </entry>
13676                   </row>
13677                   <row rowsep="0">
13678                     <entry colname="1">
13679                       <para><command>ValNegOk</command></para>
13680                     </entry>
13681                     <entry colname="2">
13682                       <para><command></command></para>
13683                     </entry>
13684                     <entry colname="3">
13685                       <para>
13686                         DNSSEC validation on negative information succeeded.
13687                       </para>
13688                     </entry>
13689                   </row>
13690                   <row rowsep="0">
13691                     <entry colname="1">
13692                       <para><command>ValFail</command></para>
13693                     </entry>
13694                     <entry colname="2">
13695                       <para><command></command></para>
13696                     </entry>
13697                     <entry colname="3">
13698                       <para>
13699                         DNSSEC validation failed.
13700                       </para>
13701                     </entry>
13702                   </row>
13703                   <row rowsep="0">
13704                     <entry colname="1">
13705                       <para><command>QryRTTnn</command></para>
13706                     </entry>
13707                     <entry colname="2">
13708                       <para><command></command></para>
13709                     </entry>
13710                     <entry colname="3">
13711                       <para>
13712                         Frequency table on round trip times (RTTs) of
13713                         queries.
13714                         Each <command>nn</command> specifies the corresponding
13715                         frequency.
13716                         In the sequence of
13717                         <command>nn_1</command>,
13718                         <command>nn_2</command>,
13719                         ...,
13720                         <command>nn_m</command>,
13721                         the value of <command>nn_i</command> is the
13722                         number of queries whose RTTs are between
13723                         <command>nn_(i-1)</command> (inclusive) and
13724                         <command>nn_i</command> (exclusive) milliseconds.
13725                         For the sake of convenience we define
13726                         <command>nn_0</command> to be 0.
13727                         The last entry should be represented as
13728                         <command>nn_m+</command>, which means the
13729                         number of queries whose RTTs are equal to or over
13730                         <command>nn_m</command> milliseconds.
13731                       </para>
13732                     </entry>
13733                   </row>
13734                 </tbody>
13735               </tgroup>
13736             </informaltable>
13738           </sect3>
13740           <sect3>
13741             <title>Socket I/O Statistics Counters</title>
13743             <para>
13744               Socket I/O statistics counters are defined per socket
13745               types, which are
13746               <command>UDP4</command> (UDP/IPv4),
13747               <command>UDP6</command> (UDP/IPv6),
13748               <command>TCP4</command> (TCP/IPv4),
13749               <command>TCP6</command> (TCP/IPv6),
13750               <command>Unix</command> (Unix Domain), and
13751               <command>FDwatch</command> (sockets opened outside the
13752               socket module).
13753               In the following table <command>&lt;TYPE&gt;</command>
13754               represents a socket type.
13755               Not all counters are available for all socket types;
13756               exceptions are noted in the description field.
13757             </para>
13759             <informaltable colsep="0" rowsep="0">
13760               <tgroup cols="2" colsep="0" rowsep="0" tgroupstyle="4Level-table">
13761                 <colspec colname="1" colnum="1" colsep="0" colwidth="1.150in"/>
13762                 <colspec colname="2" colnum="2" colsep="0" colwidth="3.350in"/>
13763                 <tbody>
13764                   <row>
13765                     <entry colname="1">
13766                       <para>
13767                         <emphasis>Symbol</emphasis>
13768                       </para>
13769                     </entry>
13770                     <entry colname="2">
13771                       <para>
13772                         <emphasis>Description</emphasis>
13773                       </para>
13774                     </entry>
13775                   </row>
13777                   <row rowsep="0">
13778                     <entry colname="1">
13779                       <para><command>&lt;TYPE&gt;Open</command></para>
13780                     </entry>
13781                     <entry colname="2">
13782                       <para>
13783                         Sockets opened successfully.
13784                         This counter is not applicable to the
13785                         <command>FDwatch</command> type.
13786                       </para>
13787                     </entry>
13788                   </row>
13789                   <row rowsep="0">
13790                     <entry colname="1">
13791                       <para><command>&lt;TYPE&gt;OpenFail</command></para>
13792                     </entry>
13793                     <entry colname="2">
13794                       <para>
13795                         Failures of opening sockets.
13796                         This counter is not applicable to the
13797                         <command>FDwatch</command> type.
13798                       </para>
13799                     </entry>
13800                   </row>
13801                   <row rowsep="0">
13802                     <entry colname="1">
13803                       <para><command>&lt;TYPE&gt;Close</command></para>
13804                     </entry>
13805                     <entry colname="2">
13806                       <para>
13807                         Sockets closed.
13808                       </para>
13809                     </entry>
13810                   </row>
13811                   <row rowsep="0">
13812                     <entry colname="1">
13813                       <para><command>&lt;TYPE&gt;BindFail</command></para>
13814                     </entry>
13815                     <entry colname="2">
13816                       <para>
13817                         Failures of binding sockets.
13818                       </para>
13819                     </entry>
13820                   </row>
13821                   <row rowsep="0">
13822                     <entry colname="1">
13823                       <para><command>&lt;TYPE&gt;ConnFail</command></para>
13824                     </entry>
13825                     <entry colname="2">
13826                       <para>
13827                         Failures of connecting sockets.
13828                       </para>
13829                     </entry>
13830                   </row>
13831                   <row rowsep="0">
13832                     <entry colname="1">
13833                       <para><command>&lt;TYPE&gt;Conn</command></para>
13834                     </entry>
13835                     <entry colname="2">
13836                       <para>
13837                         Connections established successfully.
13838                       </para>
13839                     </entry>
13840                   </row>
13841                   <row rowsep="0">
13842                     <entry colname="1">
13843                       <para><command>&lt;TYPE&gt;AcceptFail</command></para>
13844                     </entry>
13845                     <entry colname="2">
13846                       <para>
13847                         Failures of accepting incoming connection requests.
13848                         This counter is not applicable to the
13849                         <command>UDP</command> and
13850                         <command>FDwatch</command> types.
13851                       </para>
13852                     </entry>
13853                   </row>
13854                   <row rowsep="0">
13855                     <entry colname="1">
13856                       <para><command>&lt;TYPE&gt;Accept</command></para>
13857                     </entry>
13858                     <entry colname="2">
13859                       <para>
13860                         Incoming connections successfully accepted.
13861                         This counter is not applicable to the
13862                         <command>UDP</command> and
13863                         <command>FDwatch</command> types.
13864                       </para>
13865                     </entry>
13866                   </row>
13867                   <row rowsep="0">
13868                     <entry colname="1">
13869                       <para><command>&lt;TYPE&gt;SendErr</command></para>
13870                     </entry>
13871                     <entry colname="2">
13872                       <para>
13873                         Errors in socket send operations.
13874                         This counter corresponds
13875                         to <command>SErr</command> counter of
13876                         <command>BIND</command> 8.
13877                       </para>
13878                     </entry>
13879                   </row>
13880                   <row rowsep="0">
13881                     <entry colname="1">
13882                       <para><command>&lt;TYPE&gt;RecvErr</command></para>
13883                     </entry>
13884                     <entry colname="2">
13885                       <para>
13886                         Errors in socket receive operations.
13887                         This includes errors of send operations on a
13888                         connected UDP socket notified by an ICMP error
13889                         message.
13890                       </para>
13891                     </entry>
13892                   </row>
13893                 </tbody>
13894               </tgroup>
13895             </informaltable>
13896           </sect3>
13897           <sect3>
13898             <title>Compatibility with <emphasis>BIND</emphasis> 8 Counters</title>
13899             <para>
13900               Most statistics counters that were available
13901               in <command>BIND</command> 8 are also supported in
13902               <command>BIND</command> 9 as shown in the above tables.
13903               Here are notes about other counters that do not appear
13904               in these tables.
13905             </para>
13907             <variablelist>
13908               <varlistentry>
13909                 <term><command>RFwdR,SFwdR</command></term>
13910                 <listitem>
13911                   <para>
13912                     These counters are not supported
13913                     because <command>BIND</command> 9 does not adopt
13914                     the notion of <emphasis>forwarding</emphasis>
13915                     as <command>BIND</command> 8 did.
13916                   </para>
13917                 </listitem>
13918               </varlistentry>
13920               <varlistentry>
13921                 <term><command>RAXFR</command></term>
13922                 <listitem>
13923                   <para>
13924                     This counter is accessible in the Incoming Queries section.
13925                   </para>
13926                 </listitem>
13927               </varlistentry>
13929               <varlistentry>
13930                 <term><command>RIQ</command></term>
13931                 <listitem>
13932                   <para>
13933                     This counter is accessible in the Incoming Requests section.
13934                   </para>
13935                 </listitem>
13936               </varlistentry>
13938               <varlistentry>
13939                 <term><command>ROpts</command></term>
13940                 <listitem>
13941                   <para>
13942                     This counter is not supported
13943                     because <command>BIND</command> 9 does not care
13944                     about IP options in the first place.
13945                   </para>
13946                 </listitem>
13947               </varlistentry>
13948             </variablelist>
13949           </sect3>
13950         </sect2>
13951       </sect1>
13953     </chapter>
13954     <chapter id="Bv9ARM.ch07">
13955       <title><acronym>BIND</acronym> 9 Security Considerations</title>
13956       <sect1 id="Access_Control_Lists">
13957         <title>Access Control Lists</title>
13958         <para>
13959           Access Control Lists (ACLs) are address match lists that
13960           you can set up and nickname for future use in <command>allow-notify</command>,
13961           <command>allow-query</command>, <command>allow-query-on</command>,
13962           <command>allow-recursion</command>, <command>allow-recursion-on</command>,
13963           <command>blackhole</command>, <command>allow-transfer</command>,
13964           etc.
13965         </para>
13966         <para>
13967           Using ACLs allows you to have finer control over who can access
13968           your name server, without cluttering up your config files with huge
13969           lists of IP addresses.
13970         </para>
13971         <para>
13972           It is a <emphasis>good idea</emphasis> to use ACLs, and to
13973           control access to your server. Limiting access to your server by
13974           outside parties can help prevent spoofing and denial of service (DoS) attacks against
13975           your server.
13976         </para>
13977         <para>
13978           Here is an example of how to properly apply ACLs:
13979         </para>
13981 <programlisting>
13982 // Set up an ACL named "bogusnets" that will block
13983 // RFC1918 space and some reserved space, which is
13984 // commonly used in spoofing attacks.
13985 acl bogusnets {
13986         0.0.0.0/8; 1.0.0.0/8; 2.0.0.0/8; 192.0.2.0/24;
13987         224.0.0.0/3; 10.0.0.0/8; 172.16.0.0/12;
13988         192.168.0.0/16;
13991 // Set up an ACL called our-nets. Replace this with the
13992 // real IP numbers.
13993 acl our-nets { x.x.x.x/24; x.x.x.x/21; };
13994 options {
13995   ...
13996   ...
13997   allow-query { our-nets; };
13998   allow-recursion { our-nets; };
13999   ...
14000   blackhole { bogusnets; };
14001   ...
14004 zone "example.com" {
14005   type master;
14006   file "m/example.com";
14007   allow-query { any; };
14009 </programlisting>
14011         <para>
14012           This allows recursive queries of the server from the outside
14013           unless recursion has been previously disabled.
14014         </para>
14015         <para>
14016           For more information on how to use ACLs to protect your server,
14017           see the <emphasis>AUSCERT</emphasis> advisory at:
14018         </para>
14019         <para>
14020           <ulink url="ftp://ftp.auscert.org.au/pub/auscert/advisory/AL-1999.004.dns_dos"
14021                      >ftp://ftp.auscert.org.au/pub/auscert/advisory/AL-1999.004.dns_dos</ulink>
14022         </para>
14023       </sect1>
14024       <sect1>
14025         <title><command>Chroot</command> and <command>Setuid</command></title>
14026         <para>
14027           On UNIX servers, it is possible to run <acronym>BIND</acronym>
14028           in a <emphasis>chrooted</emphasis> environment (using
14029           the <command>chroot()</command> function) by specifying
14030           the "<option>-t</option>" option for <command>named</command>.
14031           This can help improve system security by placing
14032           <acronym>BIND</acronym> in a "sandbox", which will limit
14033           the damage done if a server is compromised.
14034         </para>
14035         <para>
14036           Another useful feature in the UNIX version of <acronym>BIND</acronym> is the
14037           ability to run the daemon as an unprivileged user ( <option>-u</option> <replaceable>user</replaceable> ).
14038           We suggest running as an unprivileged user when using the <command>chroot</command> feature.
14039         </para>
14040         <para>
14041           Here is an example command line to load <acronym>BIND</acronym> in a <command>chroot</command> sandbox,
14042           <command>/var/named</command>, and to run <command>named</command> <command>setuid</command> to
14043           user 202:
14044         </para>
14045         <para>
14046           <userinput>/usr/local/sbin/named -u 202 -t /var/named</userinput>
14047         </para>
14049         <sect2>
14050           <title>The <command>chroot</command> Environment</title>
14052           <para>
14053             In order for a <command>chroot</command> environment
14054             to
14055             work properly in a particular directory
14056             (for example, <filename>/var/named</filename>),
14057             you will need to set up an environment that includes everything
14058             <acronym>BIND</acronym> needs to run.
14059             From <acronym>BIND</acronym>'s point of view, <filename>/var/named</filename> is
14060             the root of the filesystem.  You will need to adjust the values of
14061             options like
14062             like <command>directory</command> and <command>pid-file</command> to account
14063             for this.
14064           </para>
14065           <para>
14066             Unlike with earlier versions of BIND, you typically will
14067             <emphasis>not</emphasis> need to compile <command>named</command>
14068             statically nor install shared libraries under the new root.
14069             However, depending on your operating system, you may need
14070             to set up things like
14071             <filename>/dev/zero</filename>,
14072             <filename>/dev/random</filename>,
14073             <filename>/dev/log</filename>, and
14074             <filename>/etc/localtime</filename>.
14075           </para>
14076         </sect2>
14078         <sect2>
14079           <title>Using the <command>setuid</command> Function</title>
14081           <para>
14082             Prior to running the <command>named</command> daemon,
14083             use
14084             the <command>touch</command> utility (to change file
14085             access and
14086             modification times) or the <command>chown</command>
14087             utility (to
14088             set the user id and/or group id) on files
14089             to which you want <acronym>BIND</acronym>
14090             to write.
14091           </para>
14092           <note>
14093             Note that if the <command>named</command> daemon is running as an
14094             unprivileged user, it will not be able to bind to new restricted
14095             ports if the server is reloaded.
14096           </note>
14097         </sect2>
14098       </sect1>
14100       <sect1 id="dynamic_update_security">
14101         <title>Dynamic Update Security</title>
14103         <para>
14104           Access to the dynamic
14105           update facility should be strictly limited.  In earlier versions of
14106           <acronym>BIND</acronym>, the only way to do this was
14107           based on the IP
14108           address of the host requesting the update, by listing an IP address
14109           or
14110           network prefix in the <command>allow-update</command>
14111           zone option.
14112           This method is insecure since the source address of the update UDP
14113           packet
14114           is easily forged.  Also note that if the IP addresses allowed by the
14115           <command>allow-update</command> option include the
14116           address of a slave
14117           server which performs forwarding of dynamic updates, the master can
14118           be
14119           trivially attacked by sending the update to the slave, which will
14120           forward it to the master with its own source IP address causing the
14121           master to approve it without question.
14122         </para>
14124         <para>
14125           For these reasons, we strongly recommend that updates be
14126           cryptographically authenticated by means of transaction signatures
14127           (TSIG).  That is, the <command>allow-update</command>
14128           option should
14129           list only TSIG key names, not IP addresses or network
14130           prefixes. Alternatively, the new <command>update-policy</command>
14131           option can be used.
14132         </para>
14134         <para>
14135           Some sites choose to keep all dynamically-updated DNS data
14136           in a subdomain and delegate that subdomain to a separate zone. This
14137           way, the top-level zone containing critical data such as the IP
14138           addresses
14139           of public web and mail servers need not allow dynamic update at
14140           all.
14141         </para>
14143       </sect1>
14144     </chapter>
14146     <chapter id="Bv9ARM.ch08">
14147       <title>Troubleshooting</title>
14148       <sect1>
14149         <title>Common Problems</title>
14150         <sect2>
14151           <title>It's not working; how can I figure out what's wrong?</title>
14153           <para>
14154             The best solution to solving installation and
14155             configuration issues is to take preventative measures by setting
14156             up logging files beforehand. The log files provide a
14157             source of hints and information that can be used to figure out
14158             what went wrong and how to fix the problem.
14159           </para>
14161         </sect2>
14162       </sect1>
14163       <sect1>
14164         <title>Incrementing and Changing the Serial Number</title>
14166         <para>
14167           Zone serial numbers are just numbers &mdash; they aren't
14168           date related.  A lot of people set them to a number that
14169           represents a date, usually of the form YYYYMMDDRR.
14170           Occasionally they will make a mistake and set them to a
14171           "date in the future" then try to correct them by setting
14172           them to the "current date".  This causes problems because
14173           serial numbers are used to indicate that a zone has been
14174           updated.  If the serial number on the slave server is
14175           lower than the serial number on the master, the slave
14176           server will attempt to update its copy of the zone.
14177         </para>
14179         <para>
14180           Setting the serial number to a lower number on the master
14181           server than the slave server means that the slave will not perform
14182           updates to its copy of the zone.
14183         </para>
14185         <para>
14186           The solution to this is to add 2147483647 (2^31-1) to the
14187           number, reload the zone and make sure all slaves have updated to
14188           the new zone serial number, then reset the number to what you want
14189           it to be, and reload the zone again.
14190         </para>
14192       </sect1>
14193       <sect1>
14194         <title>Where Can I Get Help?</title>
14196         <para>
14197           The Internet Systems Consortium
14198           (<acronym>ISC</acronym>) offers a wide range
14199           of support and service agreements for <acronym>BIND</acronym> and <acronym>DHCP</acronym> servers. Four
14200           levels of premium support are available and each level includes
14201           support for all <acronym>ISC</acronym> programs,
14202           significant discounts on products
14203           and training, and a recognized priority on bug fixes and
14204           non-funded feature requests. In addition, <acronym>ISC</acronym> offers a standard
14205           support agreement package which includes services ranging from bug
14206           fix announcements to remote support. It also includes training in
14207           <acronym>BIND</acronym> and <acronym>DHCP</acronym>.
14208         </para>
14210         <para>
14211           To discuss arrangements for support, contact
14212           <ulink url="mailto:info@isc.org">info@isc.org</ulink> or visit the
14213           <acronym>ISC</acronym> web page at
14214           <ulink url="http://www.isc.org/services/support/"
14215                      >http://www.isc.org/services/support/</ulink>
14216           to read more.
14217         </para>
14218       </sect1>
14219     </chapter>
14220     <appendix id="Bv9ARM.ch09">
14221       <title>Appendices</title>
14222       <sect1>
14223         <title>Acknowledgments</title>
14224         <sect2 id="historical_dns_information">
14225           <title>A Brief History of the <acronym>DNS</acronym> and <acronym>BIND</acronym></title>
14227           <para>
14228             Although the "official" beginning of the Domain Name
14229             System occurred in 1984 with the publication of RFC 920, the
14230             core of the new system was described in 1983 in RFCs 882 and
14231             883. From 1984 to 1987, the ARPAnet (the precursor to today's
14232             Internet) became a testbed of experimentation for developing the
14233             new naming/addressing scheme in a rapidly expanding,
14234             operational network environment.  New RFCs were written and
14235             published in 1987 that modified the original documents to
14236             incorporate improvements based on the working model. RFC 1034,
14237             "Domain Names-Concepts and Facilities", and RFC 1035, "Domain
14238             Names-Implementation and Specification" were published and
14239             became the standards upon which all <acronym>DNS</acronym> implementations are
14240             built.
14241           </para>
14243           <para>
14244             The first working domain name server, called "Jeeves", was
14245             written in 1983-84 by Paul Mockapetris for operation on DEC
14246             Tops-20
14247             machines located at the University of Southern California's
14248             Information
14249             Sciences Institute (USC-ISI) and SRI International's Network
14250             Information
14251             Center (SRI-NIC). A <acronym>DNS</acronym> server for
14252             Unix machines, the Berkeley Internet
14253             Name Domain (<acronym>BIND</acronym>) package, was
14254             written soon after by a group of
14255             graduate students at the University of California at Berkeley
14256             under
14257             a grant from the US Defense Advanced Research Projects
14258             Administration
14259             (DARPA).
14260           </para>
14261           <para>
14262             Versions of <acronym>BIND</acronym> through
14263             4.8.3 were maintained by the Computer
14264             Systems Research Group (CSRG) at UC Berkeley. Douglas Terry, Mark
14265             Painter, David Riggle and Songnian Zhou made up the initial <acronym>BIND</acronym>
14266             project team. After that, additional work on the software package
14267             was done by Ralph Campbell. Kevin Dunlap, a Digital Equipment
14268             Corporation
14269             employee on loan to the CSRG, worked on <acronym>BIND</acronym> for 2 years, from 1985
14270             to 1987. Many other people also contributed to <acronym>BIND</acronym> development
14271             during that time: Doug Kingston, Craig Partridge, Smoot
14272             Carl-Mitchell,
14273             Mike Muuss, Jim Bloom and Mike Schwartz. <acronym>BIND</acronym> maintenance was subsequently
14274             handled by Mike Karels and &#216;ivind Kure.
14275           </para>
14276           <para>
14277             <acronym>BIND</acronym> versions 4.9 and 4.9.1 were
14278             released by Digital Equipment
14279             Corporation (now Compaq Computer Corporation). Paul Vixie, then
14280             a DEC employee, became <acronym>BIND</acronym>'s
14281             primary caretaker. He was assisted
14282             by Phil Almquist, Robert Elz, Alan Barrett, Paul Albitz, Bryan
14283             Beecher, Andrew
14284             Partan, Andy Cherenson, Tom Limoncelli, Berthold Paffrath, Fuat
14285             Baran, Anant Kumar, Art Harkin, Win Treese, Don Lewis, Christophe
14286             Wolfhugel, and others.
14287           </para>
14288           <para>
14289             In 1994, <acronym>BIND</acronym> version 4.9.2 was sponsored by
14290             Vixie Enterprises. Paul
14291             Vixie became <acronym>BIND</acronym>'s principal
14292             architect/programmer.
14293           </para>
14294           <para>
14295             <acronym>BIND</acronym> versions from 4.9.3 onward
14296             have been developed and maintained
14297             by the Internet Systems Consortium and its predecessor,
14298             the Internet Software Consortium,  with support being provided
14299             by ISC's sponsors.
14300           </para>
14301           <para>
14302             As co-architects/programmers, Bob Halley and
14303             Paul Vixie released the first production-ready version of
14304             <acronym>BIND</acronym> version 8 in May 1997.
14305           </para>
14306           <para>
14307             BIND version 9 was released in September 2000 and is a
14308             major rewrite of nearly all aspects of the underlying
14309             BIND architecture.
14310           </para>
14311           <para>
14312             BIND versions 4 and 8 are officially deprecated.
14313             No additional development is done
14314             on BIND version 4 or BIND version 8.
14315           </para>
14316           <para>
14317             <acronym>BIND</acronym> development work is made
14318             possible today by the sponsorship
14319             of several corporations, and by the tireless work efforts of
14320             numerous individuals.
14321           </para>
14322         </sect2>
14323       </sect1>
14324       <sect1>
14325         <title>General <acronym>DNS</acronym> Reference Information</title>
14326         <sect2 id="ipv6addresses">
14327           <title>IPv6 addresses (AAAA)</title>
14328           <para>
14329             IPv6 addresses are 128-bit identifiers for interfaces and
14330             sets of interfaces which were introduced in the <acronym>DNS</acronym> to facilitate
14331             scalable Internet routing. There are three types of addresses: <emphasis>Unicast</emphasis>,
14332             an identifier for a single interface;
14333             <emphasis>Anycast</emphasis>,
14334             an identifier for a set of interfaces; and <emphasis>Multicast</emphasis>,
14335             an identifier for a set of interfaces. Here we describe the global
14336             Unicast address scheme. For more information, see RFC 3587,
14337             "Global Unicast Address Format."
14338           </para>
14339           <para>
14340             IPv6 unicast addresses consist of a
14341             <emphasis>global routing prefix</emphasis>, a
14342             <emphasis>subnet identifier</emphasis>, and an
14343             <emphasis>interface identifier</emphasis>.
14344           </para>
14345           <para>
14346             The global routing prefix is provided by the
14347             upstream provider or ISP, and (roughly) corresponds to the
14348             IPv4 <emphasis>network</emphasis> section
14349             of the address range.
14351             The subnet identifier is for local subnetting, much the
14352             same as subnetting an
14353             IPv4 /16 network into /24 subnets.
14355             The interface identifier is the address of an individual
14356             interface on a given network; in IPv6, addresses belong to
14357             interfaces rather than to machines.
14358           </para>
14359           <para>
14360             The subnetting capability of IPv6 is much more flexible than
14361             that of IPv4: subnetting can be carried out on bit boundaries,
14362             in much the same way as Classless InterDomain Routing
14363             (CIDR), and the DNS PTR representation ("nibble" format)
14364             makes setting up reverse zones easier.
14365           </para>
14366           <para>
14367             The Interface Identifier must be unique on the local link,
14368             and is usually generated automatically by the IPv6
14369             implementation, although it is usually possible to
14370             override the default setting if necessary.  A typical IPv6
14371             address might look like:
14372             <command>2001:db8:201:9:a00:20ff:fe81:2b32</command>
14373           </para>
14374           <para>
14375             IPv6 address specifications often contain long strings
14376             of zeros, so the architects have included a shorthand for
14377             specifying
14378             them. The double colon (`::') indicates the longest possible
14379             string
14380             of zeros that can fit, and can be used only once in an address.
14381           </para>
14382         </sect2>
14383       </sect1>
14384       <sect1 id="bibliography">
14385         <title>Bibliography (and Suggested Reading)</title>
14386         <sect2 id="rfcs">
14387           <title>Request for Comments (RFCs)</title>
14388           <para>
14389             Specification documents for the Internet protocol suite, including
14390             the <acronym>DNS</acronym>, are published as part of
14391             the Request for Comments (RFCs)
14392             series of technical notes. The standards themselves are defined
14393             by the Internet Engineering Task Force (IETF) and the Internet
14394             Engineering Steering Group (IESG). RFCs can be obtained online via FTP at:
14395           </para>
14396           <para>
14397             <ulink url="ftp://www.isi.edu/in-notes/">
14398               ftp://www.isi.edu/in-notes/RFC<replaceable>xxxx</replaceable>.txt
14399             </ulink>
14400           </para>
14401           <para>
14402             (where <replaceable>xxxx</replaceable> is
14403             the number of the RFC). RFCs are also available via the Web at:
14404           </para>
14405           <para>
14406             <ulink url="http://www.ietf.org/rfc/"
14407                        >http://www.ietf.org/rfc/</ulink>.
14408           </para>
14409           <bibliography>
14410             <bibliodiv>
14411               <!-- one of (BIBLIOENTRY BIBLIOMIXED) -->
14412               <title>Standards</title>
14413               <biblioentry>
14414                 <abbrev>RFC974</abbrev>
14415                 <author>
14416                   <surname>Partridge</surname>
14417                   <firstname>C.</firstname>
14418                 </author>
14419                 <title>Mail Routing and the Domain System</title>
14420                 <pubdate>January 1986</pubdate>
14421               </biblioentry>
14422               <biblioentry>
14423                 <abbrev>RFC1034</abbrev>
14424                 <author>
14425                   <surname>Mockapetris</surname>
14426                   <firstname>P.V.</firstname>
14427                 </author>
14428                 <title>Domain Names &mdash; Concepts and Facilities</title>
14429                 <pubdate>November 1987</pubdate>
14430               </biblioentry>
14431               <biblioentry>
14432                 <abbrev>RFC1035</abbrev>
14433                 <author>
14434                   <surname>Mockapetris</surname>
14435                   <firstname>P. V.</firstname>
14436                   </author> <title>Domain Names &mdash; Implementation and
14437                   Specification</title>
14438                 <pubdate>November 1987</pubdate>
14439               </biblioentry>
14440             </bibliodiv>
14441             <bibliodiv id="proposed_standards" xreflabel="Proposed Standards">
14443               <title>Proposed Standards</title>
14444               <!-- one of (BIBLIOENTRY BIBLIOMIXED) -->
14445               <biblioentry>
14446                 <abbrev>RFC2181</abbrev>
14447                 <author>
14448                   <surname>Elz</surname>
14449                   <firstname>R., R. Bush</firstname>
14450                 </author>
14451                 <title>Clarifications to the <acronym>DNS</acronym>
14452                   Specification</title>
14453                 <pubdate>July 1997</pubdate>
14454               </biblioentry>
14455               <biblioentry>
14456                 <abbrev>RFC2308</abbrev>
14457                 <author>
14458                   <surname>Andrews</surname>
14459                   <firstname>M.</firstname>
14460                 </author>
14461                 <title>Negative Caching of <acronym>DNS</acronym>
14462                   Queries</title>
14463                 <pubdate>March 1998</pubdate>
14464               </biblioentry>
14465               <biblioentry>
14466                 <abbrev>RFC1995</abbrev>
14467                 <author>
14468                   <surname>Ohta</surname>
14469                   <firstname>M.</firstname>
14470                 </author>
14471                 <title>Incremental Zone Transfer in <acronym>DNS</acronym></title>
14472                 <pubdate>August 1996</pubdate>
14473               </biblioentry>
14474               <biblioentry>
14475                 <abbrev>RFC1996</abbrev>
14476                 <author>
14477                   <surname>Vixie</surname>
14478                   <firstname>P.</firstname>
14479                 </author>
14480                 <title>A Mechanism for Prompt Notification of Zone Changes</title>
14481                 <pubdate>August 1996</pubdate>
14482               </biblioentry>
14483               <biblioentry>
14484                 <abbrev>RFC2136</abbrev>
14485                 <authorgroup>
14486                   <author>
14487                     <surname>Vixie</surname>
14488                     <firstname>P.</firstname>
14489                   </author>
14490                   <author>
14491                     <firstname>S.</firstname>
14492                     <surname>Thomson</surname>
14493                   </author>
14494                   <author>
14495                     <firstname>Y.</firstname>
14496                     <surname>Rekhter</surname>
14497                   </author>
14498                   <author>
14499                     <firstname>J.</firstname>
14500                     <surname>Bound</surname>
14501                   </author>
14502                 </authorgroup>
14503                 <title>Dynamic Updates in the Domain Name System</title>
14504                 <pubdate>April 1997</pubdate>
14505               </biblioentry>
14506               <biblioentry>
14507                 <abbrev>RFC2671</abbrev>
14508                 <authorgroup>
14509                   <author>
14510                     <firstname>P.</firstname>
14511                     <surname>Vixie</surname>
14512                   </author>
14513                 </authorgroup>
14514                 <title>Extension Mechanisms for DNS (EDNS0)</title>
14515                 <pubdate>August 1997</pubdate>
14516               </biblioentry>
14517               <biblioentry>
14518                 <abbrev>RFC2672</abbrev>
14519                 <authorgroup>
14520                   <author>
14521                     <firstname>M.</firstname>
14522                     <surname>Crawford</surname>
14523                   </author>
14524                 </authorgroup>
14525                 <title>Non-Terminal DNS Name Redirection</title>
14526                 <pubdate>August 1999</pubdate>
14527               </biblioentry>
14528               <biblioentry>
14529                 <abbrev>RFC2845</abbrev>
14530                 <authorgroup>
14531                   <author>
14532                     <surname>Vixie</surname>
14533                     <firstname>P.</firstname>
14534                   </author>
14535                   <author>
14536                     <firstname>O.</firstname>
14537                     <surname>Gudmundsson</surname>
14538                   </author>
14539                   <author>
14540                     <firstname>D.</firstname>
14541                     <surname>Eastlake</surname>
14542                     <lineage>3rd</lineage>
14543                   </author>
14544                   <author>
14545                     <firstname>B.</firstname>
14546                     <surname>Wellington</surname>
14547                   </author>
14548                 </authorgroup>
14549                 <title>Secret Key Transaction Authentication for <acronym>DNS</acronym> (TSIG)</title>
14550                 <pubdate>May 2000</pubdate>
14551               </biblioentry>
14552               <biblioentry>
14553                 <abbrev>RFC2930</abbrev>
14554                 <authorgroup>
14555                   <author>
14556                     <firstname>D.</firstname>
14557                     <surname>Eastlake</surname>
14558                     <lineage>3rd</lineage>
14559                   </author>
14560                 </authorgroup>
14561                 <title>Secret Key Establishment for DNS (TKEY RR)</title>
14562                 <pubdate>September 2000</pubdate>
14563               </biblioentry>
14564               <biblioentry>
14565                 <abbrev>RFC2931</abbrev>
14566                 <authorgroup>
14567                   <author>
14568                     <firstname>D.</firstname>
14569                     <surname>Eastlake</surname>
14570                     <lineage>3rd</lineage>
14571                   </author>
14572                 </authorgroup>
14573                 <title>DNS Request and Transaction Signatures (SIG(0)s)</title>
14574                 <pubdate>September 2000</pubdate>
14575               </biblioentry>
14576               <biblioentry>
14577                 <abbrev>RFC3007</abbrev>
14578                 <authorgroup>
14579                   <author>
14580                     <firstname>B.</firstname>
14581                     <surname>Wellington</surname>
14582                   </author>
14583                 </authorgroup>
14584                 <title>Secure Domain Name System (DNS) Dynamic Update</title>
14585                 <pubdate>November 2000</pubdate>
14586               </biblioentry>
14587               <biblioentry>
14588                 <abbrev>RFC3645</abbrev>
14589                 <authorgroup>
14590                   <author>
14591                     <firstname>S.</firstname>
14592                     <surname>Kwan</surname>
14593                   </author>
14594                   <author>
14595                     <firstname>P.</firstname>
14596                     <surname>Garg</surname>
14597                   </author>
14598                   <author>
14599                     <firstname>J.</firstname>
14600                     <surname>Gilroy</surname>
14601                   </author>
14602                   <author>
14603                     <firstname>L.</firstname>
14604                     <surname>Esibov</surname>
14605                   </author>
14606                   <author>
14607                     <firstname>J.</firstname>
14608                     <surname>Westhead</surname>
14609                   </author>
14610                   <author>
14611                     <firstname>R.</firstname>
14612                     <surname>Hall</surname>
14613                   </author>
14614                 </authorgroup>
14615                 <title>Generic Security Service Algorithm for Secret
14616                        Key Transaction Authentication for DNS
14617                        (GSS-TSIG)</title>
14618                 <pubdate>October 2003</pubdate>
14619               </biblioentry>
14620             </bibliodiv>
14621             <bibliodiv>
14622               <title><acronym>DNS</acronym> Security Proposed Standards</title>
14623               <biblioentry>
14624                 <abbrev>RFC3225</abbrev>
14625                 <authorgroup>
14626                   <author>
14627                     <firstname>D.</firstname>
14628                     <surname>Conrad</surname>
14629                   </author>
14630                 </authorgroup>
14631                 <title>Indicating Resolver Support of DNSSEC</title>
14632                 <pubdate>December 2001</pubdate>
14633               </biblioentry>
14634               <biblioentry>
14635                 <abbrev>RFC3833</abbrev>
14636                 <authorgroup>
14637                   <author>
14638                     <firstname>D.</firstname>
14639                     <surname>Atkins</surname>
14640                   </author>
14641                   <author>
14642                     <firstname>R.</firstname>
14643                     <surname>Austein</surname>
14644                   </author>
14645                 </authorgroup>
14646                 <title>Threat Analysis of the Domain Name System (DNS)</title>
14647                 <pubdate>August 2004</pubdate>
14648               </biblioentry>
14649               <biblioentry>
14650                 <abbrev>RFC4033</abbrev>
14651                 <authorgroup>
14652                   <author>
14653                     <firstname>R.</firstname>
14654                     <surname>Arends</surname>
14655                   </author>
14656                   <author>
14657                     <firstname>R.</firstname>
14658                     <surname>Austein</surname>
14659                   </author>
14660                   <author>
14661                     <firstname>M.</firstname>
14662                     <surname>Larson</surname>
14663                   </author>
14664                   <author>
14665                     <firstname>D.</firstname>
14666                     <surname>Massey</surname>
14667                   </author>
14668                   <author>
14669                     <firstname>S.</firstname>
14670                     <surname>Rose</surname>
14671                   </author>
14672                 </authorgroup>
14673                 <title>DNS Security Introduction and Requirements</title>
14674                 <pubdate>March 2005</pubdate>
14675               </biblioentry>
14676               <biblioentry>
14677                 <abbrev>RFC4034</abbrev>
14678                 <authorgroup>
14679                   <author>
14680                     <firstname>R.</firstname>
14681                     <surname>Arends</surname>
14682                   </author>
14683                   <author>
14684                     <firstname>R.</firstname>
14685                     <surname>Austein</surname>
14686                   </author>
14687                   <author>
14688                     <firstname>M.</firstname>
14689                     <surname>Larson</surname>
14690                   </author>
14691                   <author>
14692                     <firstname>D.</firstname>
14693                     <surname>Massey</surname>
14694                   </author>
14695                   <author>
14696                     <firstname>S.</firstname>
14697                     <surname>Rose</surname>
14698                   </author>
14699                 </authorgroup>
14700                 <title>Resource Records for the DNS Security Extensions</title>
14701                 <pubdate>March 2005</pubdate>
14702               </biblioentry>
14703               <biblioentry>
14704                 <abbrev>RFC4035</abbrev>
14705                 <authorgroup>
14706                   <author>
14707                     <firstname>R.</firstname>
14708                     <surname>Arends</surname>
14709                   </author>
14710                   <author>
14711                     <firstname>R.</firstname>
14712                     <surname>Austein</surname>
14713                   </author>
14714                   <author>
14715                     <firstname>M.</firstname>
14716                     <surname>Larson</surname>
14717                   </author>
14718                   <author>
14719                     <firstname>D.</firstname>
14720                     <surname>Massey</surname>
14721                   </author>
14722                   <author>
14723                     <firstname>S.</firstname>
14724                     <surname>Rose</surname>
14725                   </author>
14726                 </authorgroup>
14727                 <title>Protocol Modifications for the DNS
14728                        Security Extensions</title>
14729                 <pubdate>March 2005</pubdate>
14730               </biblioentry>
14731             </bibliodiv>
14732             <bibliodiv>
14733               <title>Other Important RFCs About <acronym>DNS</acronym>
14734                 Implementation</title>
14735               <biblioentry>
14736                 <abbrev>RFC1535</abbrev>
14737                 <author>
14738                   <surname>Gavron</surname>
14739                   <firstname>E.</firstname>
14740                 </author>
14741                 <title>A Security Problem and Proposed Correction With Widely
14742                   Deployed <acronym>DNS</acronym> Software.</title>
14743                 <pubdate>October 1993</pubdate>
14744               </biblioentry>
14745               <biblioentry>
14746                 <abbrev>RFC1536</abbrev>
14747                 <authorgroup>
14748                   <author>
14749                     <surname>Kumar</surname>
14750                     <firstname>A.</firstname>
14751                   </author>
14752                   <author>
14753                     <firstname>J.</firstname>
14754                     <surname>Postel</surname>
14755                   </author>
14756                   <author>
14757                     <firstname>C.</firstname>
14758                     <surname>Neuman</surname>
14759                   </author>
14760                   <author>
14761                     <firstname>P.</firstname>
14762                     <surname>Danzig</surname>
14763                   </author>
14764                   <author>
14765                     <firstname>S.</firstname>
14766                     <surname>Miller</surname>
14767                   </author>
14768                 </authorgroup>
14769                 <title>Common <acronym>DNS</acronym> Implementation
14770                   Errors and Suggested Fixes</title>
14771                 <pubdate>October 1993</pubdate>
14772               </biblioentry>
14773               <biblioentry>
14774                 <abbrev>RFC1982</abbrev>
14775                 <authorgroup>
14776                   <author>
14777                     <surname>Elz</surname>
14778                     <firstname>R.</firstname>
14779                   </author>
14780                   <author>
14781                     <firstname>R.</firstname>
14782                     <surname>Bush</surname>
14783                   </author>
14784                 </authorgroup>
14785                 <title>Serial Number Arithmetic</title>
14786                 <pubdate>August 1996</pubdate>
14787               </biblioentry>
14788               <biblioentry>
14789                 <abbrev>RFC4074</abbrev>
14790                 <authorgroup>
14791                   <author>
14792                     <surname>Morishita</surname>
14793                     <firstname>Y.</firstname>
14794                   </author>
14795                   <author>
14796                     <firstname>T.</firstname>
14797                     <surname>Jinmei</surname>
14798                   </author>
14799                 </authorgroup>
14800                 <title>Common Misbehaviour Against <acronym>DNS</acronym>
14801                 Queries for IPv6 Addresses</title>
14802                 <pubdate>May 2005</pubdate>
14803               </biblioentry>
14804             </bibliodiv>
14805             <bibliodiv>
14806               <title>Resource Record Types</title>
14807               <biblioentry>
14808                 <abbrev>RFC1183</abbrev>
14809                 <authorgroup>
14810                   <author>
14811                     <surname>Everhart</surname>
14812                     <firstname>C.F.</firstname>
14813                   </author>
14814                   <author>
14815                     <firstname>L. A.</firstname>
14816                     <surname>Mamakos</surname>
14817                   </author>
14818                   <author>
14819                     <firstname>R.</firstname>
14820                     <surname>Ullmann</surname>
14821                   </author>
14822                   <author>
14823                     <firstname>P.</firstname>
14824                     <surname>Mockapetris</surname>
14825                   </author>
14826                 </authorgroup>
14827                 <title>New <acronym>DNS</acronym> RR Definitions</title>
14828                 <pubdate>October 1990</pubdate>
14829               </biblioentry>
14830               <biblioentry>
14831                 <abbrev>RFC1706</abbrev>
14832                 <authorgroup>
14833                   <author>
14834                     <surname>Manning</surname>
14835                     <firstname>B.</firstname>
14836                   </author>
14837                   <author>
14838                     <firstname>R.</firstname>
14839                     <surname>Colella</surname>
14840                   </author>
14841                 </authorgroup>
14842                 <title><acronym>DNS</acronym> NSAP Resource Records</title>
14843                 <pubdate>October 1994</pubdate>
14844               </biblioentry>
14845               <biblioentry>
14846                 <abbrev>RFC2168</abbrev>
14847                 <authorgroup>
14848                   <author>
14849                     <surname>Daniel</surname>
14850                     <firstname>R.</firstname>
14851                   </author>
14852                   <author>
14853                     <firstname>M.</firstname>
14854                     <surname>Mealling</surname>
14855                   </author>
14856                 </authorgroup>
14857                 <title>Resolution of Uniform Resource Identifiers using
14858                   the Domain Name System</title>
14859                 <pubdate>June 1997</pubdate>
14860               </biblioentry>
14861               <biblioentry>
14862                 <abbrev>RFC1876</abbrev>
14863                 <authorgroup>
14864                   <author>
14865                     <surname>Davis</surname>
14866                     <firstname>C.</firstname>
14867                   </author>
14868                   <author>
14869                     <firstname>P.</firstname>
14870                     <surname>Vixie</surname>
14871                   </author>
14872                   <author>
14873                     <firstname>T.</firstname>
14874                     <firstname>Goodwin</firstname>
14875                   </author>
14876                   <author>
14877                     <firstname>I.</firstname>
14878                     <surname>Dickinson</surname>
14879                   </author>
14880                 </authorgroup>
14881                 <title>A Means for Expressing Location Information in the
14882                   Domain
14883                   Name System</title>
14884                 <pubdate>January 1996</pubdate>
14885               </biblioentry>
14886               <biblioentry>
14887                 <abbrev>RFC2052</abbrev>
14888                 <authorgroup>
14889                   <author>
14890                     <surname>Gulbrandsen</surname>
14891                     <firstname>A.</firstname>
14892                   </author>
14893                   <author>
14894                     <firstname>P.</firstname>
14895                     <surname>Vixie</surname>
14896                   </author>
14897                 </authorgroup>
14898                 <title>A <acronym>DNS</acronym> RR for Specifying the
14899                   Location of
14900                   Services.</title>
14901                 <pubdate>October 1996</pubdate>
14902               </biblioentry>
14903               <biblioentry>
14904                 <abbrev>RFC2163</abbrev>
14905                 <author>
14906                   <surname>Allocchio</surname>
14907                   <firstname>A.</firstname>
14908                 </author>
14909                 <title>Using the Internet <acronym>DNS</acronym> to
14910                   Distribute MIXER
14911                   Conformant Global Address Mapping</title>
14912                 <pubdate>January 1998</pubdate>
14913               </biblioentry>
14914               <biblioentry>
14915                 <abbrev>RFC2230</abbrev>
14916                 <author>
14917                   <surname>Atkinson</surname>
14918                   <firstname>R.</firstname>
14919                 </author>
14920                 <title>Key Exchange Delegation Record for the <acronym>DNS</acronym></title>
14921                 <pubdate>October 1997</pubdate>
14922               </biblioentry>
14923               <biblioentry>
14924                 <abbrev>RFC2536</abbrev>
14925                 <author>
14926                   <surname>Eastlake</surname>
14927                   <firstname>D.</firstname>
14928                   <lineage>3rd</lineage>
14929                 </author>
14930                 <title>DSA KEYs and SIGs in the Domain Name System (DNS)</title>
14931                 <pubdate>March 1999</pubdate>
14932               </biblioentry>
14933               <biblioentry>
14934                 <abbrev>RFC2537</abbrev>
14935                 <author>
14936                   <surname>Eastlake</surname>
14937                   <firstname>D.</firstname>
14938                   <lineage>3rd</lineage>
14939                 </author>
14940                 <title>RSA/MD5 KEYs and SIGs in the Domain Name System (DNS)</title>
14941                 <pubdate>March 1999</pubdate>
14942               </biblioentry>
14943               <biblioentry>
14944                 <abbrev>RFC2538</abbrev>
14945                 <authorgroup>
14946                   <author>
14947                     <surname>Eastlake</surname>
14948                     <firstname>D.</firstname>
14949                     <lineage>3rd</lineage>
14950                   </author>
14951                   <author>
14952                     <surname>Gudmundsson</surname>
14953                     <firstname>O.</firstname>
14954                   </author>
14955                 </authorgroup>
14956                 <title>Storing Certificates in the Domain Name System (DNS)</title>
14957                 <pubdate>March 1999</pubdate>
14958               </biblioentry>
14959               <biblioentry>
14960                 <abbrev>RFC2539</abbrev>
14961                 <authorgroup>
14962                   <author>
14963                     <surname>Eastlake</surname>
14964                     <firstname>D.</firstname>
14965                     <lineage>3rd</lineage>
14966                   </author>
14967                 </authorgroup>
14968                 <title>Storage of Diffie-Hellman Keys in the Domain Name System (DNS)</title>
14969                 <pubdate>March 1999</pubdate>
14970               </biblioentry>
14971               <biblioentry>
14972                 <abbrev>RFC2540</abbrev>
14973                 <authorgroup>
14974                   <author>
14975                     <surname>Eastlake</surname>
14976                     <firstname>D.</firstname>
14977                     <lineage>3rd</lineage>
14978                   </author>
14979                 </authorgroup>
14980                 <title>Detached Domain Name System (DNS) Information</title>
14981                 <pubdate>March 1999</pubdate>
14982               </biblioentry>
14983               <biblioentry>
14984                 <abbrev>RFC2782</abbrev>
14985                 <author>
14986                   <surname>Gulbrandsen</surname>
14987                   <firstname>A.</firstname>
14988                 </author>
14989                 <author>
14990                   <surname>Vixie</surname>
14991                   <firstname>P.</firstname>
14992                 </author>
14993                 <author>
14994                   <surname>Esibov</surname>
14995                   <firstname>L.</firstname>
14996                 </author>
14997                 <title>A DNS RR for specifying the location of services (DNS SRV)</title>
14998                 <pubdate>February 2000</pubdate>
14999               </biblioentry>
15000               <biblioentry>
15001                 <abbrev>RFC2915</abbrev>
15002                 <author>
15003                   <surname>Mealling</surname>
15004                   <firstname>M.</firstname>
15005                 </author>
15006                 <author>
15007                   <surname>Daniel</surname>
15008                   <firstname>R.</firstname>
15009                 </author>
15010                 <title>The Naming Authority Pointer (NAPTR) DNS Resource Record</title>
15011                 <pubdate>September 2000</pubdate>
15012               </biblioentry>
15013               <biblioentry>
15014                 <abbrev>RFC3110</abbrev>
15015                 <author>
15016                     <surname>Eastlake</surname>
15017                     <firstname>D.</firstname>
15018                     <lineage>3rd</lineage>
15019                 </author>
15020                 <title>RSA/SHA-1 SIGs and RSA KEYs in the Domain Name System (DNS)</title>
15021                 <pubdate>May 2001</pubdate>
15022               </biblioentry>
15023               <biblioentry>
15024                 <abbrev>RFC3123</abbrev>
15025                 <author>
15026                   <surname>Koch</surname>
15027                   <firstname>P.</firstname>
15028                 </author>
15029                 <title>A DNS RR Type for Lists of Address Prefixes (APL RR)</title>
15030                 <pubdate>June 2001</pubdate>
15031               </biblioentry>
15032               <biblioentry>
15033                 <abbrev>RFC3596</abbrev>
15034                 <authorgroup>
15035                   <author>
15036                     <surname>Thomson</surname>
15037                     <firstname>S.</firstname>
15038                   </author>
15039                   <author>
15040                     <firstname>C.</firstname>
15041                     <surname>Huitema</surname>
15042                   </author>
15043                   <author>
15044                     <firstname>V.</firstname>
15045                     <surname>Ksinant</surname>
15046                   </author>
15047                   <author>
15048                     <firstname>M.</firstname>
15049                     <surname>Souissi</surname>
15050                   </author>
15051                 </authorgroup>
15052                 <title><acronym>DNS</acronym> Extensions to support IP
15053                   version 6</title>
15054                 <pubdate>October 2003</pubdate>
15055               </biblioentry>
15056               <biblioentry>
15057                 <abbrev>RFC3597</abbrev>
15058                 <author>
15059                   <surname>Gustafsson</surname>
15060                   <firstname>A.</firstname>
15061                 </author>
15062                 <title>Handling of Unknown DNS Resource Record (RR) Types</title>
15063                 <pubdate>September 2003</pubdate>
15064               </biblioentry>
15065             </bibliodiv>
15066             <bibliodiv>
15067               <title><acronym>DNS</acronym> and the Internet</title>
15068               <biblioentry>
15069                 <abbrev>RFC1101</abbrev>
15070                 <author>
15071                   <surname>Mockapetris</surname>
15072                   <firstname>P. V.</firstname>
15073                 </author>
15074                 <title><acronym>DNS</acronym> Encoding of Network Names
15075                   and Other Types</title>
15076                 <pubdate>April 1989</pubdate>
15077               </biblioentry>
15078               <biblioentry>
15079                 <abbrev>RFC1123</abbrev>
15080                 <author>
15081                   <surname>Braden</surname>
15082                   <surname>R.</surname>
15083                 </author>
15084                 <title>Requirements for Internet Hosts - Application and
15085                   Support</title>
15086                 <pubdate>October 1989</pubdate>
15087               </biblioentry>
15088               <biblioentry>
15089                 <abbrev>RFC1591</abbrev>
15090                 <author>
15091                   <surname>Postel</surname>
15092                   <firstname>J.</firstname>
15093                 </author>
15094                 <title>Domain Name System Structure and Delegation</title>
15095                 <pubdate>March 1994</pubdate>
15096               </biblioentry>
15097               <biblioentry>
15098                 <abbrev>RFC2317</abbrev>
15099                 <authorgroup>
15100                   <author>
15101                     <surname>Eidnes</surname>
15102                     <firstname>H.</firstname>
15103                   </author>
15104                   <author>
15105                     <firstname>G.</firstname>
15106                     <surname>de Groot</surname>
15107                   </author>
15108                   <author>
15109                     <firstname>P.</firstname>
15110                     <surname>Vixie</surname>
15111                   </author>
15112                 </authorgroup>
15113                 <title>Classless IN-ADDR.ARPA Delegation</title>
15114                 <pubdate>March 1998</pubdate>
15115               </biblioentry>
15116               <biblioentry>
15117                 <abbrev>RFC2826</abbrev>
15118                 <authorgroup>
15119                   <author>
15120                     <surname>Internet Architecture Board</surname>
15121                   </author>
15122                 </authorgroup>
15123                 <title>IAB Technical Comment on the Unique DNS Root</title>
15124                 <pubdate>May 2000</pubdate>
15125               </biblioentry>
15126               <biblioentry>
15127                 <abbrev>RFC2929</abbrev>
15128                 <authorgroup>
15129                   <author>
15130                     <surname>Eastlake</surname>
15131                     <firstname>D.</firstname>
15132                     <lineage>3rd</lineage>
15133                   </author>
15134                   <author>
15135                     <surname>Brunner-Williams</surname>
15136                     <firstname>E.</firstname>
15137                   </author>
15138                   <author>
15139                     <surname>Manning</surname>
15140                     <firstname>B.</firstname>
15141                   </author>
15142                 </authorgroup>
15143                 <title>Domain Name System (DNS) IANA Considerations</title>
15144                 <pubdate>September 2000</pubdate>
15145               </biblioentry>
15146             </bibliodiv>
15147             <bibliodiv>
15148               <title><acronym>DNS</acronym> Operations</title>
15149               <biblioentry>
15150                 <abbrev>RFC1033</abbrev>
15151                 <author>
15152                   <surname>Lottor</surname>
15153                   <firstname>M.</firstname>
15154                 </author>
15155                 <title>Domain administrators operations guide.</title>
15156                 <pubdate>November 1987</pubdate>
15157               </biblioentry>
15158               <biblioentry>
15159                 <abbrev>RFC1537</abbrev>
15160                 <author>
15161                   <surname>Beertema</surname>
15162                   <firstname>P.</firstname>
15163                 </author>
15164                 <title>Common <acronym>DNS</acronym> Data File
15165                   Configuration Errors</title>
15166                 <pubdate>October 1993</pubdate>
15167               </biblioentry>
15168               <biblioentry>
15169                 <abbrev>RFC1912</abbrev>
15170                 <author>
15171                   <surname>Barr</surname>
15172                   <firstname>D.</firstname>
15173                 </author>
15174                 <title>Common <acronym>DNS</acronym> Operational and
15175                   Configuration Errors</title>
15176                 <pubdate>February 1996</pubdate>
15177               </biblioentry>
15178               <biblioentry>
15179                 <abbrev>RFC2010</abbrev>
15180                 <authorgroup>
15181                   <author>
15182                     <surname>Manning</surname>
15183                     <firstname>B.</firstname>
15184                   </author>
15185                   <author>
15186                     <firstname>P.</firstname>
15187                     <surname>Vixie</surname>
15188                   </author>
15189                 </authorgroup>
15190                 <title>Operational Criteria for Root Name Servers.</title>
15191                 <pubdate>October 1996</pubdate>
15192               </biblioentry>
15193               <biblioentry>
15194                 <abbrev>RFC2219</abbrev>
15195                 <authorgroup>
15196                   <author>
15197                     <surname>Hamilton</surname>
15198                     <firstname>M.</firstname>
15199                   </author>
15200                   <author>
15201                     <firstname>R.</firstname>
15202                     <surname>Wright</surname>
15203                   </author>
15204                 </authorgroup>
15205                 <title>Use of <acronym>DNS</acronym> Aliases for
15206                   Network Services.</title>
15207                 <pubdate>October 1997</pubdate>
15208               </biblioentry>
15209             </bibliodiv>
15210             <bibliodiv>
15211               <title>Internationalized Domain Names</title>
15212               <biblioentry>
15213                 <abbrev>RFC2825</abbrev>
15214                 <authorgroup>
15215                   <author>
15216                     <surname>IAB</surname>
15217                   </author>
15218                   <author>
15219                     <surname>Daigle</surname>
15220                     <firstname>R.</firstname>
15221                   </author>
15222                 </authorgroup>
15223                 <title>A Tangled Web: Issues of I18N, Domain Names,
15224                        and the Other Internet protocols</title>
15225                 <pubdate>May 2000</pubdate>
15226               </biblioentry>
15227               <biblioentry>
15228                 <abbrev>RFC3490</abbrev>
15229                 <authorgroup>
15230                   <author>
15231                     <surname>Faltstrom</surname>
15232                     <firstname>P.</firstname>
15233                   </author>
15234                   <author>
15235                     <surname>Hoffman</surname>
15236                     <firstname>P.</firstname>
15237                   </author>
15238                   <author>
15239                     <surname>Costello</surname>
15240                     <firstname>A.</firstname>
15241                   </author>
15242                 </authorgroup>
15243                 <title>Internationalizing Domain Names in Applications (IDNA)</title>
15244                 <pubdate>March 2003</pubdate>
15245               </biblioentry>
15246               <biblioentry>
15247                 <abbrev>RFC3491</abbrev>
15248                 <authorgroup>
15249                   <author>
15250                     <surname>Hoffman</surname>
15251                     <firstname>P.</firstname>
15252                   </author>
15253                   <author>
15254                     <surname>Blanchet</surname>
15255                     <firstname>M.</firstname>
15256                   </author>
15257                 </authorgroup>
15258                 <title>Nameprep: A Stringprep Profile for Internationalized Domain Names</title>
15259                 <pubdate>March 2003</pubdate>
15260               </biblioentry>
15261               <biblioentry>
15262                 <abbrev>RFC3492</abbrev>
15263                 <authorgroup>
15264                   <author>
15265                     <surname>Costello</surname>
15266                     <firstname>A.</firstname>
15267                   </author>
15268                 </authorgroup>
15269                 <title>Punycode: A Bootstring encoding of Unicode
15270                        for Internationalized Domain Names in
15271                        Applications (IDNA)</title>
15272                 <pubdate>March 2003</pubdate>
15273               </biblioentry>
15274             </bibliodiv>
15275             <bibliodiv>
15276               <title>Other <acronym>DNS</acronym>-related RFCs</title>
15277               <note>
15278                 <para>
15279                   Note: the following list of RFCs, although
15280                   <acronym>DNS</acronym>-related, are not
15281                   concerned with implementing software.
15282                 </para>
15283               </note>
15284               <biblioentry>
15285                 <abbrev>RFC1464</abbrev>
15286                 <author>
15287                   <surname>Rosenbaum</surname>
15288                   <firstname>R.</firstname>
15289                 </author>
15290                 <title>Using the Domain Name System To Store Arbitrary String
15291                   Attributes</title>
15292                 <pubdate>May 1993</pubdate>
15293               </biblioentry>
15294               <biblioentry>
15295                 <abbrev>RFC1713</abbrev>
15296                 <author>
15297                   <surname>Romao</surname>
15298                   <firstname>A.</firstname>
15299                 </author>
15300                 <title>Tools for <acronym>DNS</acronym> Debugging</title>
15301                 <pubdate>November 1994</pubdate>
15302               </biblioentry>
15303               <biblioentry>
15304                 <abbrev>RFC1794</abbrev>
15305                 <author>
15306                   <surname>Brisco</surname>
15307                   <firstname>T.</firstname>
15308                 </author>
15309                 <title><acronym>DNS</acronym> Support for Load
15310                   Balancing</title>
15311                 <pubdate>April 1995</pubdate>
15312               </biblioentry>
15313               <biblioentry>
15314                 <abbrev>RFC2240</abbrev>
15315                 <author>
15316                   <surname>Vaughan</surname>
15317                   <firstname>O.</firstname>
15318                 </author>
15319                 <title>A Legal Basis for Domain Name Allocation</title>
15320                 <pubdate>November 1997</pubdate>
15321               </biblioentry>
15322               <biblioentry>
15323                 <abbrev>RFC2345</abbrev>
15324                 <authorgroup>
15325                   <author>
15326                     <surname>Klensin</surname>
15327                     <firstname>J.</firstname>
15328                   </author>
15329                   <author>
15330                     <firstname>T.</firstname>
15331                     <surname>Wolf</surname>
15332                   </author>
15333                   <author>
15334                     <firstname>G.</firstname>
15335                     <surname>Oglesby</surname>
15336                   </author>
15337                 </authorgroup>
15338                 <title>Domain Names and Company Name Retrieval</title>
15339                 <pubdate>May 1998</pubdate>
15340               </biblioentry>
15341               <biblioentry>
15342                 <abbrev>RFC2352</abbrev>
15343                 <author>
15344                   <surname>Vaughan</surname>
15345                   <firstname>O.</firstname>
15346                 </author>
15347                 <title>A Convention For Using Legal Names as Domain Names</title>
15348                 <pubdate>May 1998</pubdate>
15349               </biblioentry>
15350               <biblioentry>
15351                 <abbrev>RFC3071</abbrev>
15352                 <authorgroup>
15353                   <author>
15354                     <surname>Klensin</surname>
15355                     <firstname>J.</firstname>
15356                   </author>
15357                 </authorgroup>
15358                 <title>Reflections on the DNS, RFC 1591, and Categories of Domains</title>
15359                 <pubdate>February 2001</pubdate>
15360               </biblioentry>
15361               <biblioentry>
15362                 <abbrev>RFC3258</abbrev>
15363                 <authorgroup>
15364                   <author>
15365                     <surname>Hardie</surname>
15366                     <firstname>T.</firstname>
15367                   </author>
15368                 </authorgroup>
15369                 <title>Distributing Authoritative Name Servers via
15370                        Shared Unicast Addresses</title>
15371                 <pubdate>April 2002</pubdate>
15372               </biblioentry>
15373               <biblioentry>
15374                 <abbrev>RFC3901</abbrev>
15375                 <authorgroup>
15376                   <author>
15377                     <surname>Durand</surname>
15378                     <firstname>A.</firstname>
15379                   </author>
15380                   <author>
15381                     <firstname>J.</firstname>
15382                     <surname>Ihren</surname>
15383                   </author>
15384                 </authorgroup>
15385                 <title>DNS IPv6 Transport Operational Guidelines</title>
15386                 <pubdate>September 2004</pubdate>
15387               </biblioentry>
15388             </bibliodiv>
15389             <bibliodiv>
15390               <title>Obsolete and Unimplemented Experimental RFC</title>
15391               <biblioentry>
15392                 <abbrev>RFC1712</abbrev>
15393                 <authorgroup>
15394                   <author>
15395                     <surname>Farrell</surname>
15396                     <firstname>C.</firstname>
15397                   </author>
15398                   <author>
15399                     <firstname>M.</firstname>
15400                     <surname>Schulze</surname>
15401                   </author>
15402                   <author>
15403                     <firstname>S.</firstname>
15404                     <surname>Pleitner</surname>
15405                   </author>
15406                   <author>
15407                     <firstname>D.</firstname>
15408                     <surname>Baldoni</surname>
15409                   </author>
15410                 </authorgroup>
15411                 <title><acronym>DNS</acronym> Encoding of Geographical
15412                   Location</title>
15413                 <pubdate>November 1994</pubdate>
15414               </biblioentry>
15415               <biblioentry>
15416                 <abbrev>RFC2673</abbrev>
15417                 <authorgroup>
15418                   <author>
15419                     <surname>Crawford</surname>
15420                     <firstname>M.</firstname>
15421                   </author>
15422                 </authorgroup>
15423                 <title>Binary Labels in the Domain Name System</title>
15424                 <pubdate>August 1999</pubdate>
15425               </biblioentry>
15426               <biblioentry>
15427                 <abbrev>RFC2874</abbrev>
15428                 <authorgroup>
15429                   <author>
15430                     <surname>Crawford</surname>
15431                     <firstname>M.</firstname>
15432                   </author>
15433                   <author>
15434                     <surname>Huitema</surname>
15435                     <firstname>C.</firstname>
15436                   </author>
15437                 </authorgroup>
15438                 <title>DNS Extensions to Support IPv6 Address Aggregation
15439                        and Renumbering</title>
15440                 <pubdate>July 2000</pubdate>
15441               </biblioentry>
15442             </bibliodiv>
15443             <bibliodiv>
15444               <title>Obsoleted DNS Security RFCs</title>
15445               <note>
15446                 <para>
15447                   Most of these have been consolidated into RFC4033,
15448                   RFC4034 and RFC4035 which collectively describe DNSSECbis.
15449                 </para>
15450               </note>
15451               <biblioentry>
15452                 <abbrev>RFC2065</abbrev>
15453                 <authorgroup>
15454                   <author>
15455                     <surname>Eastlake</surname>
15456                     <lineage>3rd</lineage>
15457                     <firstname>D.</firstname>
15458                   </author>
15459                   <author>
15460                     <firstname>C.</firstname>
15461                     <surname>Kaufman</surname>
15462                   </author>
15463                 </authorgroup>
15464                 <title>Domain Name System Security Extensions</title>
15465                 <pubdate>January 1997</pubdate>
15466               </biblioentry>
15467               <biblioentry>
15468                 <abbrev>RFC2137</abbrev>
15469                 <author>
15470                   <surname>Eastlake</surname>
15471                   <lineage>3rd</lineage>
15472                   <firstname>D.</firstname>
15473                 </author>
15474                 <title>Secure Domain Name System Dynamic Update</title>
15475                 <pubdate>April 1997</pubdate>
15476               </biblioentry>
15477               <biblioentry>
15478                 <abbrev>RFC2535</abbrev>
15479                 <authorgroup>
15480                   <author>
15481                     <surname>Eastlake</surname>
15482                     <lineage>3rd</lineage>
15483                     <firstname>D.</firstname>
15484                   </author>
15485                 </authorgroup>
15486                 <title>Domain Name System Security Extensions</title>
15487                 <pubdate>March 1999</pubdate>
15488               </biblioentry>
15489               <biblioentry>
15490                 <abbrev>RFC3008</abbrev>
15491                 <authorgroup>
15492                   <author>
15493                     <surname>Wellington</surname>
15494                     <firstname>B.</firstname>
15495                   </author>
15496                 </authorgroup>
15497                 <title>Domain Name System Security (DNSSEC)
15498                        Signing Authority</title>
15499                 <pubdate>November 2000</pubdate>
15500               </biblioentry>
15501               <biblioentry>
15502                 <abbrev>RFC3090</abbrev>
15503                 <authorgroup>
15504                   <author>
15505                     <surname>Lewis</surname>
15506                     <firstname>E.</firstname>
15507                   </author>
15508                 </authorgroup>
15509                 <title>DNS Security Extension Clarification on Zone Status</title>
15510                 <pubdate>March 2001</pubdate>
15511               </biblioentry>
15512               <biblioentry>
15513                 <abbrev>RFC3445</abbrev>
15514                 <authorgroup>
15515                   <author>
15516                     <surname>Massey</surname>
15517                     <firstname>D.</firstname>
15518                   </author>
15519                   <author>
15520                     <surname>Rose</surname>
15521                     <firstname>S.</firstname>
15522                   </author>
15523                 </authorgroup>
15524                 <title>Limiting the Scope of the KEY Resource Record (RR)</title>
15525                 <pubdate>December 2002</pubdate>
15526               </biblioentry>
15527               <biblioentry>
15528                 <abbrev>RFC3655</abbrev>
15529                 <authorgroup>
15530                   <author>
15531                     <surname>Wellington</surname>
15532                     <firstname>B.</firstname>
15533                   </author>
15534                   <author>
15535                     <surname>Gudmundsson</surname>
15536                     <firstname>O.</firstname>
15537                   </author>
15538                 </authorgroup>
15539                 <title>Redefinition of DNS Authenticated Data (AD) bit</title>
15540                 <pubdate>November 2003</pubdate>
15541               </biblioentry>
15542               <biblioentry>
15543                 <abbrev>RFC3658</abbrev>
15544                 <authorgroup>
15545                   <author>
15546                     <surname>Gudmundsson</surname>
15547                     <firstname>O.</firstname>
15548                   </author>
15549                 </authorgroup>
15550                 <title>Delegation Signer (DS) Resource Record (RR)</title>
15551                 <pubdate>December 2003</pubdate>
15552               </biblioentry>
15553               <biblioentry>
15554                 <abbrev>RFC3755</abbrev>
15555                 <authorgroup>
15556                   <author>
15557                     <surname>Weiler</surname>
15558                     <firstname>S.</firstname>
15559                   </author>
15560                 </authorgroup>
15561                 <title>Legacy Resolver Compatibility for Delegation Signer (DS)</title>
15562                 <pubdate>May 2004</pubdate>
15563               </biblioentry>
15564               <biblioentry>
15565                 <abbrev>RFC3757</abbrev>
15566                 <authorgroup>
15567                   <author>
15568                     <surname>Kolkman</surname>
15569                     <firstname>O.</firstname>
15570                   </author>
15571                   <author>
15572                     <surname>Schlyter</surname>
15573                     <firstname>J.</firstname>
15574                   </author>
15575                   <author>
15576                     <surname>Lewis</surname>
15577                     <firstname>E.</firstname>
15578                   </author>
15579                 </authorgroup>
15580                 <title>Domain Name System KEY (DNSKEY) Resource Record
15581                       (RR) Secure Entry Point (SEP) Flag</title>
15582                 <pubdate>April 2004</pubdate>
15583               </biblioentry>
15584               <biblioentry>
15585                 <abbrev>RFC3845</abbrev>
15586                 <authorgroup>
15587                   <author>
15588                     <surname>Schlyter</surname>
15589                     <firstname>J.</firstname>
15590                   </author>
15591                 </authorgroup>
15592                 <title>DNS Security (DNSSEC) NextSECure (NSEC) RDATA Format</title>
15593                 <pubdate>August 2004</pubdate>
15594               </biblioentry>
15595             </bibliodiv>
15596           </bibliography>
15597         </sect2>
15598         <sect2 id="internet_drafts">
15599           <title>Internet Drafts</title>
15600           <para>
15601             Internet Drafts (IDs) are rough-draft working documents of
15602             the Internet Engineering Task Force. They are, in essence, RFCs
15603             in the preliminary stages of development. Implementors are
15604             cautioned not
15605             to regard IDs as archival, and they should not be quoted or cited
15606             in any formal documents unless accompanied by the disclaimer that
15607             they are "works in progress." IDs have a lifespan of six months
15608             after which they are deleted unless updated by their authors.
15609           </para>
15610         </sect2>
15611         <sect2>
15612           <title>Other Documents About <acronym>BIND</acronym></title>
15613           <para/>
15614           <bibliography>
15615             <biblioentry>
15616               <authorgroup>
15617                 <author>
15618                   <surname>Albitz</surname>
15619                   <firstname>Paul</firstname>
15620                 </author>
15621                 <author>
15622                   <firstname>Cricket</firstname>
15623                   <surname>Liu</surname>
15624                 </author>
15625               </authorgroup>
15626               <title><acronym>DNS</acronym> and <acronym>BIND</acronym></title>
15627               <copyright>
15628                 <year>1998</year>
15629                 <holder>Sebastopol, CA: O'Reilly and Associates</holder>
15630               </copyright>
15631             </biblioentry>
15632           </bibliography>
15633         </sect2>
15634       </sect1>
15635     </appendix>
15637     <reference id="Bv9ARM.ch10">
15638       <title>Manual pages</title>
15639       <xi:include href="../../bin/dig/dig.docbook"/>
15640       <xi:include href="../../bin/dig/host.docbook"/>
15641       <xi:include href="../../bin/dnssec/dnssec-dsfromkey.docbook"/>
15642       <xi:include href="../../bin/dnssec/dnssec-keyfromlabel.docbook"/>
15643       <xi:include href="../../bin/dnssec/dnssec-keygen.docbook"/>
15644       <xi:include href="../../bin/dnssec/dnssec-revoke.docbook"/>
15645       <xi:include href="../../bin/dnssec/dnssec-settime.docbook"/>
15646       <xi:include href="../../bin/dnssec/dnssec-signzone.docbook"/>
15647       <xi:include href="../../bin/check/named-checkconf.docbook"/>
15648       <xi:include href="../../bin/check/named-checkzone.docbook"/>
15649       <xi:include href="../../bin/named/named.docbook"/>
15650       <xi:include href="../../bin/tools/named-journalprint.docbook"/>
15651       <!-- named.conf.docbook and others? -->
15652       <xi:include href="../../bin/nsupdate/nsupdate.docbook"/>
15653       <xi:include href="../../bin/rndc/rndc.docbook"/>
15654       <xi:include href="../../bin/rndc/rndc.conf.docbook"/>
15655       <xi:include href="../../bin/confgen/rndc-confgen.docbook"/>
15656       <xi:include href="../../bin/confgen/ddns-confgen.docbook"/>
15657       <xi:include href="../../bin/tools/arpaname.docbook"/>
15658       <xi:include href="../../bin/tools/genrandom.docbook"/>
15659       <xi:include href="../../bin/tools/nsec3hash.docbook"/>
15660     </reference>
15662   </book>
15664 <!--
15665   - Local variables:
15666   - mode: sgml
15667   - End:
15668  -->