2 - Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
3 - Copyright (C) 2000-2003 Internet Software Consortium.
5 - Permission to use, copy, modify, and/or distribute this software for any
6 - purpose with or without fee is hereby granted, provided that the above
7 - copyright notice and this permission notice appear in all copies.
9 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 - PERFORMANCE OF THIS SOFTWARE.
17 <!-- Id: Bv9ARM.ch06.html,v 1.249 2009/12/04 22:22:26 tbox Exp -->
20 <meta http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
21 <title>Chapter
6. BIND
9 Configuration Reference
</title>
22 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.71.1">
23 <link rel=
"start" href=
"Bv9ARM.html" title=
"BIND 9 Administrator Reference Manual">
24 <link rel=
"up" href=
"Bv9ARM.html" title=
"BIND 9 Administrator Reference Manual">
25 <link rel=
"prev" href=
"Bv9ARM.ch05.html" title=
"Chapter 5. The BIND 9 Lightweight Resolver">
26 <link rel=
"next" href=
"Bv9ARM.ch07.html" title=
"Chapter 7. BIND 9 Security Considerations">
28 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
29 <div class=
"navheader">
30 <table width=
"100%" summary=
"Navigation header">
31 <tr><th colspan=
"3" align=
"center">Chapter
6.
<acronym class=
"acronym">BIND
</acronym> 9 Configuration Reference
</th></tr>
33 <td width=
"20%" align=
"left">
34 <a accesskey=
"p" href=
"Bv9ARM.ch05.html">Prev
</a> </td>
35 <th width=
"60%" align=
"center"> </th>
36 <td width=
"20%" align=
"right"> <a accesskey=
"n" href=
"Bv9ARM.ch07.html">Next
</a>
42 <div class=
"chapter" lang=
"en">
43 <div class=
"titlepage"><div><div><h2 class=
"title">
44 <a name=
"Bv9ARM.ch06"></a>Chapter
6.
<acronym class=
"acronym">BIND
</acronym> 9 Configuration Reference
</h2></div></div></div>
46 <p><b>Table of Contents
</b></p>
48 <dt><span class=
"sect1"><a href=
"Bv9ARM.ch06.html#configuration_file_elements">Configuration File Elements
</a></span></dt>
50 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#address_match_lists">Address Match Lists
</a></span></dt>
51 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2573997">Comment Syntax
</a></span></dt>
53 <dt><span class=
"sect1"><a href=
"Bv9ARM.ch06.html#Configuration_File_Grammar">Configuration File Grammar
</a></span></dt>
55 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2574515"><span><strong class=
"command">acl
</strong></span> Statement Grammar
</a></span></dt>
56 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#acl"><span><strong class=
"command">acl
</strong></span> Statement Definition and
58 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2574773"><span><strong class=
"command">controls
</strong></span> Statement Grammar
</a></span></dt>
59 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#controls_statement_definition_and_usage"><span><strong class=
"command">controls
</strong></span> Statement Definition and
61 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2575132"><span><strong class=
"command">include
</strong></span> Statement Grammar
</a></span></dt>
62 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2575149"><span><strong class=
"command">include
</strong></span> Statement Definition and
64 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2575173"><span><strong class=
"command">key
</strong></span> Statement Grammar
</a></span></dt>
65 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2575196"><span><strong class=
"command">key
</strong></span> Statement Definition and Usage
</a></span></dt>
66 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2575287"><span><strong class=
"command">logging
</strong></span> Statement Grammar
</a></span></dt>
67 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2575413"><span><strong class=
"command">logging
</strong></span> Statement Definition and
69 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2577480"><span><strong class=
"command">lwres
</strong></span> Statement Grammar
</a></span></dt>
70 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2577554"><span><strong class=
"command">lwres
</strong></span> Statement Definition and Usage
</a></span></dt>
71 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2577686"><span><strong class=
"command">masters
</strong></span> Statement Grammar
</a></span></dt>
72 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2577730"><span><strong class=
"command">masters
</strong></span> Statement Definition and
74 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2577745"><span><strong class=
"command">options
</strong></span> Statement Grammar
</a></span></dt>
75 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#options"><span><strong class=
"command">options
</strong></span> Statement Definition and
77 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#server_statement_grammar"><span><strong class=
"command">server
</strong></span> Statement Grammar
</a></span></dt>
78 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#server_statement_definition_and_usage"><span><strong class=
"command">server
</strong></span> Statement Definition and
80 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#statschannels"><span><strong class=
"command">statistics-channels
</strong></span> Statement Grammar
</a></span></dt>
81 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2588103"><span><strong class=
"command">statistics-channels
</strong></span> Statement Definition and
83 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2588326"><span><strong class=
"command">trusted-keys
</strong></span> Statement Grammar
</a></span></dt>
84 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2588377"><span><strong class=
"command">trusted-keys
</strong></span> Statement Definition
85 and Usage
</a></span></dt>
86 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2588424"><span><strong class=
"command">managed-keys
</strong></span> Statement Grammar
</a></span></dt>
87 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2588475"><span><strong class=
"command">managed-keys
</strong></span> Statement Definition
88 and Usage
</a></span></dt>
89 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#view_statement_grammar"><span><strong class=
"command">view
</strong></span> Statement Grammar
</a></span></dt>
90 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2588848"><span><strong class=
"command">view
</strong></span> Statement Definition and Usage
</a></span></dt>
91 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#zone_statement_grammar"><span><strong class=
"command">zone
</strong></span>
92 Statement Grammar
</a></span></dt>
93 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2590421"><span><strong class=
"command">zone
</strong></span> Statement Definition and Usage
</a></span></dt>
95 <dt><span class=
"sect1"><a href=
"Bv9ARM.ch06.html#id2593225">Zone File
</a></span></dt>
97 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#types_of_resource_records_and_when_to_use_them">Types of Resource Records and When to Use Them
</a></span></dt>
98 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2595387">Discussion of MX Records
</a></span></dt>
99 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#Setting_TTLs">Setting TTLs
</a></span></dt>
100 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2596003">Inverse Mapping in IPv4
</a></span></dt>
101 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2596130">Other Zone File Directives
</a></span></dt>
102 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#id2596403"><acronym class=
"acronym">BIND
</acronym> Master File Extension: the
<span><strong class=
"command">$GENERATE
</strong></span> Directive
</a></span></dt>
103 <dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#zonefile_format">Additional File Formats
</a></span></dt>
105 <dt><span class=
"sect1"><a href=
"Bv9ARM.ch06.html#statistics">BIND9 Statistics
</a></span></dt>
106 <dd><dl><dt><span class=
"sect2"><a href=
"Bv9ARM.ch06.html#statistics_counters">Statistics Counters
</a></span></dt></dl></dd>
110 <acronym class=
"acronym">BIND
</acronym> 9 configuration is broadly similar
111 to
<acronym class=
"acronym">BIND
</acronym> 8; however, there are a few new
113 of configuration, such as views.
<acronym class=
"acronym">BIND
</acronym>
114 8 configuration files should work with few alterations in
<acronym class=
"acronym">BIND
</acronym>
115 9, although more complex configurations should be reviewed to check
116 if they can be more efficiently implemented using the new features
117 found in
<acronym class=
"acronym">BIND
</acronym> 9.
120 <acronym class=
"acronym">BIND
</acronym> 4 configuration files can be
121 converted to the new format
122 using the shell script
123 <code class=
"filename">contrib/named-bootconf/named-bootconf.sh
</code>.
125 <div class=
"sect1" lang=
"en">
126 <div class=
"titlepage"><div><div><h2 class=
"title" style=
"clear: both">
127 <a name=
"configuration_file_elements"></a>Configuration File Elements
</h2></div></div></div>
129 Following is a list of elements used throughout the
<acronym class=
"acronym">BIND
</acronym> configuration
132 <div class=
"informaltable"><table border=
"1">
141 <code class=
"varname">acl_name
</code>
146 The name of an
<code class=
"varname">address_match_list
</code> as
147 defined by the
<span><strong class=
"command">acl
</strong></span> statement.
154 <code class=
"varname">address_match_list
</code>
159 A list of one or more
160 <code class=
"varname">ip_addr
</code>,
161 <code class=
"varname">ip_prefix
</code>,
<code class=
"varname">key_id
</code>,
162 or
<code class=
"varname">acl_name
</code> elements, see
163 <a href=
"Bv9ARM.ch06.html#address_match_lists" title=
"Address Match Lists">the section called
“Address Match Lists
”</a>.
170 <code class=
"varname">masters_list
</code>
175 A named list of one or more
<code class=
"varname">ip_addr
</code>
176 with optional
<code class=
"varname">key_id
</code> and/or
177 <code class=
"varname">ip_port
</code>.
178 A
<code class=
"varname">masters_list
</code> may include other
179 <code class=
"varname">masters_lists
</code>.
186 <code class=
"varname">domain_name
</code>
191 A quoted string which will be used as
192 a DNS name, for example
"<code class="literal
">my.test.domain</code>".
199 <code class=
"varname">namelist
</code>
204 A list of one or more
<code class=
"varname">domain_name
</code>
212 <code class=
"varname">dotted_decimal
</code>
217 One to four integers valued
0 through
218 255 separated by dots (`.'), such as
<span><strong class=
"command">123</strong></span>,
219 <span><strong class=
"command">45.67</strong></span> or
<span><strong class=
"command">89.123.45.67</strong></span>.
226 <code class=
"varname">ip4_addr
</code>
231 An IPv4 address with exactly four elements
232 in
<code class=
"varname">dotted_decimal
</code> notation.
239 <code class=
"varname">ip6_addr
</code>
244 An IPv6 address, such as
<span><strong class=
"command">2001:db8::
1234</strong></span>.
245 IPv6 scoped addresses that have ambiguity on their
246 scope zones must be disambiguated by an appropriate
247 zone ID with the percent character (`%') as
248 delimiter. It is strongly recommended to use
249 string zone names rather than numeric identifiers,
250 in order to be robust against system configuration
251 changes. However, since there is no standard
252 mapping for such names and identifier values,
253 currently only interface names as link identifiers
254 are supported, assuming one-to-one mapping between
255 interfaces and links. For example, a link-local
256 address
<span><strong class=
"command">fe80::
1</strong></span> on the link
257 attached to the interface
<span><strong class=
"command">ne0
</strong></span>
258 can be specified as
<span><strong class=
"command">fe80::
1%ne0
</strong></span>.
259 Note that on most systems link-local addresses
260 always have the ambiguity, and need to be
268 <code class=
"varname">ip_addr
</code>
273 An
<code class=
"varname">ip4_addr
</code> or
<code class=
"varname">ip6_addr
</code>.
280 <code class=
"varname">ip_port
</code>
285 An IP port
<code class=
"varname">number
</code>.
286 The
<code class=
"varname">number
</code> is limited to
0
287 through
65535, with values
288 below
1024 typically restricted to use by processes running
290 In some cases, an asterisk (`*') character can be used as a
292 select a random high-numbered port.
299 <code class=
"varname">ip_prefix
</code>
304 An IP network specified as an
<code class=
"varname">ip_addr
</code>,
305 followed by a slash (`/') and then the number of bits in the
307 Trailing zeros in a
<code class=
"varname">ip_addr
</code>
309 For example,
<span><strong class=
"command">127/
8</strong></span> is the
310 network
<span><strong class=
"command">127.0.0.0</strong></span> with
311 netmask
<span><strong class=
"command">255.0.0.0</strong></span> and
<span><strong class=
"command">1.2.3.0/
28</strong></span> is
312 network
<span><strong class=
"command">1.2.3.0</strong></span> with netmask
<span><strong class=
"command">255.255.255.240</strong></span>.
315 When specifying a prefix involving a IPv6 scoped address
316 the scope may be omitted. In that case the prefix will
317 match packets from any scope.
324 <code class=
"varname">key_id
</code>
329 A
<code class=
"varname">domain_name
</code> representing
330 the name of a shared key, to be used for transaction
338 <code class=
"varname">key_list
</code>
343 A list of one or more
344 <code class=
"varname">key_id
</code>s,
345 separated by semicolons and ending with a semicolon.
352 <code class=
"varname">number
</code>
357 A non-negative
32-bit integer
358 (i.e., a number between
0 and
4294967295, inclusive).
359 Its acceptable value might further
360 be limited by the context in which it is used.
367 <code class=
"varname">path_name
</code>
372 A quoted string which will be used as
373 a pathname, such as
<code class=
"filename">zones/master/my.test.domain
</code>.
380 <code class=
"varname">port_list
</code>
385 A list of an
<code class=
"varname">ip_port
</code> or a port
387 A port range is specified in the form of
388 <strong class=
"userinput"><code>range
</code></strong> followed by
389 two
<code class=
"varname">ip_port
</code>s,
390 <code class=
"varname">port_low
</code> and
391 <code class=
"varname">port_high
</code>, which represents
392 port numbers from
<code class=
"varname">port_low
</code> through
393 <code class=
"varname">port_high
</code>, inclusive.
394 <code class=
"varname">port_low
</code> must not be larger than
395 <code class=
"varname">port_high
</code>.
397 <strong class=
"userinput"><code>range
1024 65535</code></strong> represents
398 ports from
1024 through
65535.
399 In either case an asterisk (`*') character is not
400 allowed as a valid
<code class=
"varname">ip_port
</code>.
407 <code class=
"varname">size_spec
</code>
412 A number, the word
<strong class=
"userinput"><code>unlimited
</code></strong>,
413 or the word
<strong class=
"userinput"><code>default
</code></strong>.
416 An
<code class=
"varname">unlimited
</code> <code class=
"varname">size_spec
</code> requests unlimited
417 use, or the maximum available amount. A
<code class=
"varname">default size_spec
</code> uses
418 the limit that was in force when the server was started.
421 A
<code class=
"varname">number
</code> can optionally be
422 followed by a scaling factor:
423 <strong class=
"userinput"><code>K
</code></strong> or
<strong class=
"userinput"><code>k
</code></strong>
425 <strong class=
"userinput"><code>M
</code></strong> or
<strong class=
"userinput"><code>m
</code></strong>
427 <strong class=
"userinput"><code>G
</code></strong> or
<strong class=
"userinput"><code>g
</code></strong> for gigabytes,
428 which scale by
1024,
1024*
1024, and
1024*
1024*
1024
432 The value must be representable as a
64-bit unsigned integer
433 (
0 to
18446744073709551615, inclusive).
434 Using
<code class=
"varname">unlimited
</code> is the best
436 to safely set a really large number.
443 <code class=
"varname">yes_or_no
</code>
448 Either
<strong class=
"userinput"><code>yes
</code></strong> or
<strong class=
"userinput"><code>no
</code></strong>.
449 The words
<strong class=
"userinput"><code>true
</code></strong> and
<strong class=
"userinput"><code>false
</code></strong> are
450 also accepted, as are the numbers
<strong class=
"userinput"><code>1</code></strong>
451 and
<strong class=
"userinput"><code>0</code></strong>.
458 <code class=
"varname">dialup_option
</code>
463 One of
<strong class=
"userinput"><code>yes
</code></strong>,
464 <strong class=
"userinput"><code>no
</code></strong>,
<strong class=
"userinput"><code>notify
</code></strong>,
465 <strong class=
"userinput"><code>notify-passive
</code></strong>,
<strong class=
"userinput"><code>refresh
</code></strong> or
466 <strong class=
"userinput"><code>passive
</code></strong>.
467 When used in a zone,
<strong class=
"userinput"><code>notify-passive
</code></strong>,
468 <strong class=
"userinput"><code>refresh
</code></strong>, and
<strong class=
"userinput"><code>passive
</code></strong>
469 are restricted to slave and stub zones.
475 <div class=
"sect2" lang=
"en">
476 <div class=
"titlepage"><div><div><h3 class=
"title">
477 <a name=
"address_match_lists"></a>Address Match Lists
</h3></div></div></div>
478 <div class=
"sect3" lang=
"en">
479 <div class=
"titlepage"><div><div><h4 class=
"title">
480 <a name=
"id2573627"></a>Syntax
</h4></div></div></div>
481 <pre class=
"programlisting"><code class=
"varname">address_match_list
</code> = address_match_list_element ;
482 [
<span class=
"optional"> address_match_list_element; ...
</span>]
483 <code class=
"varname">address_match_list_element
</code> = [
<span class=
"optional"> !
</span>] (ip_address [
<span class=
"optional">/length
</span>] |
484 key key_id | acl_name | { address_match_list } )
487 <div class=
"sect3" lang=
"en">
488 <div class=
"titlepage"><div><div><h4 class=
"title">
489 <a name=
"id2573655"></a>Definition and Usage
</h4></div></div></div>
491 Address match lists are primarily used to determine access
492 control for various server operations. They are also used in
493 the
<span><strong class=
"command">listen-on
</strong></span> and
<span><strong class=
"command">sortlist
</strong></span>
494 statements. The elements which constitute an address match
495 list can be any of the following:
497 <div class=
"itemizedlist"><ul type=
"disc">
498 <li>an IP address (IPv4 or IPv6)
</li>
499 <li>an IP prefix (in `/' notation)
</li>
501 a key ID, as defined by the
<span><strong class=
"command">key
</strong></span>
504 <li>the name of an address match list defined with
505 the
<span><strong class=
"command">acl
</strong></span> statement
507 <li>a nested address match list enclosed in braces
</li>
510 Elements can be negated with a leading exclamation mark (`!'),
511 and the match list names
"any",
"none",
"localhost", and
512 "localnets" are predefined. More information on those names
513 can be found in the description of the acl statement.
516 The addition of the key clause made the name of this syntactic
517 element something of a misnomer, since security keys can be used
518 to validate access without regard to a host or network address.
519 Nonetheless, the term
"address match list" is still used
520 throughout the documentation.
523 When a given IP address or prefix is compared to an address
524 match list, the comparison takes place in approximately O(
1)
525 time. However, key comparisons require that the list of keys
526 be traversed until a matching key is found, and therefore may
530 The interpretation of a match depends on whether the list is being
531 used for access control, defining
<span><strong class=
"command">listen-on
</strong></span> ports, or in a
532 <span><strong class=
"command">sortlist
</strong></span>, and whether the element was negated.
535 When used as an access control list, a non-negated match
536 allows access and a negated match denies access. If
537 there is no match, access is denied. The clauses
538 <span><strong class=
"command">allow-notify
</strong></span>,
539 <span><strong class=
"command">allow-recursion
</strong></span>,
540 <span><strong class=
"command">allow-recursion-on
</strong></span>,
541 <span><strong class=
"command">allow-query
</strong></span>,
542 <span><strong class=
"command">allow-query-on
</strong></span>,
543 <span><strong class=
"command">allow-query-cache
</strong></span>,
544 <span><strong class=
"command">allow-query-cache-on
</strong></span>,
545 <span><strong class=
"command">allow-transfer
</strong></span>,
546 <span><strong class=
"command">allow-update
</strong></span>,
547 <span><strong class=
"command">allow-update-forwarding
</strong></span>, and
548 <span><strong class=
"command">blackhole
</strong></span> all use address match
549 lists. Similarly, the
<span><strong class=
"command">listen-on
</strong></span> option will cause the
550 server to refuse queries on any of the machine's
551 addresses which do not match the list.
554 Order of insertion is significant. If more than one element
555 in an ACL is found to match a given IP address or prefix,
556 preference will be given to the one that came
557 <span class=
"emphasis"><em>first
</em></span> in the ACL definition.
558 Because of this first-match behavior, an element that
559 defines a subset of another element in the list should
560 come before the broader element, regardless of whether
561 either is negated. For example, in
562 <span><strong class=
"command">1.2.3/
24; !
1.2.3.13;
</strong></span>
563 the
1.2.3.13 element is completely useless because the
564 algorithm will match any lookup for
1.2.3.13 to the
1.2.3/
24
565 element. Using
<span><strong class=
"command">!
1.2.3.13;
1.2.3/
24</strong></span> fixes
566 that problem by having
1.2.3.13 blocked by the negation, but
567 all other
1.2.3.* hosts fall through.
571 <div class=
"sect2" lang=
"en">
572 <div class=
"titlepage"><div><div><h3 class=
"title">
573 <a name=
"id2573997"></a>Comment Syntax
</h3></div></div></div>
575 The
<acronym class=
"acronym">BIND
</acronym> 9 comment syntax allows for
577 anywhere that whitespace may appear in a
<acronym class=
"acronym">BIND
</acronym> configuration
578 file. To appeal to programmers of all kinds, they can be written
579 in the C, C++, or shell/perl style.
581 <div class=
"sect3" lang=
"en">
582 <div class=
"titlepage"><div><div><h4 class=
"title">
583 <a name=
"id2574012"></a>Syntax
</h4></div></div></div>
586 <pre class=
"programlisting">/* This is a
<acronym class=
"acronym">BIND
</acronym> comment as in C */
</pre>
589 <pre class=
"programlisting">// This is a
<acronym class=
"acronym">BIND
</acronym> comment as in C++
</pre>
592 <pre class=
"programlisting"># This is a
<acronym class=
"acronym">BIND
</acronym> comment as in common UNIX shells
597 <div class=
"sect3" lang=
"en">
598 <div class=
"titlepage"><div><div><h4 class=
"title">
599 <a name=
"id2574042"></a>Definition and Usage
</h4></div></div></div>
601 Comments may appear anywhere that whitespace may appear in
602 a
<acronym class=
"acronym">BIND
</acronym> configuration file.
605 C-style comments start with the two characters /* (slash,
606 star) and end with */ (star, slash). Because they are completely
607 delimited with these characters, they can be used to comment only
608 a portion of a line or to span multiple lines.
611 C-style comments cannot be nested. For example, the following
612 is not valid because the entire comment ends with the first */:
617 <pre class=
"programlisting">/* This is the start of a comment.
618 This is still part of the comment.
619 /* This is an incorrect attempt at nesting a comment. */
620 This is no longer in any comment. */
626 C++-style comments start with the two characters // (slash,
627 slash) and continue to the end of the physical line. They cannot
628 be continued across multiple physical lines; to have one logical
629 comment span multiple lines, each line must use the // pair.
635 <pre class=
"programlisting">// This is the start of a comment. The next line
636 // is a new comment, even though it is logically
637 // part of the previous comment.
643 Shell-style (or perl-style, if you prefer) comments start
644 with the character
<code class=
"literal">#
</code> (number sign)
645 and continue to the end of the
646 physical line, as in C++ comments.
652 <pre class=
"programlisting"># This is the start of a comment. The next line
653 # is a new comment, even though it is logically
654 # part of the previous comment.
659 <div class=
"warning" style=
"margin-left: 0.5in; margin-right: 0.5in;">
660 <h3 class=
"title">Warning
</h3>
662 You cannot use the semicolon (`;') character
663 to start a comment such as you would in a zone file. The
664 semicolon indicates the end of a configuration
671 <div class=
"sect1" lang=
"en">
672 <div class=
"titlepage"><div><div><h2 class=
"title" style=
"clear: both">
673 <a name=
"Configuration_File_Grammar"></a>Configuration File Grammar
</h2></div></div></div>
675 A
<acronym class=
"acronym">BIND
</acronym> 9 configuration consists of
676 statements and comments.
677 Statements end with a semicolon. Statements and comments are the
678 only elements that can appear without enclosing braces. Many
679 statements contain a block of sub-statements, which are also
680 terminated with a semicolon.
683 The following statements are supported:
685 <div class=
"informaltable"><table border=
"1">
693 <p><span><strong class=
"command">acl
</strong></span></p>
697 defines a named IP address
698 matching list, for access control and other uses.
704 <p><span><strong class=
"command">controls
</strong></span></p>
708 declares control channels to be used
709 by the
<span><strong class=
"command">rndc
</strong></span> utility.
715 <p><span><strong class=
"command">include
</strong></span></p>
725 <p><span><strong class=
"command">key
</strong></span></p>
729 specifies key information for use in
730 authentication and authorization using TSIG.
736 <p><span><strong class=
"command">logging
</strong></span></p>
740 specifies what the server logs, and where
741 the log messages are sent.
747 <p><span><strong class=
"command">lwres
</strong></span></p>
751 configures
<span><strong class=
"command">named
</strong></span> to
752 also act as a light-weight resolver daemon (
<span><strong class=
"command">lwresd
</strong></span>).
758 <p><span><strong class=
"command">masters
</strong></span></p>
762 defines a named masters list for
763 inclusion in stub and slave zone masters clauses.
769 <p><span><strong class=
"command">options
</strong></span></p>
773 controls global server configuration
774 options and sets defaults for other statements.
780 <p><span><strong class=
"command">server
</strong></span></p>
784 sets certain configuration options on
791 <p><span><strong class=
"command">statistics-channels
</strong></span></p>
795 declares communication channels to get access to
796 <span><strong class=
"command">named
</strong></span> statistics.
802 <p><span><strong class=
"command">trusted-keys
</strong></span></p>
806 defines trusted DNSSEC keys.
812 <p><span><strong class=
"command">managed-keys
</strong></span></p>
816 lists DNSSEC keys to be kept up to date
817 using RFC
5011 trust anchor maintenance.
823 <p><span><strong class=
"command">view
</strong></span></p>
833 <p><span><strong class=
"command">zone
</strong></span></p>
844 The
<span><strong class=
"command">logging
</strong></span> and
845 <span><strong class=
"command">options
</strong></span> statements may only occur once
849 <div class=
"sect2" lang=
"en">
850 <div class=
"titlepage"><div><div><h3 class=
"title">
851 <a name=
"id2574515"></a><span><strong class=
"command">acl
</strong></span> Statement Grammar
</h3></div></div></div>
852 <pre class=
"programlisting"><span><strong class=
"command">acl
</strong></span> acl-name {
857 <div class=
"sect2" lang=
"en">
858 <div class=
"titlepage"><div><div><h3 class=
"title">
859 <a name=
"acl"></a><span><strong class=
"command">acl
</strong></span> Statement Definition and
860 Usage
</h3></div></div></div>
862 The
<span><strong class=
"command">acl
</strong></span> statement assigns a symbolic
863 name to an address match list. It gets its name from a primary
864 use of address match lists: Access Control Lists (ACLs).
867 Note that an address match list's name must be defined
868 with
<span><strong class=
"command">acl
</strong></span> before it can be used
869 elsewhere; no forward references are allowed.
872 The following ACLs are built-in:
874 <div class=
"informaltable"><table border=
"1">
882 <p><span><strong class=
"command">any
</strong></span></p>
892 <p><span><strong class=
"command">none
</strong></span></p>
902 <p><span><strong class=
"command">localhost
</strong></span></p>
906 Matches the IPv4 and IPv6 addresses of all network
907 interfaces on the system.
913 <p><span><strong class=
"command">localnets
</strong></span></p>
917 Matches any host on an IPv4 or IPv6 network
918 for which the system has an interface.
919 Some systems do not provide a way to determine the prefix
921 local IPv6 addresses.
922 In such a case,
<span><strong class=
"command">localnets
</strong></span>
923 only matches the local
924 IPv6 addresses, just like
<span><strong class=
"command">localhost
</strong></span>.
931 <div class=
"sect2" lang=
"en">
932 <div class=
"titlepage"><div><div><h3 class=
"title">
933 <a name=
"id2574773"></a><span><strong class=
"command">controls
</strong></span> Statement Grammar
</h3></div></div></div>
934 <pre class=
"programlisting"><span><strong class=
"command">controls
</strong></span> {
935 [ inet ( ip_addr | * ) [ port ip_port ]
936 allow {
<em class=
"replaceable"><code> address_match_list
</code></em> }
937 keys {
<em class=
"replaceable"><code>key_list
</code></em> }; ]
939 [ unix
<em class=
"replaceable"><code>path
</code></em> perm
<em class=
"replaceable"><code>number
</code></em> owner
<em class=
"replaceable"><code>number
</code></em> group
<em class=
"replaceable"><code>number
</code></em>
940 keys {
<em class=
"replaceable"><code>key_list
</code></em> }; ]
945 <div class=
"sect2" lang=
"en">
946 <div class=
"titlepage"><div><div><h3 class=
"title">
947 <a name=
"controls_statement_definition_and_usage"></a><span><strong class=
"command">controls
</strong></span> Statement Definition and
948 Usage
</h3></div></div></div>
950 The
<span><strong class=
"command">controls
</strong></span> statement declares control
951 channels to be used by system administrators to control the
952 operation of the name server. These control channels are
953 used by the
<span><strong class=
"command">rndc
</strong></span> utility to send
954 commands to and retrieve non-DNS results from a name server.
957 An
<span><strong class=
"command">inet
</strong></span> control channel is a TCP socket
958 listening at the specified
<span><strong class=
"command">ip_port
</strong></span> on the
959 specified
<span><strong class=
"command">ip_addr
</strong></span>, which can be an IPv4 or IPv6
960 address. An
<span><strong class=
"command">ip_addr
</strong></span> of
<code class=
"literal">*
</code> (asterisk) is
961 interpreted as the IPv4 wildcard address; connections will be
962 accepted on any of the system's IPv4 addresses.
963 To listen on the IPv6 wildcard address,
964 use an
<span><strong class=
"command">ip_addr
</strong></span> of
<code class=
"literal">::
</code>.
965 If you will only use
<span><strong class=
"command">rndc
</strong></span> on the local host,
966 using the loopback address (
<code class=
"literal">127.0.0.1</code>
967 or
<code class=
"literal">::
1</code>) is recommended for maximum security.
970 If no port is specified, port
953 is used. The asterisk
971 "<code class="literal
">*</code>" cannot be used for
<span><strong class=
"command">ip_port
</strong></span>.
974 The ability to issue commands over the control channel is
975 restricted by the
<span><strong class=
"command">allow
</strong></span> and
976 <span><strong class=
"command">keys
</strong></span> clauses.
977 Connections to the control channel are permitted based on the
978 <span><strong class=
"command">address_match_list
</strong></span>. This is for simple
979 IP address based filtering only; any
<span><strong class=
"command">key_id
</strong></span>
980 elements of the
<span><strong class=
"command">address_match_list
</strong></span>
984 A
<span><strong class=
"command">unix
</strong></span> control channel is a UNIX domain
985 socket listening at the specified path in the file system.
986 Access to the socket is specified by the
<span><strong class=
"command">perm
</strong></span>,
987 <span><strong class=
"command">owner
</strong></span> and
<span><strong class=
"command">group
</strong></span> clauses.
988 Note on some platforms (SunOS and Solaris) the permissions
989 (
<span><strong class=
"command">perm
</strong></span>) are applied to the parent directory
990 as the permissions on the socket itself are ignored.
993 The primary authorization mechanism of the command
994 channel is the
<span><strong class=
"command">key_list
</strong></span>, which
995 contains a list of
<span><strong class=
"command">key_id
</strong></span>s.
996 Each
<span><strong class=
"command">key_id
</strong></span> in the
<span><strong class=
"command">key_list
</strong></span>
997 is authorized to execute commands over the control channel.
998 See
<a href=
"Bv9ARM.ch03.html#rndc">Remote Name Daemon Control application
</a> in
<a href=
"Bv9ARM.ch03.html#admin_tools" title=
"Administrative Tools">the section called
“Administrative Tools
”</a>)
999 for information about configuring keys in
<span><strong class=
"command">rndc
</strong></span>.
1002 If no
<span><strong class=
"command">controls
</strong></span> statement is present,
1003 <span><strong class=
"command">named
</strong></span> will set up a default
1004 control channel listening on the loopback address
127.0.0.1
1005 and its IPv6 counterpart ::
1.
1006 In this case, and also when the
<span><strong class=
"command">controls
</strong></span> statement
1007 is present but does not have a
<span><strong class=
"command">keys
</strong></span> clause,
1008 <span><strong class=
"command">named
</strong></span> will attempt to load the command channel key
1009 from the file
<code class=
"filename">rndc.key
</code> in
1010 <code class=
"filename">/etc
</code> (or whatever
<code class=
"varname">sysconfdir
</code>
1011 was specified as when
<acronym class=
"acronym">BIND
</acronym> was built).
1012 To create a
<code class=
"filename">rndc.key
</code> file, run
1013 <strong class=
"userinput"><code>rndc-confgen -a
</code></strong>.
1016 The
<code class=
"filename">rndc.key
</code> feature was created to
1017 ease the transition of systems from
<acronym class=
"acronym">BIND
</acronym> 8,
1018 which did not have digital signatures on its command channel
1019 messages and thus did not have a
<span><strong class=
"command">keys
</strong></span> clause.
1021 It makes it possible to use an existing
<acronym class=
"acronym">BIND
</acronym> 8
1022 configuration file in
<acronym class=
"acronym">BIND
</acronym> 9 unchanged,
1023 and still have
<span><strong class=
"command">rndc
</strong></span> work the same way
1024 <span><strong class=
"command">ndc
</strong></span> worked in BIND
8, simply by executing the
1025 command
<strong class=
"userinput"><code>rndc-confgen -a
</code></strong> after BIND
9 is
1029 Since the
<code class=
"filename">rndc.key
</code> feature
1030 is only intended to allow the backward-compatible usage of
1031 <acronym class=
"acronym">BIND
</acronym> 8 configuration files, this
1033 have a high degree of configurability. You cannot easily change
1034 the key name or the size of the secret, so you should make a
1035 <code class=
"filename">rndc.conf
</code> with your own key if you
1037 those things. The
<code class=
"filename">rndc.key
</code> file
1039 permissions set such that only the owner of the file (the user that
1040 <span><strong class=
"command">named
</strong></span> is running as) can access it.
1042 desire greater flexibility in allowing other users to access
1043 <span><strong class=
"command">rndc
</strong></span> commands, then you need to create
1045 <code class=
"filename">rndc.conf
</code> file and make it group
1047 that contains the users who should have access.
1050 To disable the command channel, use an empty
1051 <span><strong class=
"command">controls
</strong></span> statement:
1052 <span><strong class=
"command">controls { };
</strong></span>.
1055 <div class=
"sect2" lang=
"en">
1056 <div class=
"titlepage"><div><div><h3 class=
"title">
1057 <a name=
"id2575132"></a><span><strong class=
"command">include
</strong></span> Statement Grammar
</h3></div></div></div>
1058 <pre class=
"programlisting"><span><strong class=
"command">include
</strong></span> <em class=
"replaceable"><code>filename
</code></em>;
</pre>
1060 <div class=
"sect2" lang=
"en">
1061 <div class=
"titlepage"><div><div><h3 class=
"title">
1062 <a name=
"id2575149"></a><span><strong class=
"command">include
</strong></span> Statement Definition and
1063 Usage
</h3></div></div></div>
1065 The
<span><strong class=
"command">include
</strong></span> statement inserts the
1066 specified file at the point where the
<span><strong class=
"command">include
</strong></span>
1067 statement is encountered. The
<span><strong class=
"command">include
</strong></span>
1068 statement facilitates the administration of configuration
1070 by permitting the reading or writing of some things but not
1071 others. For example, the statement could include private keys
1072 that are readable only by the name server.
1075 <div class=
"sect2" lang=
"en">
1076 <div class=
"titlepage"><div><div><h3 class=
"title">
1077 <a name=
"id2575173"></a><span><strong class=
"command">key
</strong></span> Statement Grammar
</h3></div></div></div>
1078 <pre class=
"programlisting"><span><strong class=
"command">key
</strong></span> <em class=
"replaceable"><code>key_id
</code></em> {
1079 algorithm
<em class=
"replaceable"><code>string
</code></em>;
1080 secret
<em class=
"replaceable"><code>string
</code></em>;
1084 <div class=
"sect2" lang=
"en">
1085 <div class=
"titlepage"><div><div><h3 class=
"title">
1086 <a name=
"id2575196"></a><span><strong class=
"command">key
</strong></span> Statement Definition and Usage
</h3></div></div></div>
1088 The
<span><strong class=
"command">key
</strong></span> statement defines a shared
1089 secret key for use with TSIG (see
<a href=
"Bv9ARM.ch04.html#tsig" title=
"TSIG">the section called
“TSIG
”</a>)
1090 or the command channel
1091 (see
<a href=
"Bv9ARM.ch06.html#controls_statement_definition_and_usage" title=
"controls Statement Definition and
1092 Usage">the section called
“<span><strong class=
"command">controls
</strong></span> Statement Definition and
1096 The
<span><strong class=
"command">key
</strong></span> statement can occur at the
1098 of the configuration file or inside a
<span><strong class=
"command">view
</strong></span>
1099 statement. Keys defined in top-level
<span><strong class=
"command">key
</strong></span>
1100 statements can be used in all views. Keys intended for use in
1101 a
<span><strong class=
"command">controls
</strong></span> statement
1102 (see
<a href=
"Bv9ARM.ch06.html#controls_statement_definition_and_usage" title=
"controls Statement Definition and
1103 Usage">the section called
“<span><strong class=
"command">controls
</strong></span> Statement Definition and
1105 must be defined at the top level.
1108 The
<em class=
"replaceable"><code>key_id
</code></em>, also known as the
1109 key name, is a domain name uniquely identifying the key. It can
1110 be used in a
<span><strong class=
"command">server
</strong></span>
1111 statement to cause requests sent to that
1112 server to be signed with this key, or in address match lists to
1113 verify that incoming requests have been signed with a key
1114 matching this name, algorithm, and secret.
1117 The
<em class=
"replaceable"><code>algorithm_id
</code></em> is a string
1118 that specifies a security/authentication algorithm. Named
1119 supports
<code class=
"literal">hmac-md5
</code>,
1120 <code class=
"literal">hmac-sha1
</code>,
<code class=
"literal">hmac-sha224
</code>,
1121 <code class=
"literal">hmac-sha256
</code>,
<code class=
"literal">hmac-sha384
</code>
1122 and
<code class=
"literal">hmac-sha512
</code> TSIG authentication.
1123 Truncated hashes are supported by appending the minimum
1124 number of required bits preceded by a dash, e.g.
1125 <code class=
"literal">hmac-sha1-
80</code>. The
1126 <em class=
"replaceable"><code>secret_string
</code></em> is the secret
1127 to be used by the algorithm, and is treated as a base-
64
1131 <div class=
"sect2" lang=
"en">
1132 <div class=
"titlepage"><div><div><h3 class=
"title">
1133 <a name=
"id2575287"></a><span><strong class=
"command">logging
</strong></span> Statement Grammar
</h3></div></div></div>
1134 <pre class=
"programlisting"><span><strong class=
"command">logging
</strong></span> {
1135 [
<span><strong class=
"command">channel
</strong></span> <em class=
"replaceable"><code>channel_name
</code></em> {
1136 (
<span><strong class=
"command">file
</strong></span> <em class=
"replaceable"><code>path_name
</code></em>
1137 [
<span><strong class=
"command">versions
</strong></span> (
<em class=
"replaceable"><code>number
</code></em> |
<span><strong class=
"command">unlimited
</strong></span> ) ]
1138 [
<span><strong class=
"command">size
</strong></span> <em class=
"replaceable"><code>size spec
</code></em> ]
1139 |
<span><strong class=
"command">syslog
</strong></span> <em class=
"replaceable"><code>syslog_facility
</code></em>
1140 |
<span><strong class=
"command">stderr
</strong></span>
1141 |
<span><strong class=
"command">null
</strong></span> );
1142 [
<span><strong class=
"command">severity
</strong></span> (
<code class=
"option">critical
</code> |
<code class=
"option">error
</code> |
<code class=
"option">warning
</code> |
<code class=
"option">notice
</code> |
1143 <code class=
"option">info
</code> |
<code class=
"option">debug
</code> [
<em class=
"replaceable"><code>level
</code></em> ] |
<code class=
"option">dynamic
</code> ); ]
1144 [
<span><strong class=
"command">print-category
</strong></span> <code class=
"option">yes
</code> or
<code class=
"option">no
</code>; ]
1145 [
<span><strong class=
"command">print-severity
</strong></span> <code class=
"option">yes
</code> or
<code class=
"option">no
</code>; ]
1146 [
<span><strong class=
"command">print-time
</strong></span> <code class=
"option">yes
</code> or
<code class=
"option">no
</code>; ]
1148 [
<span><strong class=
"command">category
</strong></span> <em class=
"replaceable"><code>category_name
</code></em> {
1149 <em class=
"replaceable"><code>channel_name
</code></em> ; [
<em class=
"replaceable"><code>channel_name
</code></em> ; ... ]
1155 <div class=
"sect2" lang=
"en">
1156 <div class=
"titlepage"><div><div><h3 class=
"title">
1157 <a name=
"id2575413"></a><span><strong class=
"command">logging
</strong></span> Statement Definition and
1158 Usage
</h3></div></div></div>
1160 The
<span><strong class=
"command">logging
</strong></span> statement configures a
1162 variety of logging options for the name server. Its
<span><strong class=
"command">channel
</strong></span> phrase
1163 associates output methods, format options and severity levels with
1164 a name that can then be used with the
<span><strong class=
"command">category
</strong></span> phrase
1165 to select how various classes of messages are logged.
1168 Only one
<span><strong class=
"command">logging
</strong></span> statement is used to
1170 as many channels and categories as are wanted. If there is no
<span><strong class=
"command">logging
</strong></span> statement,
1171 the logging configuration will be:
1173 <pre class=
"programlisting">logging {
1174 category default { default_syslog; default_debug; };
1175 category unmatched { null; };
1179 In
<acronym class=
"acronym">BIND
</acronym> 9, the logging configuration
1180 is only established when
1181 the entire configuration file has been parsed. In
<acronym class=
"acronym">BIND
</acronym> 8, it was
1182 established as soon as the
<span><strong class=
"command">logging
</strong></span>
1184 was parsed. When the server is starting up, all logging messages
1185 regarding syntax errors in the configuration file go to the default
1186 channels, or to standard error if the
"<code class="option
">-g</code>" option
1189 <div class=
"sect3" lang=
"en">
1190 <div class=
"titlepage"><div><div><h4 class=
"title">
1191 <a name=
"id2575465"></a>The
<span><strong class=
"command">channel
</strong></span> Phrase
</h4></div></div></div>
1193 All log output goes to one or more
<span class=
"emphasis"><em>channels
</em></span>;
1194 you can make as many of them as you want.
1197 Every channel definition must include a destination clause that
1198 says whether messages selected for the channel go to a file, to a
1199 particular syslog facility, to the standard error stream, or are
1200 discarded. It can optionally also limit the message severity level
1201 that will be accepted by the channel (the default is
1202 <span><strong class=
"command">info
</strong></span>), and whether to include a
1203 <span><strong class=
"command">named
</strong></span>-generated time stamp, the
1205 and/or severity level (the default is not to include any).
1208 The
<span><strong class=
"command">null
</strong></span> destination clause
1209 causes all messages sent to the channel to be discarded;
1210 in that case, other options for the channel are meaningless.
1213 The
<span><strong class=
"command">file
</strong></span> destination clause directs
1215 to a disk file. It can include limitations
1216 both on how large the file is allowed to become, and how many
1218 of the file will be saved each time the file is opened.
1221 If you use the
<span><strong class=
"command">versions
</strong></span> log file
1223 <span><strong class=
"command">named
</strong></span> will retain that many backup
1224 versions of the file by
1225 renaming them when opening. For example, if you choose to keep
1227 of the file
<code class=
"filename">lamers.log
</code>, then just
1229 <code class=
"filename">lamers.log
.1</code> is renamed to
1230 <code class=
"filename">lamers.log
.2</code>,
<code class=
"filename">lamers.log
.0</code> is renamed
1231 to
<code class=
"filename">lamers.log
.1</code>, and
<code class=
"filename">lamers.log
</code> is
1232 renamed to
<code class=
"filename">lamers.log
.0</code>.
1233 You can say
<span><strong class=
"command">versions unlimited
</strong></span> to
1235 the number of versions.
1236 If a
<span><strong class=
"command">size
</strong></span> option is associated with
1238 then renaming is only done when the file being opened exceeds the
1239 indicated size. No backup versions are kept by default; any
1241 log file is simply appended.
1244 The
<span><strong class=
"command">size
</strong></span> option for files is used
1246 growth. If the file ever exceeds the size, then
<span><strong class=
"command">named
</strong></span> will
1247 stop writing to the file unless it has a
<span><strong class=
"command">versions
</strong></span> option
1248 associated with it. If backup versions are kept, the files are
1250 described above and a new one begun. If there is no
1251 <span><strong class=
"command">versions
</strong></span> option, no more data will
1252 be written to the log
1253 until some out-of-band mechanism removes or truncates the log to
1255 maximum size. The default behavior is not to limit the size of
1260 Example usage of the
<span><strong class=
"command">size
</strong></span> and
1261 <span><strong class=
"command">versions
</strong></span> options:
1263 <pre class=
"programlisting">channel an_example_channel {
1264 file
"example.log" versions
3 size
20m;
1270 The
<span><strong class=
"command">syslog
</strong></span> destination clause
1272 channel to the system log. Its argument is a
1273 syslog facility as described in the
<span><strong class=
"command">syslog
</strong></span> man
1274 page. Known facilities are
<span><strong class=
"command">kern
</strong></span>,
<span><strong class=
"command">user
</strong></span>,
1275 <span><strong class=
"command">mail
</strong></span>,
<span><strong class=
"command">daemon
</strong></span>,
<span><strong class=
"command">auth
</strong></span>,
1276 <span><strong class=
"command">syslog
</strong></span>,
<span><strong class=
"command">lpr
</strong></span>,
<span><strong class=
"command">news
</strong></span>,
1277 <span><strong class=
"command">uucp
</strong></span>,
<span><strong class=
"command">cron
</strong></span>,
<span><strong class=
"command">authpriv
</strong></span>,
1278 <span><strong class=
"command">ftp
</strong></span>,
<span><strong class=
"command">local0
</strong></span>,
<span><strong class=
"command">local1
</strong></span>,
1279 <span><strong class=
"command">local2
</strong></span>,
<span><strong class=
"command">local3
</strong></span>,
<span><strong class=
"command">local4
</strong></span>,
1280 <span><strong class=
"command">local5
</strong></span>,
<span><strong class=
"command">local6
</strong></span> and
1281 <span><strong class=
"command">local7
</strong></span>, however not all facilities
1283 all operating systems.
1284 How
<span><strong class=
"command">syslog
</strong></span> will handle messages
1286 this facility is described in the
<span><strong class=
"command">syslog.conf
</strong></span> man
1287 page. If you have a system which uses a very old version of
<span><strong class=
"command">syslog
</strong></span> that
1288 only uses two arguments to the
<span><strong class=
"command">openlog()
</strong></span> function,
1289 then this clause is silently ignored.
1292 The
<span><strong class=
"command">severity
</strong></span> clause works like
<span><strong class=
"command">syslog
</strong></span>'s
1293 "priorities", except that they can also be used if you are writing
1294 straight to a file rather than using
<span><strong class=
"command">syslog
</strong></span>.
1295 Messages which are not at least of the severity level given will
1296 not be selected for the channel; messages of higher severity
1301 If you are using
<span><strong class=
"command">syslog
</strong></span>, then the
<span><strong class=
"command">syslog.conf
</strong></span> priorities
1302 will also determine what eventually passes through. For example,
1303 defining a channel facility and severity as
<span><strong class=
"command">daemon
</strong></span> and
<span><strong class=
"command">debug
</strong></span> but
1304 only logging
<span><strong class=
"command">daemon.warning
</strong></span> via
<span><strong class=
"command">syslog.conf
</strong></span> will
1305 cause messages of severity
<span><strong class=
"command">info
</strong></span> and
1306 <span><strong class=
"command">notice
</strong></span> to
1307 be dropped. If the situation were reversed, with
<span><strong class=
"command">named
</strong></span> writing
1308 messages of only
<span><strong class=
"command">warning
</strong></span> or higher,
1309 then
<span><strong class=
"command">syslogd
</strong></span> would
1310 print all messages it received from the channel.
1313 The
<span><strong class=
"command">stderr
</strong></span> destination clause
1315 channel to the server's standard error stream. This is intended
1317 use when the server is running as a foreground process, for
1319 when debugging a configuration.
1322 The server can supply extensive debugging information when
1323 it is in debugging mode. If the server's global debug level is
1325 than zero, then debugging mode will be active. The global debug
1326 level is set either by starting the
<span><strong class=
"command">named
</strong></span> server
1327 with the
<code class=
"option">-d
</code> flag followed by a positive integer,
1328 or by running
<span><strong class=
"command">rndc trace
</strong></span>.
1329 The global debug level
1330 can be set to zero, and debugging mode turned off, by running
<span><strong class=
"command">rndc
1331 notrace
</strong></span>. All debugging messages in the server have a debug
1332 level, and higher debug levels give more detailed output. Channels
1333 that specify a specific debug severity, for example:
1335 <pre class=
"programlisting">channel specific_debug_level {
1341 will get debugging output of level
3 or less any time the
1342 server is in debugging mode, regardless of the global debugging
1343 level. Channels with
<span><strong class=
"command">dynamic
</strong></span>
1345 server's global debug level to determine what messages to print.
1348 If
<span><strong class=
"command">print-time
</strong></span> has been turned on,
1350 the date and time will be logged.
<span><strong class=
"command">print-time
</strong></span> may
1351 be specified for a
<span><strong class=
"command">syslog
</strong></span> channel,
1353 pointless since
<span><strong class=
"command">syslog
</strong></span> also logs
1355 time. If
<span><strong class=
"command">print-category
</strong></span> is
1357 category of the message will be logged as well. Finally, if
<span><strong class=
"command">print-severity
</strong></span> is
1358 on, then the severity level of the message will be logged. The
<span><strong class=
"command">print-
</strong></span> options may
1359 be used in any combination, and will always be printed in the
1361 order: time, category, severity. Here is an example where all
1362 three
<span><strong class=
"command">print-
</strong></span> options
1366 <code class=
"computeroutput">28-Feb-
2000 15:
05:
32.863 general: notice: running
</code>
1369 There are four predefined channels that are used for
1370 <span><strong class=
"command">named
</strong></span>'s default logging as follows.
1372 used is described in
<a href=
"Bv9ARM.ch06.html#the_category_phrase" title=
"The category Phrase">the section called
“The
<span><strong class=
"command">category
</strong></span> Phrase
”</a>.
1374 <pre class=
"programlisting">channel default_syslog {
1375 // send to syslog's daemon facility
1377 // only send priority info and higher
1380 channel default_debug {
1381 // write to named.run in the working directory
1382 // Note: stderr is used instead of
"named.run" if
1383 // the server is started with the '-f' option.
1385 // log at the server's current debug level
1389 channel default_stderr {
1392 // only send priority info and higher
1397 // toss anything sent to this channel
1402 The
<span><strong class=
"command">default_debug
</strong></span> channel has the
1404 property that it only produces output when the server's debug
1406 nonzero. It normally writes to a file called
<code class=
"filename">named.run
</code>
1407 in the server's working directory.
1410 For security reasons, when the
"<code class="option
">-u</code>"
1411 command line option is used, the
<code class=
"filename">named.run
</code> file
1412 is created only after
<span><strong class=
"command">named
</strong></span> has
1414 new UID, and any debug output generated while
<span><strong class=
"command">named
</strong></span> is
1415 starting up and still running as root is discarded. If you need
1416 to capture this output, you must run the server with the
"<code class="option
">-g</code>"
1417 option and redirect standard error to a file.
1420 Once a channel is defined, it cannot be redefined. Thus you
1421 cannot alter the built-in channels directly, but you can modify
1422 the default logging by pointing categories at channels you have
1426 <div class=
"sect3" lang=
"en">
1427 <div class=
"titlepage"><div><div><h4 class=
"title">
1428 <a name=
"the_category_phrase"></a>The
<span><strong class=
"command">category
</strong></span> Phrase
</h4></div></div></div>
1430 There are many categories, so you can send the logs you want
1431 to see wherever you want, without seeing logs you don't want. If
1432 you don't specify a list of channels for a category, then log
1434 in that category will be sent to the
<span><strong class=
"command">default
</strong></span> category
1435 instead. If you don't specify a default category, the following
1436 "default default" is used:
1438 <pre class=
"programlisting">category default { default_syslog; default_debug; };
1441 As an example, let's say you want to log security events to
1442 a file, but you also want keep the default logging behavior. You'd
1443 specify the following:
1445 <pre class=
"programlisting">channel my_security_channel {
1446 file
"my_security_file";
1450 my_security_channel;
1455 To discard all messages in a category, specify the
<span><strong class=
"command">null
</strong></span> channel:
1457 <pre class=
"programlisting">category xfer-out { null; };
1458 category notify { null; };
1461 Following are the available categories and brief descriptions
1462 of the types of log information they contain. More
1463 categories may be added in future
<acronym class=
"acronym">BIND
</acronym> releases.
1465 <div class=
"informaltable"><table border=
"1">
1473 <p><span><strong class=
"command">default
</strong></span></p>
1477 The default category defines the logging
1478 options for those categories where no specific
1479 configuration has been
1486 <p><span><strong class=
"command">general
</strong></span></p>
1490 The catch-all. Many things still aren't
1491 classified into categories, and they all end up here.
1497 <p><span><strong class=
"command">database
</strong></span></p>
1501 Messages relating to the databases used
1502 internally by the name server to store zone and cache
1509 <p><span><strong class=
"command">security
</strong></span></p>
1513 Approval and denial of requests.
1519 <p><span><strong class=
"command">config
</strong></span></p>
1523 Configuration file parsing and processing.
1529 <p><span><strong class=
"command">resolver
</strong></span></p>
1533 DNS resolution, such as the recursive
1534 lookups performed on behalf of clients by a caching name
1541 <p><span><strong class=
"command">xfer-in
</strong></span></p>
1545 Zone transfers the server is receiving.
1551 <p><span><strong class=
"command">xfer-out
</strong></span></p>
1555 Zone transfers the server is sending.
1561 <p><span><strong class=
"command">notify
</strong></span></p>
1565 The NOTIFY protocol.
1571 <p><span><strong class=
"command">client
</strong></span></p>
1575 Processing of client requests.
1581 <p><span><strong class=
"command">unmatched
</strong></span></p>
1585 Messages that
<span><strong class=
"command">named
</strong></span> was unable to determine the
1586 class of or for which there was no matching
<span><strong class=
"command">view
</strong></span>.
1587 A one line summary is also logged to the
<span><strong class=
"command">client
</strong></span> category.
1588 This category is best sent to a file or stderr, by
1589 default it is sent to
1590 the
<span><strong class=
"command">null
</strong></span> channel.
1596 <p><span><strong class=
"command">network
</strong></span></p>
1606 <p><span><strong class=
"command">update
</strong></span></p>
1616 <p><span><strong class=
"command">update-security
</strong></span></p>
1620 Approval and denial of update requests.
1626 <p><span><strong class=
"command">queries
</strong></span></p>
1630 Specify where queries should be logged to.
1633 At startup, specifying the category
<span><strong class=
"command">queries
</strong></span> will also
1634 enable query logging unless
<span><strong class=
"command">querylog
</strong></span> option has been
1639 The query log entry reports the client's IP
1640 address and port number, and the query name,
1641 class and type. Next it reports whether the
1642 Recursion Desired flag was set (+ if set, -
1643 if not set), if the query was signed (S),
1644 EDNS was in use (E), if TCP was used (T), if
1645 DO (DNSSEC Ok) was set (D), or if CD (Checking
1646 Disabled) was set (C). After this the
1647 destination address the query was sent to is
1652 <code class=
"computeroutput">client
127.0.0.1#
62536: query: www.example.com IN AAAA +SE
</code>
1655 <code class=
"computeroutput">client ::
1#
62537: query: www.example.net IN AAAA -SE
</code>
1661 <p><span><strong class=
"command">query-errors
</strong></span></p>
1665 Information about queries that resulted in some
1672 <p><span><strong class=
"command">dispatch
</strong></span></p>
1676 Dispatching of incoming packets to the
1677 server modules where they are to be processed.
1683 <p><span><strong class=
"command">dnssec
</strong></span></p>
1687 DNSSEC and TSIG protocol processing.
1693 <p><span><strong class=
"command">lame-servers
</strong></span></p>
1697 Lame servers. These are misconfigurations
1698 in remote servers, discovered by BIND
9 when trying to
1699 query those servers during resolution.
1705 <p><span><strong class=
"command">delegation-only
</strong></span></p>
1709 Delegation only. Logs queries that have been
1710 forced to NXDOMAIN as the result of a
1711 delegation-only zone or a
1712 <span><strong class=
"command">delegation-only
</strong></span> in a hint
1713 or stub zone declaration.
1719 <p><span><strong class=
"command">edns-disabled
</strong></span></p>
1723 Log queries that have been forced to use plain
1724 DNS due to timeouts. This is often due to
1725 the remote servers not being RFC
1034 compliant
1726 (not always returning FORMERR or similar to
1727 EDNS queries and other extensions to the DNS
1728 when they are not understood). In other words, this is
1729 targeted at servers that fail to respond to
1730 DNS queries that they don't understand.
1733 Note: the log message can also be due to
1734 packet loss. Before reporting servers for
1735 non-RFC
1034 compliance they should be re-tested
1736 to determine the nature of the non-compliance.
1737 This testing should prevent or reduce the
1738 number of false-positive reports.
1741 Note: eventually
<span><strong class=
"command">named
</strong></span> will have to stop
1742 treating such timeouts as due to RFC
1034 non
1743 compliance and start treating it as plain
1744 packet loss. Falsely classifying packet
1745 loss as due to RFC
1034 non compliance impacts
1746 on DNSSEC validation which requires EDNS for
1747 the DNSSEC records to be returned.
1754 <div class=
"sect3" lang=
"en">
1755 <div class=
"titlepage"><div><div><h4 class=
"title">
1756 <a name=
"id2576961"></a>The
<span><strong class=
"command">query-errors
</strong></span> Category
</h4></div></div></div>
1758 The
<span><strong class=
"command">query-errors
</strong></span> category is
1759 specifically intended for debugging purposes: To identify
1760 why and how specific queries result in responses which
1762 Messages of this category are therefore only logged
1763 with
<span><strong class=
"command">debug
</strong></span> levels.
1766 At the debug levels of
1 or higher, each response with the
1767 rcode of SERVFAIL is logged as follows:
1770 <code class=
"computeroutput">client
127.0.0.1#
61502: query failed (SERVFAIL) for www.example.com/IN/AAAA at query.c:
3880</code>
1773 This means an error resulting in SERVFAIL was
1774 detected at line
3880 of source file
1775 <code class=
"filename">query.c
</code>.
1776 Log messages of this level will particularly
1777 help identify the cause of SERVFAIL for an
1778 authoritative server.
1781 At the debug levels of
2 or higher, detailed context
1782 information of recursive resolutions that resulted in
1784 The log message will look like as follows:
1789 <pre class=
"programlisting">
1790 fetch completed at resolver.c:
2970 for www.example.com/A
1791 in
30.000183: timed out/success [domain:example.com,
1792 referral:
2,restart:
7,qrysent:
8,timeout:
5,lame:
0,neterr:
0,
1793 badresp:
1,adberr:
0,findfail:
0,valfail:
0]
1798 The first part before the colon shows that a recursive
1799 resolution for AAAA records of www.example.com completed
1800 in
30.000183 seconds and the final result that led to the
1801 SERVFAIL was determined at line
2970 of source file
1802 <code class=
"filename">resolver.c
</code>.
1805 The following part shows the detected final result and the
1806 latest result of DNSSEC validation.
1807 The latter is always success when no validation attempt
1809 In this example, this query resulted in SERVFAIL probably
1810 because all name servers are down or unreachable, leading
1811 to a timeout in
30 seconds.
1812 DNSSEC validation was probably not attempted.
1815 The last part enclosed in square brackets shows statistics
1816 information collected for this particular resolution
1818 The
<code class=
"varname">domain
</code> field shows the deepest zone
1819 that the resolver reached;
1820 it is the zone where the error was finally detected.
1821 The meaning of the other fields is summarized in the
1824 <div class=
"informaltable"><table border=
"1">
1832 <p><code class=
"varname">referral
</code></p>
1836 The number of referrals the resolver received
1837 throughout the resolution process.
1838 In the above example this is
2, which are most
1839 likely com and example.com.
1845 <p><code class=
"varname">restart
</code></p>
1849 The number of cycles that the resolver tried
1850 remote servers at the
<code class=
"varname">domain
</code>
1852 In each cycle the resolver sends one query
1853 (possibly resending it, depending on the response)
1854 to each known name server of
1855 the
<code class=
"varname">domain
</code> zone.
1861 <p><code class=
"varname">qrysent
</code></p>
1865 The number of queries the resolver sent at the
1866 <code class=
"varname">domain
</code> zone.
1872 <p><code class=
"varname">timeout
</code></p>
1876 The number of timeouts since the resolver
1877 received the last response.
1883 <p><code class=
"varname">lame
</code></p>
1887 The number of lame servers the resolver detected
1888 at the
<code class=
"varname">domain
</code> zone.
1889 A server is detected to be lame either by an
1890 invalid response or as a result of lookup in
1891 BIND9's address database (ADB), where lame
1898 <p><code class=
"varname">neterr
</code></p>
1902 The number of erroneous results that the
1903 resolver encountered in sending queries
1904 at the
<code class=
"varname">domain
</code> zone.
1905 One common case is the remote server is
1906 unreachable and the resolver receives an ICMP
1907 unreachable error message.
1913 <p><code class=
"varname">badresp
</code></p>
1917 The number of unexpected responses (other than
1918 <code class=
"varname">lame
</code>) to queries sent by the
1919 resolver at the
<code class=
"varname">domain
</code> zone.
1925 <p><code class=
"varname">adberr
</code></p>
1929 Failures in finding remote server addresses
1930 of the
<code class=
"varname">domain
</code> zone in the ADB.
1931 One common case of this is that the remote
1932 server's name does not have any address records.
1938 <p><code class=
"varname">findfail
</code></p>
1942 Failures of resolving remote server addresses.
1943 This is a total number of failures throughout
1944 the resolution process.
1950 <p><code class=
"varname">valfail
</code></p>
1954 Failures of DNSSEC validation.
1955 Validation failures are counted throughout
1956 the resolution process (not limited to
1957 the
<code class=
"varname">domain
</code> zone), but should
1958 only happen in
<code class=
"varname">domain
</code>.
1965 At the debug levels of
3 or higher, the same messages
1966 as those at the debug
1 level are logged for other errors
1968 Note that negative responses such as NXDOMAIN are not
1969 regarded as errors here.
1972 At the debug levels of
4 or higher, the same messages
1973 as those at the debug
2 level are logged for other errors
1975 Unlike the above case of level
3, messages are logged for
1977 This is because any unexpected results can be difficult to
1978 debug in the recursion case.
1982 <div class=
"sect2" lang=
"en">
1983 <div class=
"titlepage"><div><div><h3 class=
"title">
1984 <a name=
"id2577480"></a><span><strong class=
"command">lwres
</strong></span> Statement Grammar
</h3></div></div></div>
1986 This is the grammar of the
<span><strong class=
"command">lwres
</strong></span>
1987 statement in the
<code class=
"filename">named.conf
</code> file:
1989 <pre class=
"programlisting"><span><strong class=
"command">lwres
</strong></span> {
1990 [
<span class=
"optional"> listen-on {
<em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
1991 [
<span class=
"optional"> <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ; ...
</span>] };
</span>]
1992 [
<span class=
"optional"> view
<em class=
"replaceable"><code>view_name
</code></em>;
</span>]
1993 [
<span class=
"optional"> search {
<em class=
"replaceable"><code>domain_name
</code></em> ; [
<span class=
"optional"> <em class=
"replaceable"><code>domain_name
</code></em> ; ...
</span>] };
</span>]
1994 [
<span class=
"optional"> ndots
<em class=
"replaceable"><code>number
</code></em>;
</span>]
1998 <div class=
"sect2" lang=
"en">
1999 <div class=
"titlepage"><div><div><h3 class=
"title">
2000 <a name=
"id2577554"></a><span><strong class=
"command">lwres
</strong></span> Statement Definition and Usage
</h3></div></div></div>
2002 The
<span><strong class=
"command">lwres
</strong></span> statement configures the
2004 server to also act as a lightweight resolver server. (See
2005 <a href=
"Bv9ARM.ch05.html#lwresd" title=
"Running a Resolver Daemon">the section called
“Running a Resolver Daemon
”</a>.) There may be multiple
2006 <span><strong class=
"command">lwres
</strong></span> statements configuring
2007 lightweight resolver servers with different properties.
2010 The
<span><strong class=
"command">listen-on
</strong></span> statement specifies a
2012 addresses (and ports) that this instance of a lightweight resolver
2014 should accept requests on. If no port is specified, port
921 is
2016 If this statement is omitted, requests will be accepted on
2021 The
<span><strong class=
"command">view
</strong></span> statement binds this
2023 lightweight resolver daemon to a view in the DNS namespace, so that
2025 response will be constructed in the same manner as a normal DNS
2027 matching this view. If this statement is omitted, the default view
2029 used, and if there is no default view, an error is triggered.
2032 The
<span><strong class=
"command">search
</strong></span> statement is equivalent to
2034 <span><strong class=
"command">search
</strong></span> statement in
2035 <code class=
"filename">/etc/resolv.conf
</code>. It provides a
2037 which are appended to relative names in queries.
2040 The
<span><strong class=
"command">ndots
</strong></span> statement is equivalent to
2042 <span><strong class=
"command">ndots
</strong></span> statement in
2043 <code class=
"filename">/etc/resolv.conf
</code>. It indicates the
2045 number of dots in a relative domain name that should result in an
2046 exact match lookup before search path elements are appended.
2049 <div class=
"sect2" lang=
"en">
2050 <div class=
"titlepage"><div><div><h3 class=
"title">
2051 <a name=
"id2577686"></a><span><strong class=
"command">masters
</strong></span> Statement Grammar
</h3></div></div></div>
2052 <pre class=
"programlisting">
2053 <span><strong class=
"command">masters
</strong></span> <em class=
"replaceable"><code>name
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] { (
<em class=
"replaceable"><code>masters_list
</code></em> |
2054 <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] [
<span class=
"optional">key
<em class=
"replaceable"><code>key
</code></em></span>] ) ; [
<span class=
"optional">...
</span>] };
2057 <div class=
"sect2" lang=
"en">
2058 <div class=
"titlepage"><div><div><h3 class=
"title">
2059 <a name=
"id2577730"></a><span><strong class=
"command">masters
</strong></span> Statement Definition and
2060 Usage
</h3></div></div></div>
2061 <p><span><strong class=
"command">masters
</strong></span>
2062 lists allow for a common set of masters to be easily used by
2063 multiple stub and slave zones.
2066 <div class=
"sect2" lang=
"en">
2067 <div class=
"titlepage"><div><div><h3 class=
"title">
2068 <a name=
"id2577745"></a><span><strong class=
"command">options
</strong></span> Statement Grammar
</h3></div></div></div>
2070 This is the grammar of the
<span><strong class=
"command">options
</strong></span>
2071 statement in the
<code class=
"filename">named.conf
</code> file:
2073 <pre class=
"programlisting"><span><strong class=
"command">options
</strong></span> {
2074 [
<span class=
"optional"> attach-cache
<em class=
"replaceable"><code>cache_name
</code></em>;
</span>]
2075 [
<span class=
"optional"> version
<em class=
"replaceable"><code>version_string
</code></em>;
</span>]
2076 [
<span class=
"optional"> hostname
<em class=
"replaceable"><code>hostname_string
</code></em>;
</span>]
2077 [
<span class=
"optional"> server-id
<em class=
"replaceable"><code>server_id_string
</code></em>;
</span>]
2078 [
<span class=
"optional"> directory
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2079 [
<span class=
"optional"> key-directory
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2080 [
<span class=
"optional"> named-xfer
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2081 [
<span class=
"optional"> tkey-gssapi-credential
<em class=
"replaceable"><code>principal
</code></em>;
</span>]
2082 [
<span class=
"optional"> tkey-domain
<em class=
"replaceable"><code>domainname
</code></em>;
</span>]
2083 [
<span class=
"optional"> tkey-dhkey
<em class=
"replaceable"><code>key_name
</code></em> <em class=
"replaceable"><code>key_tag
</code></em>;
</span>]
2084 [
<span class=
"optional"> cache-file
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2085 [
<span class=
"optional"> dump-file
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2086 [
<span class=
"optional"> bindkeys-file
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2087 [
<span class=
"optional"> memstatistics
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2088 [
<span class=
"optional"> memstatistics-file
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2089 [
<span class=
"optional"> pid-file
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2090 [
<span class=
"optional"> recursing-file
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2091 [
<span class=
"optional"> statistics-file
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
2092 [
<span class=
"optional"> zone-statistics
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2093 [
<span class=
"optional"> auth-nxdomain
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2094 [
<span class=
"optional"> deallocate-on-exit
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2095 [
<span class=
"optional"> dialup
<em class=
"replaceable"><code>dialup_option
</code></em>;
</span>]
2096 [
<span class=
"optional"> fake-iquery
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2097 [
<span class=
"optional"> fetch-glue
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2098 [
<span class=
"optional"> flush-zones-on-shutdown
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2099 [
<span class=
"optional"> has-old-clients
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2100 [
<span class=
"optional"> host-statistics
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2101 [
<span class=
"optional"> host-statistics-max
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2102 [
<span class=
"optional"> minimal-responses
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2103 [
<span class=
"optional"> multiple-cnames
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2104 [
<span class=
"optional"> notify
<em class=
"replaceable"><code>yes_or_no
</code></em> |
<em class=
"replaceable"><code>explicit
</code></em> |
<em class=
"replaceable"><code>master-only
</code></em>;
</span>]
2105 [
<span class=
"optional"> recursion
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2106 [
<span class=
"optional"> rfc2308-type1
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2107 [
<span class=
"optional"> use-id-pool
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2108 [
<span class=
"optional"> maintain-ixfr-base
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2109 [
<span class=
"optional"> ixfr-from-differences (
<em class=
"replaceable"><code>yes_or_no
</code></em> |
<code class=
"constant">master
</code> |
<code class=
"constant">slave
</code>);
</span>]
2110 [
<span class=
"optional"> dnssec-enable
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2111 [
<span class=
"optional"> dnssec-validation
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2112 [
<span class=
"optional"> dnssec-lookaside (
<em class=
"replaceable"><code>auto
</code></em> |
2113 <em class=
"replaceable"><code>domain
</code></em> trust-anchor
<em class=
"replaceable"><code>domain
</code></em> );
</span>]
2114 [
<span class=
"optional"> dnssec-must-be-secure
<em class=
"replaceable"><code>domain yes_or_no
</code></em>;
</span>]
2115 [
<span class=
"optional"> dnssec-accept-expired
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2116 [
<span class=
"optional"> forward (
<em class=
"replaceable"><code>only
</code></em> |
<em class=
"replaceable"><code>first
</code></em> );
</span>]
2117 [
<span class=
"optional"> forwarders { [
<span class=
"optional"> <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ; ...
</span>] };
</span>]
2118 [
<span class=
"optional"> dual-stack-servers [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] {
2119 (
<em class=
"replaceable"><code>domain_name
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] |
2120 <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ) ;
2122 [
<span class=
"optional"> check-names (
<em class=
"replaceable"><code>master
</code></em> |
<em class=
"replaceable"><code>slave
</code></em> |
<em class=
"replaceable"><code>response
</code></em> )
2123 (
<em class=
"replaceable"><code>warn
</code></em> |
<em class=
"replaceable"><code>fail
</code></em> |
<em class=
"replaceable"><code>ignore
</code></em> );
</span>]
2124 [
<span class=
"optional"> check-dup-records (
<em class=
"replaceable"><code>warn
</code></em> |
<em class=
"replaceable"><code>fail
</code></em> |
<em class=
"replaceable"><code>ignore
</code></em> );
</span>]
2125 [
<span class=
"optional"> check-mx (
<em class=
"replaceable"><code>warn
</code></em> |
<em class=
"replaceable"><code>fail
</code></em> |
<em class=
"replaceable"><code>ignore
</code></em> );
</span>]
2126 [
<span class=
"optional"> check-wildcard
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2127 [
<span class=
"optional"> check-integrity
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2128 [
<span class=
"optional"> check-mx-cname (
<em class=
"replaceable"><code>warn
</code></em> |
<em class=
"replaceable"><code>fail
</code></em> |
<em class=
"replaceable"><code>ignore
</code></em> );
</span>]
2129 [
<span class=
"optional"> check-srv-cname (
<em class=
"replaceable"><code>warn
</code></em> |
<em class=
"replaceable"><code>fail
</code></em> |
<em class=
"replaceable"><code>ignore
</code></em> );
</span>]
2130 [
<span class=
"optional"> check-sibling
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2131 [
<span class=
"optional"> allow-notify {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2132 [
<span class=
"optional"> allow-query {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2133 [
<span class=
"optional"> allow-query-on {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2134 [
<span class=
"optional"> allow-query-cache {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2135 [
<span class=
"optional"> allow-query-cache-on {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2136 [
<span class=
"optional"> allow-transfer {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2137 [
<span class=
"optional"> allow-recursion {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2138 [
<span class=
"optional"> allow-recursion-on {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2139 [
<span class=
"optional"> allow-update {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2140 [
<span class=
"optional"> allow-update-forwarding {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2141 [
<span class=
"optional"> update-check-ksk
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2142 [
<span class=
"optional"> dnssec-dnskey-kskonly
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2143 [
<span class=
"optional"> dnssec-secure-to-insecure
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2144 [
<span class=
"optional"> try-tcp-refresh
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2145 [
<span class=
"optional"> allow-v6-synthesis {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2146 [
<span class=
"optional"> blackhole {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2147 [
<span class=
"optional"> use-v4-udp-ports {
<em class=
"replaceable"><code>port_list
</code></em> };
</span>]
2148 [
<span class=
"optional"> avoid-v4-udp-ports {
<em class=
"replaceable"><code>port_list
</code></em> };
</span>]
2149 [
<span class=
"optional"> use-v6-udp-ports {
<em class=
"replaceable"><code>port_list
</code></em> };
</span>]
2150 [
<span class=
"optional"> avoid-v6-udp-ports {
<em class=
"replaceable"><code>port_list
</code></em> };
</span>]
2151 [
<span class=
"optional"> listen-on [
<span class=
"optional"> port
<em class=
"replaceable"><code>ip_port
</code></em> </span>] {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2152 [
<span class=
"optional"> listen-on-v6 [
<span class=
"optional"> port
<em class=
"replaceable"><code>ip_port
</code></em> </span>] {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
2153 [
<span class=
"optional"> query-source ( (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
2154 [
<span class=
"optional"> port (
<em class=
"replaceable"><code>ip_port
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>] |
2155 [
<span class=
"optional"> address (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>]
2156 [
<span class=
"optional"> port (
<em class=
"replaceable"><code>ip_port
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>] ) ;
</span>]
2157 [
<span class=
"optional"> query-source-v6 ( (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
2158 [
<span class=
"optional"> port (
<em class=
"replaceable"><code>ip_port
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>] |
2159 [
<span class=
"optional"> address (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>]
2160 [
<span class=
"optional"> port (
<em class=
"replaceable"><code>ip_port
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>] ) ;
</span>]
2161 [
<span class=
"optional"> use-queryport-pool
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2162 [
<span class=
"optional"> queryport-pool-ports
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2163 [
<span class=
"optional"> queryport-pool-updateinterval
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2164 [
<span class=
"optional"> max-transfer-time-in
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2165 [
<span class=
"optional"> max-transfer-time-out
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2166 [
<span class=
"optional"> max-transfer-idle-in
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2167 [
<span class=
"optional"> max-transfer-idle-out
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2168 [
<span class=
"optional"> tcp-clients
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2169 [
<span class=
"optional"> reserved-sockets
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2170 [
<span class=
"optional"> recursive-clients
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2171 [
<span class=
"optional"> serial-query-rate
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2172 [
<span class=
"optional"> serial-queries
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2173 [
<span class=
"optional"> tcp-listen-queue
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2174 [
<span class=
"optional"> transfer-format
<em class=
"replaceable"><code>( one-answer | many-answers )
</code></em>;
</span>]
2175 [
<span class=
"optional"> transfers-in
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2176 [
<span class=
"optional"> transfers-out
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2177 [
<span class=
"optional"> transfers-per-ns
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2178 [
<span class=
"optional"> transfer-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
2179 [
<span class=
"optional"> transfer-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
2180 [
<span class=
"optional"> alt-transfer-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
2181 [
<span class=
"optional"> alt-transfer-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>)
2182 [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
2183 [
<span class=
"optional"> use-alt-transfer-source
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2184 [
<span class=
"optional"> notify-delay
<em class=
"replaceable"><code>seconds
</code></em> ;
</span>]
2185 [
<span class=
"optional"> notify-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
2186 [
<span class=
"optional"> notify-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
2187 [
<span class=
"optional"> notify-to-soa
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2188 [
<span class=
"optional"> also-notify {
<em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
2189 [
<span class=
"optional"> <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ; ...
</span>] };
</span>]
2190 [
<span class=
"optional"> max-ixfr-log-size
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2191 [
<span class=
"optional"> max-journal-size
<em class=
"replaceable"><code>size_spec
</code></em>;
</span>]
2192 [
<span class=
"optional"> coresize
<em class=
"replaceable"><code>size_spec
</code></em> ;
</span>]
2193 [
<span class=
"optional"> datasize
<em class=
"replaceable"><code>size_spec
</code></em> ;
</span>]
2194 [
<span class=
"optional"> files
<em class=
"replaceable"><code>size_spec
</code></em> ;
</span>]
2195 [
<span class=
"optional"> stacksize
<em class=
"replaceable"><code>size_spec
</code></em> ;
</span>]
2196 [
<span class=
"optional"> cleaning-interval
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2197 [
<span class=
"optional"> heartbeat-interval
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2198 [
<span class=
"optional"> interface-interval
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2199 [
<span class=
"optional"> statistics-interval
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2200 [
<span class=
"optional"> topology {
<em class=
"replaceable"><code>address_match_list
</code></em> }
</span>];
2201 [
<span class=
"optional"> sortlist {
<em class=
"replaceable"><code>address_match_list
</code></em> }
</span>];
2202 [
<span class=
"optional"> rrset-order {
<em class=
"replaceable"><code>order_spec
</code></em> ; [
<span class=
"optional"> <em class=
"replaceable"><code>order_spec
</code></em> ; ...
</span>]
</span>] };
2203 [
<span class=
"optional"> lame-ttl
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2204 [
<span class=
"optional"> max-ncache-ttl
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2205 [
<span class=
"optional"> max-cache-ttl
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2206 [
<span class=
"optional"> sig-validity-interval
<em class=
"replaceable"><code>number
</code></em> [
<span class=
"optional"><em class=
"replaceable"><code>number
</code></em></span>] ;
</span>]
2207 [
<span class=
"optional"> sig-signing-nodes
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
2208 [
<span class=
"optional"> sig-signing-signatures
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
2209 [
<span class=
"optional"> sig-signing-type
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
2210 [
<span class=
"optional"> min-roots
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2211 [
<span class=
"optional"> use-ixfr
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2212 [
<span class=
"optional"> provide-ixfr
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2213 [
<span class=
"optional"> request-ixfr
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2214 [
<span class=
"optional"> treat-cr-as-space
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2215 [
<span class=
"optional"> min-refresh-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
2216 [
<span class=
"optional"> max-refresh-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
2217 [
<span class=
"optional"> min-retry-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
2218 [
<span class=
"optional"> max-retry-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
2219 [
<span class=
"optional"> port
<em class=
"replaceable"><code>ip_port
</code></em>;
</span>]
2220 [
<span class=
"optional"> additional-from-auth
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2221 [
<span class=
"optional"> additional-from-cache
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2222 [
<span class=
"optional"> random-device
<em class=
"replaceable"><code>path_name
</code></em> ;
</span>]
2223 [
<span class=
"optional"> max-cache-size
<em class=
"replaceable"><code>size_spec
</code></em> ;
</span>]
2224 [
<span class=
"optional"> match-mapped-addresses
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
2225 [
<span class=
"optional"> filter-aaaa-on-v4 (
<em class=
"replaceable"><code>yes_or_no
</code></em> |
<em class=
"replaceable"><code>break-dnssec
</code></em> );
</span>]
2226 [
<span class=
"optional"> preferred-glue (
<em class=
"replaceable"><code>A
</code></em> |
<em class=
"replaceable"><code>AAAA
</code></em> |
<em class=
"replaceable"><code>NONE
</code></em> );
</span>]
2227 [
<span class=
"optional"> edns-udp-size
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2228 [
<span class=
"optional"> max-udp-size
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2229 [
<span class=
"optional"> root-delegation-only [
<span class=
"optional"> exclude {
<em class=
"replaceable"><code>namelist
</code></em> }
</span>] ;
</span>]
2230 [
<span class=
"optional"> querylog
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2231 [
<span class=
"optional"> disable-algorithms
<em class=
"replaceable"><code>domain
</code></em> {
<em class=
"replaceable"><code>algorithm
</code></em>;
2232 [
<span class=
"optional"> <em class=
"replaceable"><code>algorithm
</code></em>;
</span>] };
</span>]
2233 [
<span class=
"optional"> acache-enable
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2234 [
<span class=
"optional"> acache-cleaning-interval
<em class=
"replaceable"><code>number
</code></em>;
</span>]
2235 [
<span class=
"optional"> max-acache-size
<em class=
"replaceable"><code>size_spec
</code></em> ;
</span>]
2236 [
<span class=
"optional"> clients-per-query
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
2237 [
<span class=
"optional"> max-clients-per-query
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
2238 [
<span class=
"optional"> masterfile-format (
<code class=
"constant">text
</code>|
<code class=
"constant">raw
</code>) ;
</span>]
2239 [
<span class=
"optional"> empty-server
<em class=
"replaceable"><code>name
</code></em> ;
</span>]
2240 [
<span class=
"optional"> empty-contact
<em class=
"replaceable"><code>name
</code></em> ;
</span>]
2241 [
<span class=
"optional"> empty-zones-enable
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2242 [
<span class=
"optional"> disable-empty-zone
<em class=
"replaceable"><code>zone_name
</code></em> ;
</span>]
2243 [
<span class=
"optional"> zero-no-soa-ttl
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2244 [
<span class=
"optional"> zero-no-soa-ttl-cache
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
2245 [
<span class=
"optional"> deny-answer-addresses {
<em class=
"replaceable"><code>address_match_list
</code></em> } [
<span class=
"optional"> except-from {
<em class=
"replaceable"><code>namelist
</code></em> }
</span>];
</span>]
2246 [
<span class=
"optional"> deny-answer-aliases {
<em class=
"replaceable"><code>namelist
</code></em> } [
<span class=
"optional"> except-from {
<em class=
"replaceable"><code>namelist
</code></em> }
</span>];
</span>]
2250 <div class=
"sect2" lang=
"en">
2251 <div class=
"titlepage"><div><div><h3 class=
"title">
2252 <a name=
"options"></a><span><strong class=
"command">options
</strong></span> Statement Definition and
2253 Usage
</h3></div></div></div>
2255 The
<span><strong class=
"command">options
</strong></span> statement sets up global
2257 to be used by
<acronym class=
"acronym">BIND
</acronym>. This statement
2259 once in a configuration file. If there is no
<span><strong class=
"command">options
</strong></span>
2260 statement, an options block with each option set to its default will
2263 <div class=
"variablelist"><dl>
2264 <dt><span class=
"term"><span><strong class=
"command">attach-cache
</strong></span></span></dt>
2267 Allows multiple views to share a single cache
2269 Each view has its own cache database by default, but
2270 if multiple views have the same operational policy
2271 for name resolution and caching, those views can
2272 share a single cache to save memory and possibly
2273 improve resolution efficiency by using this option.
2276 The
<span><strong class=
"command">attach-cache
</strong></span> option
2277 may also be specified in
<span><strong class=
"command">view
</strong></span>
2278 statements, in which case it overrides the
2279 global
<span><strong class=
"command">attach-cache
</strong></span> option.
2282 The
<em class=
"replaceable"><code>cache_name
</code></em> specifies
2283 the cache to be shared.
2284 When the
<span><strong class=
"command">named
</strong></span> server configures
2285 views which are supposed to share a cache, it
2286 creates a cache with the specified name for the
2287 first view of these sharing views.
2288 The rest of the views will simply refer to the
2289 already created cache.
2292 One common configuration to share a cache would be to
2293 allow all views to share a single cache.
2294 This can be done by specifying
2295 the
<span><strong class=
"command">attach-cache
</strong></span> as a global
2296 option with an arbitrary name.
2299 Another possible operation is to allow a subset of
2300 all views to share a cache while the others to
2301 retain their own caches.
2302 For example, if there are three views A, B, and C,
2303 and only A and B should share a cache, specify the
2304 <span><strong class=
"command">attach-cache
</strong></span> option as a view A (or
2305 B)'s option, referring to the other view name:
2307 <pre class=
"programlisting">
2309 // this view has its own cache
2313 // this view refers to A's cache
2317 // this view has its own cache
2322 Views that share a cache must have the same policy
2323 on configurable parameters that may affect caching.
2324 The current implementation requires the following
2325 configurable options be consistent among these
2327 <span><strong class=
"command">check-names
</strong></span>,
2328 <span><strong class=
"command">cleaning-interval
</strong></span>,
2329 <span><strong class=
"command">dnssec-accept-expired
</strong></span>,
2330 <span><strong class=
"command">dnssec-validation
</strong></span>,
2331 <span><strong class=
"command">max-cache-ttl
</strong></span>,
2332 <span><strong class=
"command">max-ncache-ttl
</strong></span>,
2333 <span><strong class=
"command">max-cache-size
</strong></span>, and
2334 <span><strong class=
"command">zero-no-soa-ttl
</strong></span>.
2337 Note that there may be other parameters that may
2338 cause confusion if they are inconsistent for
2339 different views that share a single cache.
2340 For example, if these views define different sets of
2341 forwarders that can return different answers for the
2342 same question, sharing the answer does not make
2343 sense or could even be harmful.
2344 It is administrator's responsibility to ensure
2345 configuration differences in different views do
2346 not cause disruption with a shared cache.
2349 <dt><span class=
"term"><span><strong class=
"command">directory
</strong></span></span></dt>
2351 The working directory of the server.
2352 Any non-absolute pathnames in the configuration file will be
2354 as relative to this directory. The default location for most
2356 output files (e.g.
<code class=
"filename">named.run
</code>)
2358 If a directory is not specified, the working directory
2359 defaults to `
<code class=
"filename">.
</code>', the directory from
2361 was started. The directory specified should be an absolute
2364 <dt><span class=
"term"><span><strong class=
"command">key-directory
</strong></span></span></dt>
2366 When performing dynamic update of secure zones, the
2367 directory where the public and private DNSSEC key files
2368 should be found, if different than the current working
2369 directory. (Note that this option has no effect on the
2370 paths for files containing non-DNSSEC keys such as
2371 <code class=
"filename">bind.keys
</code>,
2372 <code class=
"filename">rndc.key
</code> or
2373 <code class=
"filename">session.key
</code>.)
2375 <dt><span class=
"term"><span><strong class=
"command">named-xfer
</strong></span></span></dt>
2377 <span class=
"emphasis"><em>This option is obsolete.
</em></span> It
2378 was used in
<acronym class=
"acronym">BIND
</acronym> 8 to specify
2379 the pathname to the
<span><strong class=
"command">named-xfer
</strong></span>
2380 program. In
<acronym class=
"acronym">BIND
</acronym> 9, no separate
2381 <span><strong class=
"command">named-xfer
</strong></span> program is needed;
2382 its functionality is built into the name server.
2384 <dt><span class=
"term"><span><strong class=
"command">tkey-gssapi-credential
</strong></span></span></dt>
2386 The security credential with which the server should
2387 authenticate keys requested by the GSS-TSIG protocol.
2388 Currently only Kerberos
5 authentication is available
2389 and the credential is a Kerberos principal which
2390 the server can acquire through the default system
2391 key file, normally
<code class=
"filename">/etc/krb5.keytab
</code>.
2392 Normally this principal is of the form
2393 "<strong class="userinput
"><code>dns/</code></strong><code class="varname
">server.domain</code>".
2394 To use GSS-TSIG,
<span><strong class=
"command">tkey-domain
</strong></span>
2397 <dt><span class=
"term"><span><strong class=
"command">tkey-domain
</strong></span></span></dt>
2399 The domain appended to the names of all shared keys
2400 generated with
<span><strong class=
"command">TKEY
</strong></span>. When a
2401 client requests a
<span><strong class=
"command">TKEY
</strong></span> exchange,
2402 it may or may not specify the desired name for the
2403 key. If present, the name of the shared key will
2404 be
<code class=
"varname">client specified part
</code> +
2405 <code class=
"varname">tkey-domain
</code>. Otherwise, the
2406 name of the shared key will be
<code class=
"varname">random hex
2407 digits
</code> +
<code class=
"varname">tkey-domain
</code>.
2408 In most cases, the
<span><strong class=
"command">domainname
</strong></span>
2409 should be the server's domain name, or an otherwise
2410 non-existent subdomain like
2411 "_tkey.<code class="varname
">domainname</code>". If you are
2412 using GSS-TSIG, this variable must be defined.
2414 <dt><span class=
"term"><span><strong class=
"command">tkey-dhkey
</strong></span></span></dt>
2416 The Diffie-Hellman key used by the server
2417 to generate shared keys with clients using the Diffie-Hellman
2419 of
<span><strong class=
"command">TKEY
</strong></span>. The server must be
2421 public and private keys from files in the working directory.
2423 most cases, the keyname should be the server's host name.
2425 <dt><span class=
"term"><span><strong class=
"command">cache-file
</strong></span></span></dt>
2427 This is for testing only. Do not use.
2429 <dt><span class=
"term"><span><strong class=
"command">dump-file
</strong></span></span></dt>
2431 The pathname of the file the server dumps
2432 the database to when instructed to do so with
2433 <span><strong class=
"command">rndc dumpdb
</strong></span>.
2434 If not specified, the default is
<code class=
"filename">named_dump.db
</code>.
2436 <dt><span class=
"term"><span><strong class=
"command">memstatistics-file
</strong></span></span></dt>
2438 The pathname of the file the server writes memory
2439 usage statistics to on exit. If not specified,
2440 the default is
<code class=
"filename">named.memstats
</code>.
2442 <dt><span class=
"term"><span><strong class=
"command">pid-file
</strong></span></span></dt>
2444 The pathname of the file the server writes its process ID
2445 in. If not specified, the default is
2446 <code class=
"filename">/var/run/named/named.pid
</code>.
2447 The PID file is used by programs that want to send signals to
2449 name server. Specifying
<span><strong class=
"command">pid-file none
</strong></span> disables the
2450 use of a PID file
— no file will be written and any
2451 existing one will be removed. Note that
<span><strong class=
"command">none
</strong></span>
2452 is a keyword, not a filename, and therefore is not enclosed
2456 <dt><span class=
"term"><span><strong class=
"command">recursing-file
</strong></span></span></dt>
2458 The pathname of the file the server dumps
2459 the queries that are currently recursing when instructed
2460 to do so with
<span><strong class=
"command">rndc recursing
</strong></span>.
2461 If not specified, the default is
<code class=
"filename">named.recursing
</code>.
2463 <dt><span class=
"term"><span><strong class=
"command">statistics-file
</strong></span></span></dt>
2465 The pathname of the file the server appends statistics
2466 to when instructed to do so using
<span><strong class=
"command">rndc stats
</strong></span>.
2467 If not specified, the default is
<code class=
"filename">named.stats
</code> in the
2468 server's current directory. The format of the file is
2470 in
<a href=
"Bv9ARM.ch06.html#statsfile" title=
"The Statistics File">the section called
“The Statistics File
”</a>.
2472 <dt><span class=
"term"><span><strong class=
"command">bindkeys-file
</strong></span></span></dt>
2474 The pathname of a file to override the built-in trusted
2475 keys provided by
<span><strong class=
"command">named
</strong></span>.
2476 See the discussion of
<span><strong class=
"command">dnssec-lookaside
</strong></span>
2477 for details. If not specified, the default is
2478 <code class=
"filename">/etc/bind.keys
</code>.
2480 <dt><span class=
"term"><span><strong class=
"command">session-keyfile
</strong></span></span></dt>
2482 The pathname of the file into which to write a TSIG
2483 session key generated by
<span><strong class=
"command">named
</strong></span> for use by
2484 <span><strong class=
"command">nsupdate -l
</strong></span>. If not specified, the
2485 default is
<code class=
"filename">/var/run/named/session.key
</code>.
2486 (See
<a href=
"Bv9ARM.ch06.html#dynamic_update_policies" title=
"Dynamic Update Policies">the section called
“Dynamic Update Policies
”</a>, and in
2487 particular the discussion of the
2488 <span><strong class=
"command">update-policy
</strong></span> statement's
2489 <strong class=
"userinput"><code>local
</code></strong> option for more
2490 information about this feature.)
2492 <dt><span class=
"term"><span><strong class=
"command">session-keyname
</strong></span></span></dt>
2494 The key name to use for the TSIG session key.
2495 If not specified, the default is
"local-ddns".
2497 <dt><span class=
"term"><span><strong class=
"command">session-keyalg
</strong></span></span></dt>
2499 The algorithm to use for the TSIG session key.
2500 Valid values are hmac-sha1, hmac-sha224, hmac-sha256,
2501 hmac-sha384, hmac-sha512 and hmac-md5. If not
2502 specified, the default is hmac-sha256.
2504 <dt><span class=
"term"><span><strong class=
"command">session-keyfile
</strong></span></span></dt>
2506 The pathname of the file into which to write a session TSIG
2507 key for use by
<span><strong class=
"command">nsupdate -l
</strong></span>. (See the
2508 discussion of the
<span><strong class=
"command">update-policy
</strong></span>
2509 statement's
<strong class=
"userinput"><code>local
</code></strong> option for more
2510 details on this feature.)
2512 <dt><span class=
"term"><span><strong class=
"command">port
</strong></span></span></dt>
2514 The UDP/TCP port number the server uses for
2515 receiving and sending DNS protocol traffic.
2516 The default is
53. This option is mainly intended for server
2518 a server using a port other than
53 will not be able to
2522 <dt><span class=
"term"><span><strong class=
"command">random-device
</strong></span></span></dt>
2524 The source of entropy to be used by the server. Entropy is
2526 for DNSSEC operations, such as TKEY transactions and dynamic
2528 zones. This options specifies the device (or file) from which
2530 entropy. If this is a file, operations requiring entropy will
2532 file has been exhausted. If not specified, the default value
2534 <code class=
"filename">/dev/random
</code>
2535 (or equivalent) when present, and none otherwise. The
2536 <span><strong class=
"command">random-device
</strong></span> option takes
2538 the initial configuration load at server startup time and
2539 is ignored on subsequent reloads.
2541 <dt><span class=
"term"><span><strong class=
"command">preferred-glue
</strong></span></span></dt>
2543 If specified, the listed type (A or AAAA) will be emitted
2545 in the additional section of a query response.
2546 The default is not to prefer any type (NONE).
2549 <a name=
"root_delegation_only"></a><span class=
"term"><span><strong class=
"command">root-delegation-only
</strong></span></span>
2553 Turn on enforcement of delegation-only in TLDs
2554 (top level domains) and root zones with an optional
2558 DS queries are expected to be made to and be answered by
2559 delegation only zones. Such queries and responses are
2560 treated as an exception to delegation-only processing
2561 and are not converted to NXDOMAIN responses provided
2562 a CNAME is not discovered at the query name.
2565 If a delegation only zone server also serves a child
2566 zone it is not always possible to determine whether
2567 an answer comes from the delegation only zone or the
2568 child zone. SOA NS and DNSKEY records are apex
2569 only records and a matching response that contains
2570 these records or DS is treated as coming from a
2571 child zone. RRSIG records are also examined to see
2572 if they are signed by a child zone or not. The
2573 authority section is also examined to see if there
2574 is evidence that the answer is from the child zone.
2575 Answers that are determined to be from a child zone
2576 are not converted to NXDOMAIN responses. Despite
2577 all these checks there is still a possibility of
2578 false negatives when a child zone is being served.
2581 Similarly false positives can arise from empty nodes
2582 (no records at the name) in the delegation only zone
2583 when the query type is not ANY.
2586 Note some TLDs are not delegation only (e.g.
"DE",
"LV",
2587 "US" and
"MUSEUM"). This list is not exhaustive.
2589 <pre class=
"programlisting">
2591 root-delegation-only exclude {
"de";
"lv";
"us";
"museum"; };
2595 <dt><span class=
"term"><span><strong class=
"command">disable-algorithms
</strong></span></span></dt>
2597 Disable the specified DNSSEC algorithms at and below the
2599 Multiple
<span><strong class=
"command">disable-algorithms
</strong></span>
2600 statements are allowed.
2601 Only the most specific will be applied.
2603 <dt><span class=
"term"><span><strong class=
"command">dnssec-lookaside
</strong></span></span></dt>
2606 When set,
<span><strong class=
"command">dnssec-lookaside
</strong></span> provides the
2607 validator with an alternate method to validate DNSKEY
2608 records at the top of a zone. When a DNSKEY is at or
2609 below a domain specified by the deepest
2610 <span><strong class=
"command">dnssec-lookaside
</strong></span>, and the normal DNSSEC
2611 validation has left the key untrusted, the trust-anchor
2612 will be appended to the key name and a DLV record will be
2613 looked up to see if it can validate the key. If the DLV
2614 record validates a DNSKEY (similarly to the way a DS
2615 record does) the DNSKEY RRset is deemed to be trusted.
2618 If
<span><strong class=
"command">dnssec-lookaside
</strong></span> is set to
2619 <strong class=
"userinput"><code>auto
</code></strong>, then built-in default
2620 values for the DLV domain and trust anchor will be
2621 used, along with a built-in key for validation.
2624 The default DLV key is stored in the file
2625 <code class=
"filename">bind.keys
</code>, which
2626 <span><strong class=
"command">named
</strong></span> loads at startup if
2627 <span><strong class=
"command">dnssec-lookaside
</strong></span> is set to
2628 <code class=
"constant">auto
</code>. A copy of that file is
2629 installed along with
<acronym class=
"acronym">BIND
</acronym> 9, and is
2630 current as of the release date. If the DLV key expires, a
2631 new copy of
<code class=
"filename">bind.keys
</code> can be downloaded
2632 from
<a href=
"" target=
"_top">https://www.isc.org/solutions/dlv
</a>.
2635 (To prevent problems if
<code class=
"filename">bind.keys
</code> is
2636 not found, the current key is also compiled in to
2637 <span><strong class=
"command">named
</strong></span>. Relying on this is not
2638 recommended, however, as it requires
<span><strong class=
"command">named
</strong></span>
2639 to be recompiled with a new key when the DLV key expires.)
2642 NOTE: Using
<code class=
"filename">bind.keys
</code> to store
2643 locally-configured keys is possible, but not
2644 recommended, as the file will be overwritten whenever
2645 <acronym class=
"acronym">BIND
</acronym> 9 is re-installed or upgraded.
2648 <dt><span class=
"term"><span><strong class=
"command">dnssec-must-be-secure
</strong></span></span></dt>
2650 Specify hierarchies which must be or may not be secure
2651 (signed and validated). If
<strong class=
"userinput"><code>yes
</code></strong>,
2652 then
<span><strong class=
"command">named
</strong></span> will only accept answers if
2653 they are secure. If
<strong class=
"userinput"><code>no
</code></strong>, then normal
2654 DNSSEC validation applies allowing for insecure answers to
2655 be accepted. The specified domain must be under a
2656 <span><strong class=
"command">trusted-keys
</strong></span> or
2657 <span><strong class=
"command">managed-keys
</strong></span> statement, or
2658 <span><strong class=
"command">dnssec-lookaside
</strong></span> must be active.
2661 <div class=
"sect3" lang=
"en">
2662 <div class=
"titlepage"><div><div><h4 class=
"title">
2663 <a name=
"boolean_options"></a>Boolean Options
</h4></div></div></div>
2664 <div class=
"variablelist"><dl>
2665 <dt><span class=
"term"><span><strong class=
"command">auth-nxdomain
</strong></span></span></dt>
2667 If
<strong class=
"userinput"><code>yes
</code></strong>, then the
<span><strong class=
"command">AA
</strong></span> bit
2668 is always set on NXDOMAIN responses, even if the server is
2670 authoritative. The default is
<strong class=
"userinput"><code>no
</code></strong>;
2672 a change from
<acronym class=
"acronym">BIND
</acronym> 8. If you
2673 are using very old DNS software, you
2674 may need to set it to
<strong class=
"userinput"><code>yes
</code></strong>.
2676 <dt><span class=
"term"><span><strong class=
"command">deallocate-on-exit
</strong></span></span></dt>
2678 This option was used in
<acronym class=
"acronym">BIND
</acronym>
2679 8 to enable checking
2680 for memory leaks on exit.
<acronym class=
"acronym">BIND
</acronym> 9 ignores the option and always performs
2683 <dt><span class=
"term"><span><strong class=
"command">memstatistics
</strong></span></span></dt>
2685 Write memory statistics to the file specified by
2686 <span><strong class=
"command">memstatistics-file
</strong></span> at exit.
2687 The default is
<strong class=
"userinput"><code>no
</code></strong> unless
2688 '-m record' is specified on the command line in
2689 which case it is
<strong class=
"userinput"><code>yes
</code></strong>.
2691 <dt><span class=
"term"><span><strong class=
"command">dialup
</strong></span></span></dt>
2694 If
<strong class=
"userinput"><code>yes
</code></strong>, then the
2695 server treats all zones as if they are doing zone transfers
2697 a dial-on-demand dialup link, which can be brought up by
2699 originating from this server. This has different effects
2701 to zone type and concentrates the zone maintenance so that
2703 happens in a short interval, once every
<span><strong class=
"command">heartbeat-interval
</strong></span> and
2704 hopefully during the one call. It also suppresses some of
2706 zone maintenance traffic. The default is
<strong class=
"userinput"><code>no
</code></strong>.
2709 The
<span><strong class=
"command">dialup
</strong></span> option
2710 may also be specified in the
<span><strong class=
"command">view
</strong></span> and
2711 <span><strong class=
"command">zone
</strong></span> statements,
2712 in which case it overrides the global
<span><strong class=
"command">dialup
</strong></span>
2716 If the zone is a master zone, then the server will send out a
2718 request to all the slaves (default). This should trigger the
2720 number check in the slave (providing it supports NOTIFY)
2722 to verify the zone while the connection is active.
2723 The set of servers to which NOTIFY is sent can be controlled
2725 <span><strong class=
"command">notify
</strong></span> and
<span><strong class=
"command">also-notify
</strong></span>.
2729 zone is a slave or stub zone, then the server will suppress
2731 "zone up to date" (refresh) queries and only perform them
2733 <span><strong class=
"command">heartbeat-interval
</strong></span> expires in
2738 Finer control can be achieved by using
2739 <strong class=
"userinput"><code>notify
</code></strong> which only sends NOTIFY
2741 <strong class=
"userinput"><code>notify-passive
</code></strong> which sends NOTIFY
2743 suppresses the normal refresh queries,
<strong class=
"userinput"><code>refresh
</code></strong>
2744 which suppresses normal refresh processing and sends refresh
2746 when the
<span><strong class=
"command">heartbeat-interval
</strong></span>
2748 <strong class=
"userinput"><code>passive
</code></strong> which just disables normal
2752 <div class=
"informaltable"><table border=
"1">
2784 <p><span><strong class=
"command">no
</strong></span> (default)
</p>
2804 <p><span><strong class=
"command">yes
</strong></span></p>
2824 <p><span><strong class=
"command">notify
</strong></span></p>
2844 <p><span><strong class=
"command">refresh
</strong></span></p>
2864 <p><span><strong class=
"command">passive
</strong></span></p>
2884 <p><span><strong class=
"command">notify-passive
</strong></span></p>
2905 Note that normal NOTIFY processing is not affected by
2906 <span><strong class=
"command">dialup
</strong></span>.
2909 <dt><span class=
"term"><span><strong class=
"command">fake-iquery
</strong></span></span></dt>
2911 In
<acronym class=
"acronym">BIND
</acronym> 8, this option
2912 enabled simulating the obsolete DNS query type
2913 IQUERY.
<acronym class=
"acronym">BIND
</acronym> 9 never does
2916 <dt><span class=
"term"><span><strong class=
"command">fetch-glue
</strong></span></span></dt>
2918 This option is obsolete.
2919 In BIND
8,
<strong class=
"userinput"><code>fetch-glue yes
</code></strong>
2920 caused the server to attempt to fetch glue resource records
2922 didn't have when constructing the additional
2923 data section of a response. This is now considered a bad
2925 and BIND
9 never does it.
2927 <dt><span class=
"term"><span><strong class=
"command">flush-zones-on-shutdown
</strong></span></span></dt>
2929 When the nameserver exits due receiving SIGTERM,
2930 flush or do not flush any pending zone writes. The default
2932 <span><strong class=
"command">flush-zones-on-shutdown
</strong></span> <strong class=
"userinput"><code>no
</code></strong>.
2934 <dt><span class=
"term"><span><strong class=
"command">has-old-clients
</strong></span></span></dt>
2936 This option was incorrectly implemented
2937 in
<acronym class=
"acronym">BIND
</acronym> 8, and is ignored by
<acronym class=
"acronym">BIND
</acronym> 9.
2938 To achieve the intended effect
2940 <span><strong class=
"command">has-old-clients
</strong></span> <strong class=
"userinput"><code>yes
</code></strong>, specify
2941 the two separate options
<span><strong class=
"command">auth-nxdomain
</strong></span> <strong class=
"userinput"><code>yes
</code></strong>
2942 and
<span><strong class=
"command">rfc2308-type1
</strong></span> <strong class=
"userinput"><code>no
</code></strong> instead.
2944 <dt><span class=
"term"><span><strong class=
"command">host-statistics
</strong></span></span></dt>
2946 In BIND
8, this enables keeping of
2947 statistics for every host that the name server interacts
2949 Not implemented in BIND
9.
2951 <dt><span class=
"term"><span><strong class=
"command">maintain-ixfr-base
</strong></span></span></dt>
2953 <span class=
"emphasis"><em>This option is obsolete
</em></span>.
2954 It was used in
<acronym class=
"acronym">BIND
</acronym> 8 to
2955 determine whether a transaction log was
2956 kept for Incremental Zone Transfer.
<acronym class=
"acronym">BIND
</acronym> 9 maintains a transaction
2957 log whenever possible. If you need to disable outgoing
2959 transfers, use
<span><strong class=
"command">provide-ixfr
</strong></span> <strong class=
"userinput"><code>no
</code></strong>.
2961 <dt><span class=
"term"><span><strong class=
"command">minimal-responses
</strong></span></span></dt>
2963 If
<strong class=
"userinput"><code>yes
</code></strong>, then when generating
2964 responses the server will only add records to the authority
2965 and additional data sections when they are required (e.g.
2966 delegations, negative responses). This may improve the
2967 performance of the server.
2968 The default is
<strong class=
"userinput"><code>no
</code></strong>.
2970 <dt><span class=
"term"><span><strong class=
"command">multiple-cnames
</strong></span></span></dt>
2972 This option was used in
<acronym class=
"acronym">BIND
</acronym> 8 to allow
2973 a domain name to have multiple CNAME records in violation of
2974 the DNS standards.
<acronym class=
"acronym">BIND
</acronym> 9.2 onwards
2975 always strictly enforces the CNAME rules both in master
2976 files and dynamic updates.
2978 <dt><span class=
"term"><span><strong class=
"command">notify
</strong></span></span></dt>
2981 If
<strong class=
"userinput"><code>yes
</code></strong> (the default),
2982 DNS NOTIFY messages are sent when a zone the server is
2984 changes, see
<a href=
"Bv9ARM.ch04.html#notify" title=
"Notify">the section called
“Notify
”</a>. The messages are
2986 servers listed in the zone's NS records (except the master
2988 in the SOA MNAME field), and to any servers listed in the
2989 <span><strong class=
"command">also-notify
</strong></span> option.
2992 If
<strong class=
"userinput"><code>master-only
</code></strong>, notifies are only
2995 If
<strong class=
"userinput"><code>explicit
</code></strong>, notifies are sent only
2997 servers explicitly listed using
<span><strong class=
"command">also-notify
</strong></span>.
2998 If
<strong class=
"userinput"><code>no
</code></strong>, no notifies are sent.
3001 The
<span><strong class=
"command">notify
</strong></span> option may also be
3002 specified in the
<span><strong class=
"command">zone
</strong></span>
3004 in which case it overrides the
<span><strong class=
"command">options notify
</strong></span> statement.
3005 It would only be necessary to turn off this option if it
3010 <dt><span class=
"term"><span><strong class=
"command">notify-to-soa
</strong></span></span></dt>
3012 If
<strong class=
"userinput"><code>yes
</code></strong> do not check the nameservers
3013 in the NS RRset against the SOA MNAME. Normally a NOTIFY
3014 message is not sent to the SOA MNAME (SOA ORIGIN) as it is
3015 supposed to contain the name of the ultimate master.
3016 Sometimes, however, a slave is listed as the SOA MNAME in
3017 hidden master configurations and in that case you would
3018 want the ultimate master to still send NOTIFY messages to
3019 all the nameservers listed in the NS RRset.
3021 <dt><span class=
"term"><span><strong class=
"command">recursion
</strong></span></span></dt>
3023 If
<strong class=
"userinput"><code>yes
</code></strong>, and a
3024 DNS query requests recursion, then the server will attempt
3026 all the work required to answer the query. If recursion is
3028 and the server does not already know the answer, it will
3030 referral response. The default is
3031 <strong class=
"userinput"><code>yes
</code></strong>.
3032 Note that setting
<span><strong class=
"command">recursion no
</strong></span> does not prevent
3033 clients from getting data from the server's cache; it only
3034 prevents new data from being cached as an effect of client
3036 Caching may still occur as an effect the server's internal
3037 operation, such as NOTIFY address lookups.
3038 See also
<span><strong class=
"command">fetch-glue
</strong></span> above.
3040 <dt><span class=
"term"><span><strong class=
"command">rfc2308-type1
</strong></span></span></dt>
3043 Setting this to
<strong class=
"userinput"><code>yes
</code></strong> will
3044 cause the server to send NS records along with the SOA
3046 answers. The default is
<strong class=
"userinput"><code>no
</code></strong>.
3048 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
3049 <h3 class=
"title">Note
</h3>
3051 Not yet implemented in
<acronym class=
"acronym">BIND
</acronym>
3056 <dt><span class=
"term"><span><strong class=
"command">use-id-pool
</strong></span></span></dt>
3058 <span class=
"emphasis"><em>This option is obsolete
</em></span>.
3059 <acronym class=
"acronym">BIND
</acronym> 9 always allocates query
3062 <dt><span class=
"term"><span><strong class=
"command">zone-statistics
</strong></span></span></dt>
3064 If
<strong class=
"userinput"><code>yes
</code></strong>, the server will collect
3065 statistical data on all zones (unless specifically turned
3067 on a per-zone basis by specifying
<span><strong class=
"command">zone-statistics no
</strong></span>
3068 in the
<span><strong class=
"command">zone
</strong></span> statement).
3069 The default is
<strong class=
"userinput"><code>no
</code></strong>.
3070 These statistics may be accessed
3071 using
<span><strong class=
"command">rndc stats
</strong></span>, which will
3072 dump them to the file listed
3073 in the
<span><strong class=
"command">statistics-file
</strong></span>. See
3074 also
<a href=
"Bv9ARM.ch06.html#statsfile" title=
"The Statistics File">the section called
“The Statistics File
”</a>.
3076 <dt><span class=
"term"><span><strong class=
"command">use-ixfr
</strong></span></span></dt>
3078 <span class=
"emphasis"><em>This option is obsolete
</em></span>.
3079 If you need to disable IXFR to a particular server or
3081 the information on the
<span><strong class=
"command">provide-ixfr
</strong></span> option
3082 in
<a href=
"Bv9ARM.ch06.html#server_statement_definition_and_usage" title=
"server Statement Definition and
3083 Usage">the section called
“<span><strong class=
"command">server
</strong></span> Statement Definition and
3086 <a href=
"Bv9ARM.ch04.html#incremental_zone_transfers" title=
"Incremental Zone Transfers (IXFR)">the section called
“Incremental Zone Transfers (IXFR)
”</a>.
3088 <dt><span class=
"term"><span><strong class=
"command">provide-ixfr
</strong></span></span></dt>
3090 See the description of
3091 <span><strong class=
"command">provide-ixfr
</strong></span> in
3092 <a href=
"Bv9ARM.ch06.html#server_statement_definition_and_usage" title=
"server Statement Definition and
3093 Usage">the section called
“<span><strong class=
"command">server
</strong></span> Statement Definition and
3096 <dt><span class=
"term"><span><strong class=
"command">request-ixfr
</strong></span></span></dt>
3098 See the description of
3099 <span><strong class=
"command">request-ixfr
</strong></span> in
3100 <a href=
"Bv9ARM.ch06.html#server_statement_definition_and_usage" title=
"server Statement Definition and
3101 Usage">the section called
“<span><strong class=
"command">server
</strong></span> Statement Definition and
3104 <dt><span class=
"term"><span><strong class=
"command">treat-cr-as-space
</strong></span></span></dt>
3106 This option was used in
<acronym class=
"acronym">BIND
</acronym>
3108 the server treat carriage return (
"<span><strong class="command
">\r</strong></span>") characters the same way
3109 as a space or tab character,
3110 to facilitate loading of zone files on a UNIX system that
3112 on an NT or DOS machine. In
<acronym class=
"acronym">BIND
</acronym> 9, both UNIX
"<span><strong class="command
">\n</strong></span>"
3113 and NT/DOS
"<span><strong class="command
">\r\n</strong></span>" newlines
3114 are always accepted,
3115 and the option is ignored.
3118 <span class=
"term"><span><strong class=
"command">additional-from-auth
</strong></span>,
</span><span class=
"term"><span><strong class=
"command">additional-from-cache
</strong></span></span>
3122 These options control the behavior of an authoritative
3124 answering queries which have additional data, or when
3129 When both of these options are set to
<strong class=
"userinput"><code>yes
</code></strong>
3131 query is being answered from authoritative data (a zone
3132 configured into the server), the additional data section of
3134 reply will be filled in using data from other authoritative
3136 and from the cache. In some situations this is undesirable,
3138 as when there is concern over the correctness of the cache,
3140 in servers where slave zones may be added and modified by
3141 untrusted third parties. Also, avoiding
3142 the search for this additional data will speed up server
3144 at the possible expense of additional queries to resolve
3146 otherwise be provided in the additional section.
3149 For example, if a query asks for an MX record for host
<code class=
"literal">foo.example.com
</code>,
3150 and the record found is
"<code class="literal
">MX 10 mail.example.net</code>", normally the address
3151 records (A and AAAA) for
<code class=
"literal">mail.example.net
</code> will be provided as well,
3152 if known, even though they are not in the example.com zone.
3153 Setting these options to
<span><strong class=
"command">no
</strong></span>
3154 disables this behavior and makes
3155 the server only search for additional data in the zone it
3159 These options are intended for use in authoritative-only
3160 servers, or in authoritative-only views. Attempts to set
3161 them to
<span><strong class=
"command">no
</strong></span> without also
3163 <span><strong class=
"command">recursion no
</strong></span> will cause the
3165 ignore the options and log a warning message.
3168 Specifying
<span><strong class=
"command">additional-from-cache no
</strong></span> actually
3169 disables the use of the cache not only for additional data
3171 but also when looking up the answer. This is usually the
3173 behavior in an authoritative-only server where the
3175 the cached data is an issue.
3178 When a name server is non-recursively queried for a name
3180 below the apex of any served zone, it normally answers with
3182 "upwards referral" to the root servers or the servers of
3184 known parent of the query name. Since the data in an
3186 comes from the cache, the server will not be able to provide
3188 referrals when
<span><strong class=
"command">additional-from-cache no
</strong></span>
3189 has been specified. Instead, it will respond to such
3191 with REFUSED. This should not cause any problems since
3192 upwards referrals are not required for the resolution
3196 <dt><span class=
"term"><span><strong class=
"command">match-mapped-addresses
</strong></span></span></dt>
3199 If
<strong class=
"userinput"><code>yes
</code></strong>, then an
3200 IPv4-mapped IPv6 address will match any address match
3201 list entries that match the corresponding IPv4 address.
3204 This option was introduced to work around a kernel quirk
3205 in some operating systems that causes IPv4 TCP
3206 connections, such as zone transfers, to be accepted on an
3207 IPv6 socket using mapped addresses. This caused address
3208 match lists designed for IPv4 to fail to match. However,
3209 <span><strong class=
"command">named
</strong></span> now solves this problem
3210 internally. The use of this option is discouraged.
3213 <dt><span class=
"term"><span><strong class=
"command">filter-aaaa-on-v4
</strong></span></span></dt>
3216 This option is only available when
3217 <acronym class=
"acronym">BIND
</acronym> 9 is compiled with the
3218 <strong class=
"userinput"><code>--enable-filter-aaaa
</code></strong> option on the
3219 "configure" command line. It is intended to help the
3220 transition from IPv4 to IPv6 by not giving IPv6 addresses
3221 to DNS clients unless they have connections to the IPv6
3222 Internet. This is not recommended unless absolutely
3223 necessary. The default is
<strong class=
"userinput"><code>no
</code></strong>.
3224 The
<span><strong class=
"command">filter-aaaa-on-v4
</strong></span> option
3225 may also be specified in
<span><strong class=
"command">view
</strong></span> statements
3226 to override the global
<span><strong class=
"command">filter-aaaa-on-v4
</strong></span>
3230 If
<strong class=
"userinput"><code>yes
</code></strong>,
3231 the DNS client is at an IPv4 address,
3232 and if the response does not include DNSSEC signatures,
3233 then all AAAA records are deleted from the response.
3234 This filtering applies to all responses and not only
3235 authoritative responses.
3238 If
<strong class=
"userinput"><code>break-dnssec
</code></strong>,
3239 then AAAA records are deleted even when dnssec is enabled.
3240 As suggested by the name, this makes the response not verify,
3241 because the DNSSEC protocol is designed detect deletions.
3244 This mechanism can erroneously cause other servers to
3245 not give AAAA records to their clients.
3246 A recursing server with both IPv6 and IPv4 network connections
3247 that queries an authoritative server using this mechanism
3248 via IPv4 will be denied AAAA records even if its client is
3252 This mechanism is applied to authoritative as well as
3253 non-authoritative records.
3254 A client using IPv4 that is not allowed recursion can
3255 erroneously be given AAAA records because the server is not
3256 allowed to check for A records.
3259 Some AAAA records are given to IPv4 clients in glue records.
3260 IPv4 clients that are servers can then erroneously
3261 answer requests for AAAA records received via IPv4.
3264 <dt><span class=
"term"><span><strong class=
"command">ixfr-from-differences
</strong></span></span></dt>
3267 When
<strong class=
"userinput"><code>yes
</code></strong> and the server loads a new version of a master
3268 zone from its zone file or receives a new version of a slave
3269 file by a non-incremental zone transfer, it will compare
3270 the new version to the previous one and calculate a set
3271 of differences. The differences are then logged in the
3272 zone's journal file such that the changes can be transmitted
3273 to downstream slaves as an incremental zone transfer.
3276 By allowing incremental zone transfers to be used for
3277 non-dynamic zones, this option saves bandwidth at the
3278 expense of increased CPU and memory consumption at the
3280 In particular, if the new version of a zone is completely
3281 different from the previous one, the set of differences
3282 will be of a size comparable to the combined size of the
3283 old and new zone version, and the server will need to
3284 temporarily allocate memory to hold this complete
3287 <p><span><strong class=
"command">ixfr-from-differences
</strong></span>
3288 also accepts
<span><strong class=
"command">master
</strong></span> and
3289 <span><strong class=
"command">slave
</strong></span> at the view and options
3291 <span><strong class=
"command">ixfr-from-differences
</strong></span> to be enabled for
3292 all
<span><strong class=
"command">master
</strong></span> or
3293 <span><strong class=
"command">slave
</strong></span> zones respectively.
3294 It is off by default.
3297 <dt><span class=
"term"><span><strong class=
"command">multi-master
</strong></span></span></dt>
3299 This should be set when you have multiple masters for a zone
3301 addresses refer to different machines. If
<strong class=
"userinput"><code>yes
</code></strong>,
<span><strong class=
"command">named
</strong></span> will
3303 when the serial number on the master is less than what
<span><strong class=
"command">named
</strong></span>
3305 has. The default is
<strong class=
"userinput"><code>no
</code></strong>.
3307 <dt><span class=
"term"><span><strong class=
"command">dnssec-enable
</strong></span></span></dt>
3309 Enable DNSSEC support in
<span><strong class=
"command">named
</strong></span>. Unless set to
<strong class=
"userinput"><code>yes
</code></strong>,
3310 <span><strong class=
"command">named
</strong></span> behaves as if it does not support DNSSEC.
3311 The default is
<strong class=
"userinput"><code>yes
</code></strong>.
3313 <dt><span class=
"term"><span><strong class=
"command">dnssec-validation
</strong></span></span></dt>
3315 Enable DNSSEC validation in
<span><strong class=
"command">named
</strong></span>.
3316 Note
<span><strong class=
"command">dnssec-enable
</strong></span> also needs to be
3317 set to
<strong class=
"userinput"><code>yes
</code></strong> to be effective.
3318 The default is
<strong class=
"userinput"><code>yes
</code></strong>.
3320 <dt><span class=
"term"><span><strong class=
"command">dnssec-accept-expired
</strong></span></span></dt>
3322 Accept expired signatures when verifying DNSSEC signatures.
3323 The default is
<strong class=
"userinput"><code>no
</code></strong>.
3324 Setting this option to
<strong class=
"userinput"><code>yes
</code></strong>
3325 leaves
<span><strong class=
"command">named
</strong></span> vulnerable to
3328 <dt><span class=
"term"><span><strong class=
"command">querylog
</strong></span></span></dt>
3330 Specify whether query logging should be started when
<span><strong class=
"command">named
</strong></span>
3332 If
<span><strong class=
"command">querylog
</strong></span> is not specified,
3333 then the query logging
3334 is determined by the presence of the logging category
<span><strong class=
"command">queries
</strong></span>.
3336 <dt><span class=
"term"><span><strong class=
"command">check-names
</strong></span></span></dt>
3339 This option is used to restrict the character set and syntax
3341 certain domain names in master files and/or DNS responses
3343 from the network. The default varies according to usage
3345 <span><strong class=
"command">master
</strong></span> zones the default is
<span><strong class=
"command">fail
</strong></span>.
3346 For
<span><strong class=
"command">slave
</strong></span> zones the default
3347 is
<span><strong class=
"command">warn
</strong></span>.
3348 For answers received from the network (
<span><strong class=
"command">response
</strong></span>)
3349 the default is
<span><strong class=
"command">ignore
</strong></span>.
3352 The rules for legal hostnames and mail domains are derived
3353 from RFC
952 and RFC
821 as modified by RFC
1123.
3355 <p><span><strong class=
"command">check-names
</strong></span>
3356 applies to the owner names of A, AAAA and MX records.
3357 It also applies to the domain names in the RDATA of NS, SOA,
3358 MX, and SRV records.
3359 It also applies to the RDATA of PTR records where the owner
3360 name indicated that it is a reverse lookup of a hostname
3361 (the owner name ends in IN-ADDR.ARPA, IP6.ARPA, or IP6.INT).
3364 <dt><span class=
"term"><span><strong class=
"command">check-dup-records
</strong></span></span></dt>
3366 Check master zones for records that are treated as different
3367 by DNSSEC but are semantically equal in plain DNS. The
3368 default is to
<span><strong class=
"command">warn
</strong></span>. Other possible
3369 values are
<span><strong class=
"command">fail
</strong></span> and
3370 <span><strong class=
"command">ignore
</strong></span>.
3372 <dt><span class=
"term"><span><strong class=
"command">check-mx
</strong></span></span></dt>
3374 Check whether the MX record appears to refer to a IP address.
3375 The default is to
<span><strong class=
"command">warn
</strong></span>. Other possible
3376 values are
<span><strong class=
"command">fail
</strong></span> and
3377 <span><strong class=
"command">ignore
</strong></span>.
3379 <dt><span class=
"term"><span><strong class=
"command">check-mx
</strong></span></span></dt>
3381 Check whether the MX record appears to refer to a IP address.
3382 The default is to
<span><strong class=
"command">warn
</strong></span>. Other possible
3383 values are
<span><strong class=
"command">fail
</strong></span> and
3384 <span><strong class=
"command">ignore
</strong></span>.
3386 <dt><span class=
"term"><span><strong class=
"command">check-wildcard
</strong></span></span></dt>
3388 This option is used to check for non-terminal wildcards.
3389 The use of non-terminal wildcards is almost always as a
3391 to understand the wildcard matching algorithm (RFC
1034).
3393 affects master zones. The default (
<span><strong class=
"command">yes
</strong></span>) is to check
3394 for non-terminal wildcards and issue a warning.
3396 <dt><span class=
"term"><span><strong class=
"command">check-integrity
</strong></span></span></dt>
3398 Perform post load zone integrity checks on master
3399 zones. This checks that MX and SRV records refer
3400 to address (A or AAAA) records and that glue
3401 address records exist for delegated zones. For
3402 MX and SRV records only in-zone hostnames are
3403 checked (for out-of-zone hostnames use
3404 <span><strong class=
"command">named-checkzone
</strong></span>).
3405 For NS records only names below top of zone are
3406 checked (for out-of-zone names and glue consistency
3407 checks use
<span><strong class=
"command">named-checkzone
</strong></span>).
3408 The default is
<span><strong class=
"command">yes
</strong></span>.
3410 <dt><span class=
"term"><span><strong class=
"command">check-mx-cname
</strong></span></span></dt>
3412 If
<span><strong class=
"command">check-integrity
</strong></span> is set then
3413 fail, warn or ignore MX records that refer
3414 to CNAMES. The default is to
<span><strong class=
"command">warn
</strong></span>.
3416 <dt><span class=
"term"><span><strong class=
"command">check-srv-cname
</strong></span></span></dt>
3418 If
<span><strong class=
"command">check-integrity
</strong></span> is set then
3419 fail, warn or ignore SRV records that refer
3420 to CNAMES. The default is to
<span><strong class=
"command">warn
</strong></span>.
3422 <dt><span class=
"term"><span><strong class=
"command">check-sibling
</strong></span></span></dt>
3424 When performing integrity checks, also check that
3425 sibling glue exists. The default is
<span><strong class=
"command">yes
</strong></span>.
3427 <dt><span class=
"term"><span><strong class=
"command">zero-no-soa-ttl
</strong></span></span></dt>
3429 When returning authoritative negative responses to
3430 SOA queries set the TTL of the SOA record returned in
3431 the authority section to zero.
3432 The default is
<span><strong class=
"command">yes
</strong></span>.
3434 <dt><span class=
"term"><span><strong class=
"command">zero-no-soa-ttl-cache
</strong></span></span></dt>
3436 When caching a negative response to a SOA query
3437 set the TTL to zero.
3438 The default is
<span><strong class=
"command">no
</strong></span>.
3440 <dt><span class=
"term"><span><strong class=
"command">update-check-ksk
</strong></span></span></dt>
3443 When set to the default value of
<code class=
"literal">yes
</code>,
3444 check the KSK bit in each key to determine how the key
3445 should be used when generating RRSIGs for a secure zone.
3448 Ordinarily, zone-signing keys (that is, keys without the
3449 KSK bit set) are used to sign the entire zone, while
3450 key-signing keys (keys with the KSK bit set) are only
3451 used to sign the DNSKEY RRset at the zone apex.
3452 However, if this option is set to
<code class=
"literal">no
</code>,
3453 then the KSK bit is ignored; KSKs are treated as if they
3454 were ZSKs and are used to sign the entire zone. This is
3455 similar to the
<span><strong class=
"command">dnssec-signzone -z
</strong></span>
3456 command line option.
3459 When this option is set to
<code class=
"literal">yes
</code>, there
3460 must be at least two active keys for every algorithm
3461 represented in the DNSKEY RRset: at least one KSK and one
3462 ZSK per algorithm. If there is any algorithm for which
3463 this requirement is not met, this option will be ignored
3467 <dt><span class=
"term"><span><strong class=
"command">dnssec-dnskey-kskonly
</strong></span></span></dt>
3470 When this option and
<span><strong class=
"command">update-check-ksk
</strong></span>
3471 are both set to
<code class=
"literal">yes
</code>, only key-signing
3472 keys (that is, keys with the KSK bit set) will be used
3473 to sign the DNSKEY RRset at the zone apex. Zone-signing
3474 keys (keys without the KSK bit set) will be used to sign
3475 the remainder of the zone, but not the DNSKEY RRset.
3476 This is similar to the
3477 <span><strong class=
"command">dnssec-signzone -x
</strong></span> command line option.
3480 The default is
<span><strong class=
"command">no
</strong></span>. If
3481 <span><strong class=
"command">update-check-ksk
</strong></span> is set to
3482 <code class=
"literal">no
</code>, this option is ignored.
3485 <dt><span class=
"term"><span><strong class=
"command">try-tcp-refresh
</strong></span></span></dt>
3487 Try to refresh the zone using TCP if UDP queries fail.
3488 For BIND
8 compatibility, the default is
3489 <span><strong class=
"command">yes
</strong></span>.
3491 <dt><span class=
"term"><span><strong class=
"command">dnssec-secure-to-insecure
</strong></span></span></dt>
3493 Allow a zone to transition from secure to insecure by
3494 deleting all DNSKEY records. The default is
3495 <span><strong class=
"command">no
</strong></span>.
3499 <div class=
"sect3" lang=
"en">
3500 <div class=
"titlepage"><div><div><h4 class=
"title">
3501 <a name=
"id2582885"></a>Forwarding
</h4></div></div></div>
3503 The forwarding facility can be used to create a large site-wide
3504 cache on a few servers, reducing traffic over links to external
3505 name servers. It can also be used to allow queries by servers that
3506 do not have direct access to the Internet, but wish to look up
3508 names anyway. Forwarding occurs only on those queries for which
3509 the server is not authoritative and does not have the answer in
3512 <div class=
"variablelist"><dl>
3513 <dt><span class=
"term"><span><strong class=
"command">forward
</strong></span></span></dt>
3515 This option is only meaningful if the
3516 forwarders list is not empty. A value of
<code class=
"varname">first
</code>,
3517 the default, causes the server to query the forwarders
3519 if that doesn't answer the question, the server will then
3521 the answer itself. If
<code class=
"varname">only
</code> is
3523 server will only query the forwarders.
3525 <dt><span class=
"term"><span><strong class=
"command">forwarders
</strong></span></span></dt>
3527 Specifies the IP addresses to be used
3528 for forwarding. The default is the empty list (no
3533 Forwarding can also be configured on a per-domain basis, allowing
3534 for the global forwarding options to be overridden in a variety
3535 of ways. You can set particular domains to use different
3537 or have a different
<span><strong class=
"command">forward only/first
</strong></span> behavior,
3538 or not forward at all, see
<a href=
"Bv9ARM.ch06.html#zone_statement_grammar" title=
"zone
3539 Statement Grammar">the section called
“<span><strong class=
"command">zone
</strong></span>
3540 Statement Grammar
”</a>.
3543 <div class=
"sect3" lang=
"en">
3544 <div class=
"titlepage"><div><div><h4 class=
"title">
3545 <a name=
"id2583012"></a>Dual-stack Servers
</h4></div></div></div>
3547 Dual-stack servers are used as servers of last resort to work
3549 problems in reachability due the lack of support for either IPv4
3551 on the host machine.
3553 <div class=
"variablelist"><dl>
3554 <dt><span class=
"term"><span><strong class=
"command">dual-stack-servers
</strong></span></span></dt>
3556 Specifies host names or addresses of machines with access to
3557 both IPv4 and IPv6 transports. If a hostname is used, the
3559 to resolve the name using only the transport it has. If the
3561 stacked, then the
<span><strong class=
"command">dual-stack-servers
</strong></span> have no effect unless
3562 access to a transport has been disabled on the command line
3563 (e.g.
<span><strong class=
"command">named -
4</strong></span>).
3567 <div class=
"sect3" lang=
"en">
3568 <div class=
"titlepage"><div><div><h4 class=
"title">
3569 <a name=
"access_control"></a>Access Control
</h4></div></div></div>
3571 Access to the server can be restricted based on the IP address
3572 of the requesting system. See
<a href=
"Bv9ARM.ch06.html#address_match_lists" title=
"Address Match Lists">the section called
“Address Match Lists
”</a> for
3573 details on how to specify IP address lists.
3575 <div class=
"variablelist"><dl>
3576 <dt><span class=
"term"><span><strong class=
"command">allow-notify
</strong></span></span></dt>
3578 Specifies which hosts are allowed to
3579 notify this server, a slave, of zone changes in addition
3580 to the zone masters.
3581 <span><strong class=
"command">allow-notify
</strong></span> may also be
3583 <span><strong class=
"command">zone
</strong></span> statement, in which case
3585 <span><strong class=
"command">options allow-notify
</strong></span>
3586 statement. It is only meaningful
3587 for a slave zone. If not specified, the default is to
3588 process notify messages
3589 only from a zone's master.
3591 <dt><span class=
"term"><span><strong class=
"command">allow-query
</strong></span></span></dt>
3594 Specifies which hosts are allowed to ask ordinary
3595 DNS questions.
<span><strong class=
"command">allow-query
</strong></span> may
3596 also be specified in the
<span><strong class=
"command">zone
</strong></span>
3597 statement, in which case it overrides the
3598 <span><strong class=
"command">options allow-query
</strong></span> statement.
3599 If not specified, the default is to allow queries
3602 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
3603 <h3 class=
"title">Note
</h3>
3605 <span><strong class=
"command">allow-query-cache
</strong></span> is now
3606 used to specify access to the cache.
3610 <dt><span class=
"term"><span><strong class=
"command">allow-query-on
</strong></span></span></dt>
3613 Specifies which local addresses can accept ordinary
3614 DNS questions. This makes it possible, for instance,
3615 to allow queries on internal-facing interfaces but
3616 disallow them on external-facing ones, without
3617 necessarily knowing the internal network's addresses.
3620 <span><strong class=
"command">allow-query-on
</strong></span> may
3621 also be specified in the
<span><strong class=
"command">zone
</strong></span>
3622 statement, in which case it overrides the
3623 <span><strong class=
"command">options allow-query-on
</strong></span> statement.
3626 If not specified, the default is to allow queries
3629 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
3630 <h3 class=
"title">Note
</h3>
3632 <span><strong class=
"command">allow-query-cache
</strong></span> is
3633 used to specify access to the cache.
3637 <dt><span class=
"term"><span><strong class=
"command">allow-query-cache
</strong></span></span></dt>
3639 Specifies which hosts are allowed to get answers
3640 from the cache. If
<span><strong class=
"command">allow-query-cache
</strong></span>
3641 is not set then
<span><strong class=
"command">allow-recursion
</strong></span>
3642 is used if set, otherwise
<span><strong class=
"command">allow-query
</strong></span>
3643 is used if set unless
<span><strong class=
"command">recursion no;
</strong></span> is
3644 set in which case
<span><strong class=
"command">none;
</strong></span> is used,
3645 otherwise the default (
<span><strong class=
"command">localnets;
</strong></span>
3646 <span><strong class=
"command">localhost;
</strong></span>) is used.
3648 <dt><span class=
"term"><span><strong class=
"command">allow-query-cache-on
</strong></span></span></dt>
3650 Specifies which local addresses can give answers
3651 from the cache. If not specified, the default is
3652 to allow cache queries on any address,
3653 <span><strong class=
"command">localnets
</strong></span> and
3654 <span><strong class=
"command">localhost
</strong></span>.
3656 <dt><span class=
"term"><span><strong class=
"command">allow-recursion
</strong></span></span></dt>
3658 Specifies which hosts are allowed to make recursive
3659 queries through this server. If
3660 <span><strong class=
"command">allow-recursion
</strong></span> is not set
3661 then
<span><strong class=
"command">allow-query-cache
</strong></span> is
3662 used if set, otherwise
<span><strong class=
"command">allow-query
</strong></span>
3663 is used if set, otherwise the default
3664 (
<span><strong class=
"command">localnets;
</strong></span>
3665 <span><strong class=
"command">localhost;
</strong></span>) is used.
3667 <dt><span class=
"term"><span><strong class=
"command">allow-recursion-on
</strong></span></span></dt>
3669 Specifies which local addresses can accept recursive
3670 queries. If not specified, the default is to allow
3671 recursive queries on all addresses.
3673 <dt><span class=
"term"><span><strong class=
"command">allow-update
</strong></span></span></dt>
3675 Specifies which hosts are allowed to
3676 submit Dynamic DNS updates for master zones. The default is
3678 updates from all hosts. Note that allowing updates based
3679 on the requestor's IP address is insecure; see
3680 <a href=
"Bv9ARM.ch07.html#dynamic_update_security" title=
"Dynamic Update Security">the section called
“Dynamic Update Security
”</a> for details.
3682 <dt><span class=
"term"><span><strong class=
"command">allow-update-forwarding
</strong></span></span></dt>
3685 Specifies which hosts are allowed to
3686 submit Dynamic DNS updates to slave zones to be forwarded to
3688 master. The default is
<strong class=
"userinput"><code>{ none; }
</code></strong>,
3690 means that no update forwarding will be performed. To
3692 update forwarding, specify
3693 <strong class=
"userinput"><code>allow-update-forwarding { any; };
</code></strong>.
3694 Specifying values other than
<strong class=
"userinput"><code>{ none; }
</code></strong> or
3695 <strong class=
"userinput"><code>{ any; }
</code></strong> is usually
3696 counterproductive, since
3697 the responsibility for update access control should rest
3699 master server, not the slaves.
3702 Note that enabling the update forwarding feature on a slave
3704 may expose master servers relying on insecure IP address
3706 access control to attacks; see
<a href=
"Bv9ARM.ch07.html#dynamic_update_security" title=
"Dynamic Update Security">the section called
“Dynamic Update Security
”</a>
3710 <dt><span class=
"term"><span><strong class=
"command">allow-v6-synthesis
</strong></span></span></dt>
3712 This option was introduced for the smooth transition from
3714 to A6 and from
"nibble labels" to binary labels.
3715 However, since both A6 and binary labels were then
3717 this option was also deprecated.
3718 It is now ignored with some warning messages.
3720 <dt><span class=
"term"><span><strong class=
"command">allow-transfer
</strong></span></span></dt>
3722 Specifies which hosts are allowed to
3723 receive zone transfers from the server.
<span><strong class=
"command">allow-transfer
</strong></span> may
3724 also be specified in the
<span><strong class=
"command">zone
</strong></span>
3726 case it overrides the
<span><strong class=
"command">options allow-transfer
</strong></span> statement.
3727 If not specified, the default is to allow transfers to all
3730 <dt><span class=
"term"><span><strong class=
"command">blackhole
</strong></span></span></dt>
3732 Specifies a list of addresses that the
3733 server will not accept queries from or use to resolve a
3735 from these addresses will not be responded to. The default
3736 is
<strong class=
"userinput"><code>none
</code></strong>.
3740 <div class=
"sect3" lang=
"en">
3741 <div class=
"titlepage"><div><div><h4 class=
"title">
3742 <a name=
"id2583449"></a>Interfaces
</h4></div></div></div>
3744 The interfaces and ports that the server will answer queries
3745 from may be specified using the
<span><strong class=
"command">listen-on
</strong></span> option.
<span><strong class=
"command">listen-on
</strong></span> takes
3746 an optional port and an
<code class=
"varname">address_match_list
</code>.
3747 The server will listen on all interfaces allowed by the address
3748 match list. If a port is not specified, port
53 will be used.
3751 Multiple
<span><strong class=
"command">listen-on
</strong></span> statements are
3755 <pre class=
"programlisting">listen-on {
5.6.7.8; };
3756 listen-on port
1234 { !
1.2.3.4;
1.2/
16; };
3759 will enable the name server on port
53 for the IP address
3760 5.6.7.8, and on port
1234 of an address on the machine in net
3761 1.2 that is not
1.2.3.4.
3764 If no
<span><strong class=
"command">listen-on
</strong></span> is specified, the
3765 server will listen on port
53 on all IPv4 interfaces.
3768 The
<span><strong class=
"command">listen-on-v6
</strong></span> option is used to
3769 specify the interfaces and the ports on which the server will
3771 for incoming queries sent using IPv6.
3775 <pre class=
"programlisting">{ any; }
</pre>
3778 as the
<code class=
"varname">address_match_list
</code> for the
3779 <span><strong class=
"command">listen-on-v6
</strong></span> option,
3780 the server does not bind a separate socket to each IPv6 interface
3781 address as it does for IPv4 if the operating system has enough API
3782 support for IPv6 (specifically if it conforms to RFC
3493 and RFC
3784 Instead, it listens on the IPv6 wildcard address.
3785 If the system only has incomplete API support for IPv6, however,
3786 the behavior is the same as that for IPv4.
3789 A list of particular IPv6 addresses can also be specified, in
3791 the server listens on a separate socket for each specified
3793 regardless of whether the desired API is supported by the system.
3796 Multiple
<span><strong class=
"command">listen-on-v6
</strong></span> options can
3800 <pre class=
"programlisting">listen-on-v6 { any; };
3801 listen-on-v6 port
1234 { !
2001:db8::/
32; any; };
3804 will enable the name server on port
53 for any IPv6 addresses
3805 (with a single wildcard socket),
3806 and on port
1234 of IPv6 addresses that is not in the prefix
3807 2001:db8::/
32 (with separate sockets for each matched address.)
3810 To make the server not listen on any IPv6 address, use
3812 <pre class=
"programlisting">listen-on-v6 { none; };
3815 If no
<span><strong class=
"command">listen-on-v6
</strong></span> option is
3816 specified, the server will not listen on any IPv6 address
3817 unless
<span><strong class=
"command">-
6</strong></span> is specified when
<span><strong class=
"command">named
</strong></span> is
3818 invoked. If
<span><strong class=
"command">-
6</strong></span> is specified then
3819 <span><strong class=
"command">named
</strong></span> will listen on port
53 on all IPv6 interfaces by default.
3822 <div class=
"sect3" lang=
"en">
3823 <div class=
"titlepage"><div><div><h4 class=
"title">
3824 <a name=
"query_address"></a>Query Address
</h4></div></div></div>
3826 If the server doesn't know the answer to a question, it will
3827 query other name servers.
<span><strong class=
"command">query-source
</strong></span> specifies
3828 the address and port used for such queries. For queries sent over
3829 IPv6, there is a separate
<span><strong class=
"command">query-source-v6
</strong></span> option.
3830 If
<span><strong class=
"command">address
</strong></span> is
<span><strong class=
"command">*
</strong></span> (asterisk) or is omitted,
3831 a wildcard IP address (
<span><strong class=
"command">INADDR_ANY
</strong></span>)
3835 If
<span><strong class=
"command">port
</strong></span> is
<span><strong class=
"command">*
</strong></span> or is omitted,
3836 a random port number from a pre-configured
3837 range is picked up and will be used for each query.
3838 The port range(s) is that specified in
3839 the
<span><strong class=
"command">use-v4-udp-ports
</strong></span> (for IPv4)
3840 and
<span><strong class=
"command">use-v6-udp-ports
</strong></span> (for IPv6)
3841 options, excluding the ranges specified in
3842 the
<span><strong class=
"command">avoid-v4-udp-ports
</strong></span>
3843 and
<span><strong class=
"command">avoid-v6-udp-ports
</strong></span> options, respectively.
3846 The defaults of the
<span><strong class=
"command">query-source
</strong></span> and
3847 <span><strong class=
"command">query-source-v6
</strong></span> options
3850 <pre class=
"programlisting">query-source address * port *;
3851 query-source-v6 address * port *;
3854 If
<span><strong class=
"command">use-v4-udp-ports
</strong></span> or
3855 <span><strong class=
"command">use-v6-udp-ports
</strong></span> is unspecified,
3856 <span><strong class=
"command">named
</strong></span> will check if the operating
3857 system provides a programming interface to retrieve the
3858 system's default range for ephemeral ports.
3859 If such an interface is available,
3860 <span><strong class=
"command">named
</strong></span> will use the corresponding system
3861 default range; otherwise, it will use its own defaults:
3863 <pre class=
"programlisting">use-v4-udp-ports { range
1024 65535; };
3864 use-v6-udp-ports { range
1024 65535; };
3867 Note: make sure the ranges be sufficiently large for
3868 security. A desirable size depends on various parameters,
3869 but we generally recommend it contain at least
16384 ports
3870 (
14 bits of entropy).
3871 Note also that the system's default range when used may be
3872 too small for this purpose, and that the range may even be
3873 changed while
<span><strong class=
"command">named
</strong></span> is running; the new
3874 range will automatically be applied when
<span><strong class=
"command">named
</strong></span>
3877 configure
<span><strong class=
"command">use-v4-udp-ports
</strong></span> and
3878 <span><strong class=
"command">use-v6-udp-ports
</strong></span> explicitly so that the
3879 ranges are sufficiently large and are reasonably
3880 independent from the ranges used by other applications.
3883 Note: the operational configuration
3884 where
<span><strong class=
"command">named
</strong></span> runs may prohibit the use
3885 of some ports. For example, UNIX systems will not allow
3886 <span><strong class=
"command">named
</strong></span> running without a root privilege
3887 to use ports less than
1024.
3888 If such ports are included in the specified (or detected)
3889 set of query ports, the corresponding query attempts will
3890 fail, resulting in resolution failures or delay.
3891 It is therefore important to configure the set of ports
3892 that can be safely used in the expected operational environment.
3895 The defaults of the
<span><strong class=
"command">avoid-v4-udp-ports
</strong></span> and
3896 <span><strong class=
"command">avoid-v6-udp-ports
</strong></span> options
3899 <pre class=
"programlisting">avoid-v4-udp-ports {};
3900 avoid-v6-udp-ports {};
3903 Note: BIND
9.5.0 introduced
3904 the
<span><strong class=
"command">use-queryport-pool
</strong></span>
3905 option to support a pool of such random ports, but this
3906 option is now obsolete because reusing the same ports in
3907 the pool may not be sufficiently secure.
3908 For the same reason, it is generally strongly discouraged to
3909 specify a particular port for the
3910 <span><strong class=
"command">query-source
</strong></span> or
3911 <span><strong class=
"command">query-source-v6
</strong></span> options;
3912 it implicitly disables the use of randomized port numbers.
3914 <div class=
"variablelist"><dl>
3915 <dt><span class=
"term"><span><strong class=
"command">use-queryport-pool
</strong></span></span></dt>
3917 This option is obsolete.
3919 <dt><span class=
"term"><span><strong class=
"command">queryport-pool-ports
</strong></span></span></dt>
3921 This option is obsolete.
3923 <dt><span class=
"term"><span><strong class=
"command">queryport-pool-updateinterval
</strong></span></span></dt>
3925 This option is obsolete.
3928 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
3929 <h3 class=
"title">Note
</h3>
3931 The address specified in the
<span><strong class=
"command">query-source
</strong></span> option
3932 is used for both UDP and TCP queries, but the port applies only
3933 to UDP queries. TCP queries always use a random
3937 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
3938 <h3 class=
"title">Note
</h3>
3940 Solaris
2.5.1 and earlier does not support setting the source
3941 address for TCP sockets.
3944 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
3945 <h3 class=
"title">Note
</h3>
3947 See also
<span><strong class=
"command">transfer-source
</strong></span> and
3948 <span><strong class=
"command">notify-source
</strong></span>.
3952 <div class=
"sect3" lang=
"en">
3953 <div class=
"titlepage"><div><div><h4 class=
"title">
3954 <a name=
"zone_transfers"></a>Zone Transfers
</h4></div></div></div>
3956 <acronym class=
"acronym">BIND
</acronym> has mechanisms in place to
3957 facilitate zone transfers
3958 and set limits on the amount of load that transfers place on the
3959 system. The following options apply to zone transfers.
3961 <div class=
"variablelist"><dl>
3962 <dt><span class=
"term"><span><strong class=
"command">also-notify
</strong></span></span></dt>
3964 Defines a global list of IP addresses of name servers
3965 that are also sent NOTIFY messages whenever a fresh copy of
3967 zone is loaded, in addition to the servers listed in the
3969 This helps to ensure that copies of the zones will
3970 quickly converge on stealth servers.
3971 Optionally, a port may be specified with each
3972 <span><strong class=
"command">also-notify
</strong></span> address to send
3973 the notify messages to a port other than the
3975 If an
<span><strong class=
"command">also-notify
</strong></span> list
3976 is given in a
<span><strong class=
"command">zone
</strong></span> statement,
3978 the
<span><strong class=
"command">options also-notify
</strong></span>
3979 statement. When a
<span><strong class=
"command">zone notify
</strong></span>
3981 is set to
<span><strong class=
"command">no
</strong></span>, the IP
3982 addresses in the global
<span><strong class=
"command">also-notify
</strong></span> list will
3983 not be sent NOTIFY messages for that zone. The default is
3985 list (no global notification list).
3987 <dt><span class=
"term"><span><strong class=
"command">max-transfer-time-in
</strong></span></span></dt>
3989 Inbound zone transfers running longer than
3990 this many minutes will be terminated. The default is
120
3992 (
2 hours). The maximum value is
28 days (
40320 minutes).
3994 <dt><span class=
"term"><span><strong class=
"command">max-transfer-idle-in
</strong></span></span></dt>
3996 Inbound zone transfers making no progress
3997 in this many minutes will be terminated. The default is
60
3999 (
1 hour). The maximum value is
28 days (
40320 minutes).
4001 <dt><span class=
"term"><span><strong class=
"command">max-transfer-time-out
</strong></span></span></dt>
4003 Outbound zone transfers running longer than
4004 this many minutes will be terminated. The default is
120
4006 (
2 hours). The maximum value is
28 days (
40320 minutes).
4008 <dt><span class=
"term"><span><strong class=
"command">max-transfer-idle-out
</strong></span></span></dt>
4010 Outbound zone transfers making no progress
4011 in this many minutes will be terminated. The default is
60
4013 hour). The maximum value is
28 days (
40320 minutes).
4015 <dt><span class=
"term"><span><strong class=
"command">serial-query-rate
</strong></span></span></dt>
4017 Slave servers will periodically query master servers
4018 to find out if zone serial numbers have changed. Each such
4020 a minute amount of the slave server's network bandwidth. To
4022 amount of bandwidth used, BIND
9 limits the rate at which
4024 sent. The value of the
<span><strong class=
"command">serial-query-rate
</strong></span> option,
4025 an integer, is the maximum number of queries sent per
4029 <dt><span class=
"term"><span><strong class=
"command">serial-queries
</strong></span></span></dt>
4031 In BIND
8, the
<span><strong class=
"command">serial-queries
</strong></span>
4033 set the maximum number of concurrent serial number queries
4034 allowed to be outstanding at any given time.
4035 BIND
9 does not limit the number of outstanding
4036 serial queries and ignores the
<span><strong class=
"command">serial-queries
</strong></span> option.
4037 Instead, it limits the rate at which the queries are sent
4038 as defined using the
<span><strong class=
"command">serial-query-rate
</strong></span> option.
4040 <dt><span class=
"term"><span><strong class=
"command">transfer-format
</strong></span></span></dt>
4042 Zone transfers can be sent using two different formats,
4043 <span><strong class=
"command">one-answer
</strong></span> and
4044 <span><strong class=
"command">many-answers
</strong></span>.
4045 The
<span><strong class=
"command">transfer-format
</strong></span> option is used
4046 on the master server to determine which format it sends.
4047 <span><strong class=
"command">one-answer
</strong></span> uses one DNS message per
4048 resource record transferred.
4049 <span><strong class=
"command">many-answers
</strong></span> packs as many resource
4050 records as possible into a message.
4051 <span><strong class=
"command">many-answers
</strong></span> is more efficient, but is
4052 only supported by relatively new slave servers,
4053 such as
<acronym class=
"acronym">BIND
</acronym> 9,
<acronym class=
"acronym">BIND
</acronym>
4054 8.x and
<acronym class=
"acronym">BIND
</acronym> 4.9.5 onwards.
4055 The
<span><strong class=
"command">many-answers
</strong></span> format is also supported by
4056 recent Microsoft Windows nameservers.
4057 The default is
<span><strong class=
"command">many-answers
</strong></span>.
4058 <span><strong class=
"command">transfer-format
</strong></span> may be overridden on a
4059 per-server basis by using the
<span><strong class=
"command">server
</strong></span>
4062 <dt><span class=
"term"><span><strong class=
"command">transfers-in
</strong></span></span></dt>
4064 The maximum number of inbound zone transfers
4065 that can be running concurrently. The default value is
<code class=
"literal">10</code>.
4066 Increasing
<span><strong class=
"command">transfers-in
</strong></span> may
4067 speed up the convergence
4068 of slave zones, but it also may increase the load on the
4071 <dt><span class=
"term"><span><strong class=
"command">transfers-out
</strong></span></span></dt>
4073 The maximum number of outbound zone transfers
4074 that can be running concurrently. Zone transfer requests in
4076 of the limit will be refused. The default value is
<code class=
"literal">10</code>.
4078 <dt><span class=
"term"><span><strong class=
"command">transfers-per-ns
</strong></span></span></dt>
4080 The maximum number of inbound zone transfers
4081 that can be concurrently transferring from a given remote
4083 The default value is
<code class=
"literal">2</code>.
4084 Increasing
<span><strong class=
"command">transfers-per-ns
</strong></span>
4086 speed up the convergence of slave zones, but it also may
4088 the load on the remote name server.
<span><strong class=
"command">transfers-per-ns
</strong></span> may
4089 be overridden on a per-server basis by using the
<span><strong class=
"command">transfers
</strong></span> phrase
4090 of the
<span><strong class=
"command">server
</strong></span> statement.
4092 <dt><span class=
"term"><span><strong class=
"command">transfer-source
</strong></span></span></dt>
4094 <p><span><strong class=
"command">transfer-source
</strong></span>
4095 determines which local address will be bound to IPv4
4096 TCP connections used to fetch zones transferred
4097 inbound by the server. It also determines the
4098 source IPv4 address, and optionally the UDP port,
4099 used for the refresh queries and forwarded dynamic
4100 updates. If not set, it defaults to a system
4101 controlled value which will usually be the address
4102 of the interface
"closest to" the remote end. This
4103 address must appear in the remote end's
4104 <span><strong class=
"command">allow-transfer
</strong></span> option for the
4105 zone being transferred, if one is specified. This
4107 <span><strong class=
"command">transfer-source
</strong></span> for all zones,
4108 but can be overridden on a per-view or per-zone
4109 basis by including a
4110 <span><strong class=
"command">transfer-source
</strong></span> statement within
4111 the
<span><strong class=
"command">view
</strong></span> or
4112 <span><strong class=
"command">zone
</strong></span> block in the configuration
4115 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
4116 <h3 class=
"title">Note
</h3>
4118 Solaris
2.5.1 and earlier does not support setting the
4119 source address for TCP sockets.
4123 <dt><span class=
"term"><span><strong class=
"command">transfer-source-v6
</strong></span></span></dt>
4125 The same as
<span><strong class=
"command">transfer-source
</strong></span>,
4126 except zone transfers are performed using IPv6.
4128 <dt><span class=
"term"><span><strong class=
"command">alt-transfer-source
</strong></span></span></dt>
4131 An alternate transfer source if the one listed in
4132 <span><strong class=
"command">transfer-source
</strong></span> fails and
4133 <span><strong class=
"command">use-alt-transfer-source
</strong></span> is
4136 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
4137 <h3 class=
"title">Note
</h3>
4138 If you do not wish the alternate transfer source
4139 to be used, you should set
4140 <span><strong class=
"command">use-alt-transfer-source
</strong></span>
4141 appropriately and you should not depend upon
4142 getting an answer back to the first refresh
4146 <dt><span class=
"term"><span><strong class=
"command">alt-transfer-source-v6
</strong></span></span></dt>
4148 An alternate transfer source if the one listed in
4149 <span><strong class=
"command">transfer-source-v6
</strong></span> fails and
4150 <span><strong class=
"command">use-alt-transfer-source
</strong></span> is
4153 <dt><span class=
"term"><span><strong class=
"command">use-alt-transfer-source
</strong></span></span></dt>
4155 Use the alternate transfer sources or not. If views are
4156 specified this defaults to
<span><strong class=
"command">no
</strong></span>
4157 otherwise it defaults to
4158 <span><strong class=
"command">yes
</strong></span> (for BIND
8
4161 <dt><span class=
"term"><span><strong class=
"command">notify-source
</strong></span></span></dt>
4163 <p><span><strong class=
"command">notify-source
</strong></span>
4164 determines which local source address, and
4165 optionally UDP port, will be used to send NOTIFY
4166 messages. This address must appear in the slave
4167 server's
<span><strong class=
"command">masters
</strong></span> zone clause or
4168 in an
<span><strong class=
"command">allow-notify
</strong></span> clause. This
4169 statement sets the
<span><strong class=
"command">notify-source
</strong></span>
4170 for all zones, but can be overridden on a per-zone or
4171 per-view basis by including a
4172 <span><strong class=
"command">notify-source
</strong></span> statement within
4173 the
<span><strong class=
"command">zone
</strong></span> or
4174 <span><strong class=
"command">view
</strong></span> block in the configuration
4177 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
4178 <h3 class=
"title">Note
</h3>
4180 Solaris
2.5.1 and earlier does not support setting the
4181 source address for TCP sockets.
4185 <dt><span class=
"term"><span><strong class=
"command">notify-source-v6
</strong></span></span></dt>
4187 Like
<span><strong class=
"command">notify-source
</strong></span>,
4188 but applies to notify messages sent to IPv6 addresses.
4192 <div class=
"sect3" lang=
"en">
4193 <div class=
"titlepage"><div><div><h4 class=
"title">
4194 <a name=
"id2584652"></a>UDP Port Lists
</h4></div></div></div>
4196 <span><strong class=
"command">use-v4-udp-ports
</strong></span>,
4197 <span><strong class=
"command">avoid-v4-udp-ports
</strong></span>,
4198 <span><strong class=
"command">use-v6-udp-ports
</strong></span>, and
4199 <span><strong class=
"command">avoid-v6-udp-ports
</strong></span>
4200 specify a list of IPv4 and IPv6 UDP ports that will be
4201 used or not used as source ports for UDP messages.
4202 See
<a href=
"Bv9ARM.ch06.html#query_address" title=
"Query Address">the section called
“Query Address
”</a> about how the
4203 available ports are determined.
4204 For example, with the following configuration
4206 <pre class=
"programlisting">
4207 use-v6-udp-ports { range
32768 65535; };
4208 avoid-v6-udp-ports {
40000; range
50000 60000; };
4211 UDP ports of IPv6 messages sent
4212 from
<span><strong class=
"command">named
</strong></span> will be in one
4213 of the following ranges:
32768 to
39999,
40001 to
49999,
4217 <span><strong class=
"command">avoid-v4-udp-ports
</strong></span> and
4218 <span><strong class=
"command">avoid-v6-udp-ports
</strong></span> can be used
4219 to prevent
<span><strong class=
"command">named
</strong></span> from choosing as its random source port a
4220 port that is blocked by your firewall or a port that is
4221 used by other applications;
4222 if a query went out with a source port blocked by a
4224 answer would not get by the firewall and the name server would
4225 have to query again.
4226 Note: the desired range can also be represented only with
4227 <span><strong class=
"command">use-v4-udp-ports
</strong></span> and
4228 <span><strong class=
"command">use-v6-udp-ports
</strong></span>, and the
4229 <span><strong class=
"command">avoid-
</strong></span> options are redundant in that
4230 sense; they are provided for backward compatibility and
4231 to possibly simplify the port specification.
4234 <div class=
"sect3" lang=
"en">
4235 <div class=
"titlepage"><div><div><h4 class=
"title">
4236 <a name=
"id2584780"></a>Operating System Resource Limits
</h4></div></div></div>
4238 The server's usage of many system resources can be limited.
4239 Scaled values are allowed when specifying resource limits. For
4240 example,
<span><strong class=
"command">1G
</strong></span> can be used instead of
4241 <span><strong class=
"command">1073741824</strong></span> to specify a limit of
4243 gigabyte.
<span><strong class=
"command">unlimited
</strong></span> requests
4244 unlimited use, or the
4245 maximum available amount.
<span><strong class=
"command">default
</strong></span>
4247 that was in force when the server was started. See the description
4248 of
<span><strong class=
"command">size_spec
</strong></span> in
<a href=
"Bv9ARM.ch06.html#configuration_file_elements" title=
"Configuration File Elements">the section called
“Configuration File Elements
”</a>.
4251 The following options set operating system resource limits for
4252 the name server process. Some operating systems don't support
4254 any of the limits. On such systems, a warning will be issued if
4256 unsupported limit is used.
4258 <div class=
"variablelist"><dl>
4259 <dt><span class=
"term"><span><strong class=
"command">coresize
</strong></span></span></dt>
4261 The maximum size of a core dump. The default
4262 is
<code class=
"literal">default
</code>.
4264 <dt><span class=
"term"><span><strong class=
"command">datasize
</strong></span></span></dt>
4266 The maximum amount of data memory the server
4267 may use. The default is
<code class=
"literal">default
</code>.
4268 This is a hard limit on server memory usage.
4269 If the server attempts to allocate memory in excess of this
4270 limit, the allocation will fail, which may in turn leave
4271 the server unable to perform DNS service. Therefore,
4272 this option is rarely useful as a way of limiting the
4273 amount of memory used by the server, but it can be used
4274 to raise an operating system data size limit that is
4275 too small by default. If you wish to limit the amount
4276 of memory used by the server, use the
4277 <span><strong class=
"command">max-cache-size
</strong></span> and
4278 <span><strong class=
"command">recursive-clients
</strong></span>
4281 <dt><span class=
"term"><span><strong class=
"command">files
</strong></span></span></dt>
4283 The maximum number of files the server
4284 may have open concurrently. The default is
<code class=
"literal">unlimited
</code>.
4286 <dt><span class=
"term"><span><strong class=
"command">stacksize
</strong></span></span></dt>
4288 The maximum amount of stack memory the server
4289 may use. The default is
<code class=
"literal">default
</code>.
4293 <div class=
"sect3" lang=
"en">
4294 <div class=
"titlepage"><div><div><h4 class=
"title">
4295 <a name=
"server_resource_limits"></a>Server Resource Limits
</h4></div></div></div>
4297 The following options set limits on the server's
4298 resource consumption that are enforced internally by the
4299 server rather than the operating system.
4301 <div class=
"variablelist"><dl>
4302 <dt><span class=
"term"><span><strong class=
"command">max-ixfr-log-size
</strong></span></span></dt>
4304 This option is obsolete; it is accepted
4305 and ignored for BIND
8 compatibility. The option
4306 <span><strong class=
"command">max-journal-size
</strong></span> performs a
4307 similar function in BIND
9.
4309 <dt><span class=
"term"><span><strong class=
"command">max-journal-size
</strong></span></span></dt>
4311 Sets a maximum size for each journal file
4312 (see
<a href=
"Bv9ARM.ch04.html#journal" title=
"The journal file">the section called
“The journal file
”</a>). When the journal file
4314 the specified size, some of the oldest transactions in the
4316 will be automatically removed. The default is
4317 <code class=
"literal">unlimited
</code>.
4318 This may also be set on a per-zone basis.
4320 <dt><span class=
"term"><span><strong class=
"command">host-statistics-max
</strong></span></span></dt>
4322 In BIND
8, specifies the maximum number of host statistics
4324 Not implemented in BIND
9.
4326 <dt><span class=
"term"><span><strong class=
"command">recursive-clients
</strong></span></span></dt>
4328 The maximum number of simultaneous recursive lookups
4329 the server will perform on behalf of clients. The default
4331 <code class=
"literal">1000</code>. Because each recursing
4333 bit of memory, on the order of
20 kilobytes, the value of
4335 <span><strong class=
"command">recursive-clients
</strong></span> option may
4336 have to be decreased
4337 on hosts with limited memory.
4339 <dt><span class=
"term"><span><strong class=
"command">tcp-clients
</strong></span></span></dt>
4341 The maximum number of simultaneous client TCP
4342 connections that the server will accept.
4343 The default is
<code class=
"literal">100</code>.
4345 <dt><span class=
"term"><span><strong class=
"command">reserved-sockets
</strong></span></span></dt>
4348 The number of file descriptors reserved for TCP, stdio,
4349 etc. This needs to be big enough to cover the number of
4350 interfaces
<span><strong class=
"command">named
</strong></span> listens on,
<span><strong class=
"command">tcp-clients
</strong></span> as well as
4351 to provide room for outgoing TCP queries and incoming zone
4352 transfers. The default is
<code class=
"literal">512</code>.
4353 The minimum value is
<code class=
"literal">128</code> and the
4354 maximum value is
<code class=
"literal">128</code> less than
4355 maxsockets (-S). This option may be removed in the future.
4358 This option has little effect on Windows.
4361 <dt><span class=
"term"><span><strong class=
"command">max-cache-size
</strong></span></span></dt>
4363 The maximum amount of memory to use for the
4364 server's cache, in bytes.
4365 When the amount of data in the cache
4366 reaches this limit, the server will cause records to expire
4367 prematurely based on an LRU based strategy so that
4368 the limit is not exceeded.
4369 A value of
0 is special, meaning that
4370 records are purged from the cache only when their
4372 Another special keyword
<strong class=
"userinput"><code>unlimited
</code></strong>
4373 means the maximum value of
32-bit unsigned integers
4374 (
0xffffffff), which may not have the same effect as
4375 0 on machines that support more than
32 bits of
4377 Any positive values less than
2MB will be ignored reset
4379 In a server with multiple views, the limit applies
4380 separately to the cache of each view.
4383 <dt><span class=
"term"><span><strong class=
"command">tcp-listen-queue
</strong></span></span></dt>
4385 The listen queue depth. The default and minimum is
3.
4386 If the kernel supports the accept filter
"dataready" this
4388 many TCP connections that will be queued in kernel space
4390 some data before being passed to accept. Values less than
3
4396 <div class=
"sect3" lang=
"en">
4397 <div class=
"titlepage"><div><div><h4 class=
"title">
4398 <a name=
"id2585134"></a>Periodic Task Intervals
</h4></div></div></div>
4399 <div class=
"variablelist"><dl>
4400 <dt><span class=
"term"><span><strong class=
"command">cleaning-interval
</strong></span></span></dt>
4402 This interval is effectively obsolete. Previously,
4403 the server would remove expired resource records
4404 from the cache every
<span><strong class=
"command">cleaning-interval
</strong></span> minutes.
4405 <acronym class=
"acronym">BIND
</acronym> 9 now manages cache
4406 memory in a more sophisticated manner and does not
4407 rely on the periodic cleaning any more.
4408 Specifying this option therefore has no effect on
4409 the server's behavior.
4411 <dt><span class=
"term"><span><strong class=
"command">heartbeat-interval
</strong></span></span></dt>
4413 The server will perform zone maintenance tasks
4414 for all zones marked as
<span><strong class=
"command">dialup
</strong></span> whenever this
4415 interval expires. The default is
60 minutes. Reasonable
4417 to
1 day (
1440 minutes). The maximum value is
28 days
4419 If set to
0, no zone maintenance for these zones will occur.
4421 <dt><span class=
"term"><span><strong class=
"command">interface-interval
</strong></span></span></dt>
4423 The server will scan the network interface list
4424 every
<span><strong class=
"command">interface-interval
</strong></span>
4425 minutes. The default
4426 is
60 minutes. The maximum value is
28 days (
40320 minutes).
4427 If set to
0, interface scanning will only occur when
4428 the configuration file is loaded. After the scan, the
4430 begin listening for queries on any newly discovered
4431 interfaces (provided they are allowed by the
4432 <span><strong class=
"command">listen-on
</strong></span> configuration), and
4434 stop listening on interfaces that have gone away.
4436 <dt><span class=
"term"><span><strong class=
"command">statistics-interval
</strong></span></span></dt>
4439 Name server statistics will be logged
4440 every
<span><strong class=
"command">statistics-interval
</strong></span>
4441 minutes. The default is
4442 60. The maximum value is
28 days (
40320 minutes).
4443 If set to
0, no statistics will be logged.
4445 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
4446 <h3 class=
"title">Note
</h3>
4448 Not yet implemented in
4449 <acronym class=
"acronym">BIND
</acronym> 9.
4455 <div class=
"sect3" lang=
"en">
4456 <div class=
"titlepage"><div><div><h4 class=
"title">
4457 <a name=
"topology"></a>Topology
</h4></div></div></div>
4459 All other things being equal, when the server chooses a name
4461 to query from a list of name servers, it prefers the one that is
4462 topologically closest to itself. The
<span><strong class=
"command">topology
</strong></span> statement
4463 takes an
<span><strong class=
"command">address_match_list
</strong></span> and
4465 in a special way. Each top-level list element is assigned a
4467 Non-negated elements get a distance based on their position in the
4468 list, where the closer the match is to the start of the list, the
4469 shorter the distance is between it and the server. A negated match
4470 will be assigned the maximum distance from the server. If there
4471 is no match, the address will get a distance which is further than
4472 any non-negated list element, and closer than any negated element.
4475 <pre class=
"programlisting">topology {
4481 will prefer servers on network
10 the most, followed by hosts
4482 on network
1.2.0.0 (netmask
255.255.0.0) and network
3, with the
4483 exception of hosts on network
1.2.3 (netmask
255.255.255.0), which
4484 is preferred least of all.
4487 The default topology is
4489 <pre class=
"programlisting"> topology { localhost; localnets; };
4491 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
4492 <h3 class=
"title">Note
</h3>
4494 The
<span><strong class=
"command">topology
</strong></span> option
4495 is not implemented in
<acronym class=
"acronym">BIND
</acronym> 9.
4499 <div class=
"sect3" lang=
"en">
4500 <div class=
"titlepage"><div><div><h4 class=
"title">
4501 <a name=
"the_sortlist_statement"></a>The
<span><strong class=
"command">sortlist
</strong></span> Statement
</h4></div></div></div>
4503 The response to a DNS query may consist of multiple resource
4504 records (RRs) forming a resource records set (RRset).
4505 The name server will normally return the
4506 RRs within the RRset in an indeterminate order
4507 (but see the
<span><strong class=
"command">rrset-order
</strong></span>
4508 statement in
<a href=
"Bv9ARM.ch06.html#rrset_ordering" title=
"RRset Ordering">the section called
“RRset Ordering
”</a>).
4509 The client resolver code should rearrange the RRs as appropriate,
4510 that is, using any addresses on the local net in preference to
4512 However, not all resolvers can do this or are correctly
4514 When a client is using a local server, the sorting can be performed
4515 in the server, based on the client's address. This only requires
4516 configuring the name servers, not all the clients.
4519 The
<span><strong class=
"command">sortlist
</strong></span> statement (see below)
4521 an
<span><strong class=
"command">address_match_list
</strong></span> and
4523 more specifically than the
<span><strong class=
"command">topology
</strong></span>
4525 does (
<a href=
"Bv9ARM.ch06.html#topology" title=
"Topology">the section called
“Topology
”</a>).
4526 Each top level statement in the
<span><strong class=
"command">sortlist
</strong></span> must
4527 itself be an explicit
<span><strong class=
"command">address_match_list
</strong></span> with
4528 one or two elements. The first element (which may be an IP
4530 an IP prefix, an ACL name or a nested
<span><strong class=
"command">address_match_list
</strong></span>)
4531 of each top level list is checked against the source address of
4532 the query until a match is found.
4535 Once the source address of the query has been matched, if
4536 the top level statement contains only one element, the actual
4538 element that matched the source address is used to select the
4540 in the response to move to the beginning of the response. If the
4541 statement is a list of two elements, then the second element is
4542 treated the same as the
<span><strong class=
"command">address_match_list
</strong></span> in
4543 a
<span><strong class=
"command">topology
</strong></span> statement. Each top
4545 is assigned a distance and the address in the response with the
4547 distance is moved to the beginning of the response.
4550 In the following example, any queries received from any of
4551 the addresses of the host itself will get responses preferring
4553 on any of the locally connected networks. Next most preferred are
4555 on the
192.168.1/
24 network, and after that either the
4558 192.168.3/
24 network with no preference shown between these two
4559 networks. Queries received from a host on the
192.168.1/
24 network
4560 will prefer other addresses on that network to the
192.168.2/
24
4562 192.168.3/
24 networks. Queries received from a host on the
4564 or the
192.168.5/
24 network will only prefer other addresses on
4565 their directly connected networks.
4567 <pre class=
"programlisting">sortlist {
4568 // IF the local host
4569 // THEN first fit on the following nets
4573 {
192.168.2/
24;
192.168.3/
24; }; }; };
4574 // IF on class C
192.168.1 THEN use
.1, or
.2 or
.3
4577 {
192.168.2/
24;
192.168.3/
24; }; }; };
4578 // IF on class C
192.168.2 THEN use
.2, or
.1 or
.3
4581 {
192.168.1/
24;
192.168.3/
24; }; }; };
4582 // IF on class C
192.168.3 THEN use
.3, or
.1 or
.2
4585 {
192.168.1/
24;
192.168.2/
24; }; }; };
4586 // IF
.4 or
.5 THEN prefer that net
4587 { {
192.168.4/
24;
192.168.5/
24; };
4591 The following example will give reasonable behavior for the
4592 local host and hosts on directly connected networks. It is similar
4593 to the behavior of the address sort in
<acronym class=
"acronym">BIND
</acronym> 4.9.x. Responses sent
4594 to queries from the local host will favor any of the directly
4596 networks. Responses sent to queries from any other hosts on a
4598 connected network will prefer addresses on that same network.
4600 to other queries will not be sorted.
4602 <pre class=
"programlisting">sortlist {
4603 { localhost; localnets; };
4608 <div class=
"sect3" lang=
"en">
4609 <div class=
"titlepage"><div><div><h4 class=
"title">
4610 <a name=
"rrset_ordering"></a>RRset Ordering
</h4></div></div></div>
4612 When multiple records are returned in an answer it may be
4613 useful to configure the order of the records placed into the
4615 The
<span><strong class=
"command">rrset-order
</strong></span> statement permits
4617 of the ordering of the records in a multiple record response.
4618 See also the
<span><strong class=
"command">sortlist
</strong></span> statement,
4619 <a href=
"Bv9ARM.ch06.html#the_sortlist_statement" title=
"The sortlist Statement">the section called
“The
<span><strong class=
"command">sortlist
</strong></span> Statement
”</a>.
4622 An
<span><strong class=
"command">order_spec
</strong></span> is defined as
4626 [
<span class=
"optional">class
<em class=
"replaceable"><code>class_name
</code></em></span>]
4627 [
<span class=
"optional">type
<em class=
"replaceable"><code>type_name
</code></em></span>]
4628 [
<span class=
"optional">name
<em class=
"replaceable"><code>"domain_name"</code></em></span>]
4629 order
<em class=
"replaceable"><code>ordering
</code></em>
4632 If no class is specified, the default is
<span><strong class=
"command">ANY
</strong></span>.
4633 If no type is specified, the default is
<span><strong class=
"command">ANY
</strong></span>.
4634 If no name is specified, the default is
"<span><strong class="command
">*</strong></span>" (asterisk).
4637 The legal values for
<span><strong class=
"command">ordering
</strong></span> are:
4639 <div class=
"informaltable"><table border=
"1">
4647 <p><span><strong class=
"command">fixed
</strong></span></p>
4651 Records are returned in the order they
4652 are defined in the zone file.
4658 <p><span><strong class=
"command">random
</strong></span></p>
4662 Records are returned in some random order.
4668 <p><span><strong class=
"command">cyclic
</strong></span></p>
4672 Records are returned in a cyclic round-robin order.
4675 If
<acronym class=
"acronym">BIND
</acronym> is configured with the
4676 "--enable-fixed-rrset" option at compile time, then
4677 the initial ordering of the RRset will match the
4678 one specified in the zone file.
4687 <pre class=
"programlisting">rrset-order {
4688 class IN type A name
"host.example.com" order random;
4693 will cause any responses for type A records in class IN that
4694 have
"<code class="literal
">host.example.com</code>" as a
4695 suffix, to always be returned
4696 in random order. All other records are returned in cyclic order.
4699 If multiple
<span><strong class=
"command">rrset-order
</strong></span> statements
4701 they are not combined
— the last one applies.
4703 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
4704 <h3 class=
"title">Note
</h3>
4706 In this release of
<acronym class=
"acronym">BIND
</acronym> 9, the
4707 <span><strong class=
"command">rrset-order
</strong></span> statement does not support
4708 "fixed" ordering by default. Fixed ordering can be enabled
4709 at compile time by specifying
"--enable-fixed-rrset" on
4710 the
"configure" command line.
4714 <div class=
"sect3" lang=
"en">
4715 <div class=
"titlepage"><div><div><h4 class=
"title">
4716 <a name=
"tuning"></a>Tuning
</h4></div></div></div>
4717 <div class=
"variablelist"><dl>
4718 <dt><span class=
"term"><span><strong class=
"command">lame-ttl
</strong></span></span></dt>
4720 Sets the number of seconds to cache a
4721 lame server indication.
0 disables caching. (This is
4722 <span class=
"bold"><strong>NOT
</strong></span> recommended.)
4723 The default is
<code class=
"literal">600</code> (
10 minutes) and the
4725 <code class=
"literal">1800</code> (
30 minutes).
4727 <dt><span class=
"term"><span><strong class=
"command">max-ncache-ttl
</strong></span></span></dt>
4729 To reduce network traffic and increase performance,
4730 the server stores negative answers.
<span><strong class=
"command">max-ncache-ttl
</strong></span> is
4731 used to set a maximum retention time for these answers in
4733 in seconds. The default
4734 <span><strong class=
"command">max-ncache-ttl
</strong></span> is
<code class=
"literal">10800</code> seconds (
3 hours).
4735 <span><strong class=
"command">max-ncache-ttl
</strong></span> cannot exceed
4737 be silently truncated to
7 days if set to a greater value.
4739 <dt><span class=
"term"><span><strong class=
"command">max-cache-ttl
</strong></span></span></dt>
4741 Sets the maximum time for which the server will
4742 cache ordinary (positive) answers. The default is
4744 A value of zero may cause all queries to return
4745 SERVFAIL, because of lost caches of intermediate
4746 RRsets (such as NS and glue AAAA/A records) in the
4749 <dt><span class=
"term"><span><strong class=
"command">min-roots
</strong></span></span></dt>
4752 The minimum number of root servers that
4753 is required for a request for the root servers to be
4754 accepted. The default
4755 is
<strong class=
"userinput"><code>2</code></strong>.
4757 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
4758 <h3 class=
"title">Note
</h3>
4760 Not implemented in
<acronym class=
"acronym">BIND
</acronym> 9.
4764 <dt><span class=
"term"><span><strong class=
"command">sig-validity-interval
</strong></span></span></dt>
4767 Specifies the number of days into the future when
4768 DNSSEC signatures automatically generated as a
4769 result of dynamic updates (
<a href=
"Bv9ARM.ch04.html#dynamic_update" title=
"Dynamic Update">the section called
“Dynamic Update
”</a>) will expire. There
4770 is an optional second field which specifies how
4771 long before expiry that the signatures will be
4772 regenerated. If not specified, the signatures will
4773 be regenerated at
1/
4 of base interval. The second
4774 field is specified in days if the base interval is
4775 greater than
7 days otherwise it is specified in hours.
4776 The default base interval is
<code class=
"literal">30</code> days
4777 giving a re-signing interval of
7 1/
2 days. The maximum
4778 values are
10 years (
3660 days).
4781 The signature inception time is unconditionally
4782 set to one hour before the current time to allow
4783 for a limited amount of clock skew.
4786 The
<span><strong class=
"command">sig-validity-interval
</strong></span>
4787 should be, at least, several multiples of the SOA
4788 expire interval to allow for reasonable interaction
4789 between the various timer and expiry dates.
4792 <dt><span class=
"term"><span><strong class=
"command">sig-signing-nodes
</strong></span></span></dt>
4794 Specify the maximum number of nodes to be
4795 examined in each quantum when signing a zone with
4796 a new DNSKEY. The default is
4797 <code class=
"literal">100</code>.
4799 <dt><span class=
"term"><span><strong class=
"command">sig-signing-signatures
</strong></span></span></dt>
4801 Specify a threshold number of signatures that
4802 will terminate processing a quantum when signing
4803 a zone with a new DNSKEY. The default is
4804 <code class=
"literal">10</code>.
4806 <dt><span class=
"term"><span><strong class=
"command">sig-signing-type
</strong></span></span></dt>
4809 Specify a private RDATA type to be used when generating
4810 key signing records. The default is
4811 <code class=
"literal">65535</code>.
4814 It is expected that this parameter may be removed
4815 in a future version once there is a standard type.
4819 <span class=
"term"><span><strong class=
"command">min-refresh-time
</strong></span>,
</span><span class=
"term"><span><strong class=
"command">max-refresh-time
</strong></span>,
</span><span class=
"term"><span><strong class=
"command">min-retry-time
</strong></span>,
</span><span class=
"term"><span><strong class=
"command">max-retry-time
</strong></span></span>
4823 These options control the server's behavior on refreshing a
4825 (querying for SOA changes) or retrying failed transfers.
4826 Usually the SOA values for the zone are used, but these
4828 are set by the master, giving slave server administrators
4830 control over their contents.
4833 These options allow the administrator to set a minimum and
4835 refresh and retry time either per-zone, per-view, or
4837 These options are valid for slave and stub zones,
4838 and clamp the SOA refresh and retry times to the specified
4842 <dt><span class=
"term"><span><strong class=
"command">edns-udp-size
</strong></span></span></dt>
4845 Sets the advertised EDNS UDP buffer size in bytes
4846 to control the size of packets received.
4847 Valid values are
1024 to
4096 (values outside this range
4848 will be silently adjusted). The default value
4849 is
4096. The usual reason for setting
4850 <span><strong class=
"command">edns-udp-size
</strong></span> to a non-default
4851 value is to get UDP answers to pass through broken
4852 firewalls that block fragmented packets and/or
4853 block UDP packets that are greater than
512 bytes.
4856 <span><strong class=
"command">named
</strong></span> will fallback to using
512 bytes
4857 if it get a series of timeout at the initial value.
512
4858 bytes is not being offered to encourage sites to fix their
4859 firewalls. Small EDNS UDP sizes will result in the
4860 excessive use of TCP.
4863 <dt><span class=
"term"><span><strong class=
"command">max-udp-size
</strong></span></span></dt>
4866 Sets the maximum EDNS UDP message size
4867 <span><strong class=
"command">named
</strong></span> will send in bytes.
4868 Valid values are
512 to
4096 (values outside this
4869 range will be silently adjusted). The default
4870 value is
4096. The usual reason for setting
4871 <span><strong class=
"command">max-udp-size
</strong></span> to a non-default
4872 value is to get UDP answers to pass through broken
4873 firewalls that block fragmented packets and/or
4874 block UDP packets that are greater than
512 bytes.
4875 This is independent of the advertised receive
4876 buffer (
<span><strong class=
"command">edns-udp-size
</strong></span>).
4879 Setting this to a low value will encourge additional
4880 TCP traffic to the nameserver.
4883 <dt><span class=
"term"><span><strong class=
"command">masterfile-format
</strong></span></span></dt>
4885 the file format of zone files (see
4886 <a href=
"Bv9ARM.ch06.html#zonefile_format" title=
"Additional File Formats">the section called
“Additional File Formats
”</a>).
4887 The default value is
<code class=
"constant">text
</code>, which is the
4888 standard textual representation. Files in other formats
4889 than
<code class=
"constant">text
</code> are typically expected
4890 to be generated by the
<span><strong class=
"command">named-compilezone
</strong></span> tool.
4891 Note that when a zone file in a different format than
4892 <code class=
"constant">text
</code> is loaded,
<span><strong class=
"command">named
</strong></span>
4893 may omit some of the checks which would be performed for a
4894 file in the
<code class=
"constant">text
</code> format. In particular,
4895 <span><strong class=
"command">check-names
</strong></span> checks do not apply
4896 for the
<code class=
"constant">raw
</code> format. This means
4897 a zone file in the
<code class=
"constant">raw
</code> format
4898 must be generated with the same check level as that
4899 specified in the
<span><strong class=
"command">named
</strong></span> configuration
4900 file. This statement sets the
4901 <span><strong class=
"command">masterfile-format
</strong></span> for all zones,
4902 but can be overridden on a per-zone or per-view basis
4903 by including a
<span><strong class=
"command">masterfile-format
</strong></span>
4904 statement within the
<span><strong class=
"command">zone
</strong></span> or
4905 <span><strong class=
"command">view
</strong></span> block in the configuration
4909 <a name=
"clients-per-query"></a><span class=
"term"><span><strong class=
"command">clients-per-query
</strong></span>,
</span><span class=
"term"><span><strong class=
"command">max-clients-per-query
</strong></span></span>
4913 initial value (minimum) and maximum number of recursive
4914 simultaneous clients for any given query
4915 (
<qname,qtype,qclass
>) that the server will accept
4916 before dropping additional clients.
<span><strong class=
"command">named
</strong></span> will attempt to
4917 self tune this value and changes will be logged. The
4918 default values are
10 and
100.
4921 This value should reflect how many queries come in for
4922 a given name in the time it takes to resolve that name.
4923 If the number of queries exceed this value,
<span><strong class=
"command">named
</strong></span> will
4924 assume that it is dealing with a non-responsive zone
4925 and will drop additional queries. If it gets a response
4926 after dropping queries, it will raise the estimate. The
4927 estimate will then be lowered in
20 minutes if it has
4931 If
<span><strong class=
"command">clients-per-query
</strong></span> is set to zero,
4932 then there is no limit on the number of clients per query
4933 and no queries will be dropped.
4936 If
<span><strong class=
"command">max-clients-per-query
</strong></span> is set to zero,
4937 then there is no upper bound other than imposed by
4938 <span><strong class=
"command">recursive-clients
</strong></span>.
4941 <dt><span class=
"term"><span><strong class=
"command">notify-delay
</strong></span></span></dt>
4943 The delay, in seconds, between sending sets of notify
4944 messages for a zone. The default is zero.
4948 <div class=
"sect3" lang=
"en">
4949 <div class=
"titlepage"><div><div><h4 class=
"title">
4950 <a name=
"builtin"></a>Built-in server information zones
</h4></div></div></div>
4952 The server provides some helpful diagnostic information
4953 through a number of built-in zones under the
4954 pseudo-top-level-domain
<code class=
"literal">bind
</code> in the
4955 <span><strong class=
"command">CHAOS
</strong></span> class. These zones are part
4957 built-in view (see
<a href=
"Bv9ARM.ch06.html#view_statement_grammar" title=
"view Statement Grammar">the section called
“<span><strong class=
"command">view
</strong></span> Statement Grammar
”</a>) of
4959 <span><strong class=
"command">CHAOS
</strong></span> which is separate from the
4961 class
<span><strong class=
"command">IN
</strong></span>; therefore, any global
4963 such as
<span><strong class=
"command">allow-query
</strong></span> do not apply
4965 If you feel the need to disable these zones, use the options
4966 below, or hide the built-in
<span><strong class=
"command">CHAOS
</strong></span>
4968 defining an explicit view of class
<span><strong class=
"command">CHAOS
</strong></span>
4969 that matches all clients.
4971 <div class=
"variablelist"><dl>
4972 <dt><span class=
"term"><span><strong class=
"command">version
</strong></span></span></dt>
4974 The version the server should report
4975 via a query of the name
<code class=
"literal">version.bind
</code>
4976 with type
<span><strong class=
"command">TXT
</strong></span>, class
<span><strong class=
"command">CHAOS
</strong></span>.
4977 The default is the real version number of this server.
4978 Specifying
<span><strong class=
"command">version none
</strong></span>
4979 disables processing of the queries.
4981 <dt><span class=
"term"><span><strong class=
"command">hostname
</strong></span></span></dt>
4983 The hostname the server should report via a query of
4984 the name
<code class=
"filename">hostname.bind
</code>
4985 with type
<span><strong class=
"command">TXT
</strong></span>, class
<span><strong class=
"command">CHAOS
</strong></span>.
4986 This defaults to the hostname of the machine hosting the
4988 found by the gethostname() function. The primary purpose of such queries
4990 identify which of a group of anycast servers is actually
4991 answering your queries. Specifying
<span><strong class=
"command">hostname none;
</strong></span>
4992 disables processing of the queries.
4994 <dt><span class=
"term"><span><strong class=
"command">server-id
</strong></span></span></dt>
4996 The ID the server should report when receiving a Name
4997 Server Identifier (NSID) query, or a query of the name
4998 <code class=
"filename">ID.SERVER
</code> with type
4999 <span><strong class=
"command">TXT
</strong></span>, class
<span><strong class=
"command">CHAOS
</strong></span>.
5000 The primary purpose of such queries is to
5001 identify which of a group of anycast servers is actually
5002 answering your queries. Specifying
<span><strong class=
"command">server-id none;
</strong></span>
5003 disables processing of the queries.
5004 Specifying
<span><strong class=
"command">server-id hostname;
</strong></span> will cause
<span><strong class=
"command">named
</strong></span> to
5005 use the hostname as found by the gethostname() function.
5006 The default
<span><strong class=
"command">server-id
</strong></span> is
<span><strong class=
"command">none
</strong></span>.
5010 <div class=
"sect3" lang=
"en">
5011 <div class=
"titlepage"><div><div><h4 class=
"title">
5012 <a name=
"empty"></a>Built-in Empty Zones
</h4></div></div></div>
5014 Named has some built-in empty zones (SOA and NS records only).
5015 These are for zones that should normally be answered locally
5016 and which queries should not be sent to the Internet's root
5017 servers. The official servers which cover these namespaces
5018 return NXDOMAIN responses to these queries. In particular,
5019 these cover the reverse namespace for addresses from RFC
1918 and
5020 RFC
3330. They also include the reverse namespace for IPv6 local
5021 address (locally assigned), IPv6 link local addresses, the IPv6
5022 loopback address and the IPv6 unknown address.
5025 Named will attempt to determine if a built-in zone already exists
5026 or is active (covered by a forward-only forwarding declaration)
5027 and will not create an empty zone in that case.
5030 The current list of empty zones is:
5032 <div class=
"itemizedlist"><ul type=
"disc">
5033 <li>0.IN-ADDR.ARPA
</li>
5034 <li>127.IN-ADDR.ARPA
</li>
5035 <li>254.169.IN-ADDR.ARPA
</li>
5036 <li>2.0.192.IN-ADDR.ARPA
</li>
5037 <li>255.255.255.255.IN-ADDR.ARPA
</li>
5038 <li>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
</li>
5039 <li>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
</li>
5040 <li>D.F.IP6.ARPA
</li>
5041 <li>8.E.F.IP6.ARPA
</li>
5042 <li>9.E.F.IP6.ARPA
</li>
5043 <li>A.E.F.IP6.ARPA
</li>
5044 <li>B.E.F.IP6.ARPA
</li>
5049 Empty zones are settable at the view level and only apply to
5050 views of class IN. Disabled empty zones are only inherited
5051 from options if there are no disabled empty zones specified
5052 at the view level. To override the options list of disabled
5053 zones, you can disable the root zone at the view level, for example:
5055 <pre class=
"programlisting">
5056 disable-empty-zone
".";
5061 If you are using the address ranges covered here, you should
5062 already have reverse zones covering the addresses you use.
5063 In practice this appears to not be the case with many queries
5064 being made to the infrastructure servers for names in these
5065 spaces. So many in fact that sacrificial servers were needed
5066 to be deployed to channel the query load away from the
5067 infrastructure servers.
5069 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
5070 <h3 class=
"title">Note
</h3>
5071 The real parent servers for these zones should disable all
5072 empty zone under the parent zone they serve. For the real
5073 root servers, this is all built-in empty zones. This will
5074 enable them to return referrals to deeper in the tree.
5076 <div class=
"variablelist"><dl>
5077 <dt><span class=
"term"><span><strong class=
"command">empty-server
</strong></span></span></dt>
5079 Specify what server name will appear in the returned
5080 SOA record for empty zones. If none is specified, then
5081 the zone's name will be used.
5083 <dt><span class=
"term"><span><strong class=
"command">empty-contact
</strong></span></span></dt>
5085 Specify what contact name will appear in the returned
5086 SOA record for empty zones. If none is specified, then
5089 <dt><span class=
"term"><span><strong class=
"command">empty-zones-enable
</strong></span></span></dt>
5091 Enable or disable all empty zones. By default, they
5094 <dt><span class=
"term"><span><strong class=
"command">disable-empty-zone
</strong></span></span></dt>
5096 Disable individual empty zones. By default, none are
5097 disabled. This option can be specified multiple times.
5101 <div class=
"sect3" lang=
"en">
5102 <div class=
"titlepage"><div><div><h4 class=
"title">
5103 <a name=
"acache"></a>Additional Section Caching
</h4></div></div></div>
5105 The additional section cache, also called
<span><strong class=
"command">acache
</strong></span>,
5106 is an internal cache to improve the response performance of BIND
9.
5107 When additional section caching is enabled, BIND
9 will
5108 cache an internal short-cut to the additional section content for
5110 Note that
<span><strong class=
"command">acache
</strong></span> is an internal caching
5111 mechanism of BIND
9, and is not related to the DNS caching
5115 Additional section caching does not change the
5116 response content (except the RRsets ordering of the additional
5117 section, see below), but can improve the response performance
5119 It is particularly effective when BIND
9 acts as an authoritative
5120 server for a zone that has many delegations with many glue RRs.
5123 In order to obtain the maximum performance improvement
5124 from additional section caching, setting
5125 <span><strong class=
"command">additional-from-cache
</strong></span>
5126 to
<span><strong class=
"command">no
</strong></span> is recommended, since the current
5127 implementation of
<span><strong class=
"command">acache
</strong></span>
5128 does not short-cut of additional section information from the
5132 One obvious disadvantage of
<span><strong class=
"command">acache
</strong></span> is
5133 that it requires much more
5134 memory for the internal cached data.
5135 Thus, if the response performance does not matter and memory
5136 consumption is much more critical, the
5137 <span><strong class=
"command">acache
</strong></span> mechanism can be
5138 disabled by setting
<span><strong class=
"command">acache-enable
</strong></span> to
5139 <span><strong class=
"command">no
</strong></span>.
5140 It is also possible to specify the upper limit of memory
5142 for acache by using
<span><strong class=
"command">max-acache-size
</strong></span>.
5145 Additional section caching also has a minor effect on the
5146 RRset ordering in the additional section.
5147 Without
<span><strong class=
"command">acache
</strong></span>,
5148 <span><strong class=
"command">cyclic
</strong></span> order is effective for the additional
5149 section as well as the answer and authority sections.
5150 However, additional section caching fixes the ordering when it
5151 first caches an RRset for the additional section, and the same
5152 ordering will be kept in succeeding responses, regardless of the
5153 setting of
<span><strong class=
"command">rrset-order
</strong></span>.
5154 The effect of this should be minor, however, since an
5155 RRset in the additional section
5156 typically only contains a small number of RRs (and in many cases
5157 it only contains a single RR), in which case the
5158 ordering does not matter much.
5161 The following is a summary of options related to
5162 <span><strong class=
"command">acache
</strong></span>.
5164 <div class=
"variablelist"><dl>
5165 <dt><span class=
"term"><span><strong class=
"command">acache-enable
</strong></span></span></dt>
5167 If
<span><strong class=
"command">yes
</strong></span>, additional section caching is
5168 enabled. The default value is
<span><strong class=
"command">no
</strong></span>.
5170 <dt><span class=
"term"><span><strong class=
"command">acache-cleaning-interval
</strong></span></span></dt>
5172 The server will remove stale cache entries, based on an LRU
5174 algorithm, every
<span><strong class=
"command">acache-cleaning-interval
</strong></span> minutes.
5175 The default is
60 minutes.
5176 If set to
0, no periodic cleaning will occur.
5178 <dt><span class=
"term"><span><strong class=
"command">max-acache-size
</strong></span></span></dt>
5180 The maximum amount of memory in bytes to use for the server's acache.
5181 When the amount of data in the acache reaches this limit,
5183 will clean more aggressively so that the limit is not
5185 In a server with multiple views, the limit applies
5187 acache of each view.
5188 The default is
<code class=
"literal">16M
</code>.
5192 <div class=
"sect3" lang=
"en">
5193 <div class=
"titlepage"><div><div><h4 class=
"title">
5194 <a name=
"id2587214"></a>Content Filtering
</h4></div></div></div>
5196 <acronym class=
"acronym">BIND
</acronym> 9 provides the ability to filter
5197 out DNS responses from external DNS servers containing
5198 certain types of data in the answer section.
5199 Specifically, it can reject address (A or AAAA) records if
5200 the corresponding IPv4 or IPv6 addresses match the given
5201 <code class=
"varname">address_match_list
</code> of the
5202 <span><strong class=
"command">deny-answer-addresses
</strong></span> option.
5203 It can also reject CNAME or DNAME records if the
"alias"
5204 name (i.e., the CNAME alias or the substituted query name
5205 due to DNAME) matches the
5206 given
<code class=
"varname">namelist
</code> of the
5207 <span><strong class=
"command">deny-answer-aliases
</strong></span> option, where
5208 "match" means the alias name is a subdomain of one of
5209 the
<code class=
"varname">name_list
</code> elements.
5210 If the optional
<code class=
"varname">namelist
</code> is specified
5211 with
<span><strong class=
"command">except-from
</strong></span>, records whose query name
5212 matches the list will be accepted regardless of the filter
5214 Likewise, if the alias name is a subdomain of the
5215 corresponding zone, the
<span><strong class=
"command">deny-answer-aliases
</strong></span>
5216 filter will not apply;
5217 for example, even if
"example.com" is specified for
5218 <span><strong class=
"command">deny-answer-aliases
</strong></span>,
5220 <pre class=
"programlisting">www.example.com. CNAME xxx.example.com.
</pre>
5222 returned by an
"example.com" server will be accepted.
5225 In the
<code class=
"varname">address_match_list
</code> of the
5226 <span><strong class=
"command">deny-answer-addresses
</strong></span> option, only
5227 <code class=
"varname">ip_addr
</code>
5228 and
<code class=
"varname">ip_prefix
</code>
5230 any
<code class=
"varname">key_id
</code> will be silently ignored.
5233 If a response message is rejected due to the filtering,
5234 the entire message is discarded without being cached, and
5235 a SERVFAIL error will be returned to the client.
5238 This filtering is intended to prevent
"DNS rebinding attacks," in
5239 which an attacker, in response to a query for a domain name the
5240 attacker controls, returns an IP address within your own network or
5241 an alias name within your own domain.
5242 A naive web browser or script could then serve as an
5243 unintended proxy, allowing the attacker
5244 to get access to an internal node of your local network
5245 that couldn't be externally accessed otherwise.
5246 See the paper available at
5247 <a href=
"" target=
"_top">
5248 http://portal.acm.org/citation.cfm?id=
1315245.1315298
5250 for more details about the attacks.
5253 For example, if you own a domain named
"example.net" and
5254 your internal network uses an IPv4 prefix
192.0.2.0/
24,
5255 you might specify the following rules:
5257 <pre class=
"programlisting">deny-answer-addresses {
192.0.2.0/
24; } except-from {
"example.net"; };
5258 deny-answer-aliases {
"example.net"; };
5261 If an external attacker lets a web browser in your local
5262 network look up an IPv4 address of
"attacker.example.com",
5263 the attacker's DNS server would return a response like this:
5265 <pre class=
"programlisting">attacker.example.com. A
192.0.2.1</pre>
5267 in the answer section.
5268 Since the rdata of this record (the IPv4 address) matches
5269 the specified prefix
192.0.2.0/
24, this response will be
5273 On the other hand, if the browser looks up a legitimate
5274 internal web server
"www.example.net" and the
5275 following response is returned to
5276 the
<acronym class=
"acronym">BIND
</acronym> 9 server
5278 <pre class=
"programlisting">www.example.net. A
192.0.2.2</pre>
5280 it will be accepted since the owner name
"www.example.net"
5281 matches the
<span><strong class=
"command">except-from
</strong></span> element,
5285 Note that this is not really an attack on the DNS per se.
5286 In fact, there is nothing wrong for an
"external" name to
5287 be mapped to your
"internal" IP address or domain name
5288 from the DNS point of view.
5289 It might actually be provided for a legitimate purpose,
5290 such as for debugging.
5291 As long as the mapping is provided by the correct owner,
5292 it is not possible or does not make sense to detect
5293 whether the intent of the mapping is legitimate or not
5295 The
"rebinding" attack must primarily be protected at the
5296 application that uses the DNS.
5297 For a large site, however, it may be difficult to protect
5298 all possible applications at once.
5299 This filtering feature is provided only to help such an
5300 operational environment;
5301 it is generally discouraged to turn it on unless you are
5302 very sure you have no other choice and the attack is a
5303 real threat for your applications.
5306 Care should be particularly taken if you want to use this
5307 option for addresses within
127.0.0.0/
8.
5308 These addresses are obviously
"internal", but many
5309 applications conventionally rely on a DNS mapping from
5310 some name to such an address.
5311 Filtering out DNS records containing this address
5312 spuriously can break such applications.
5316 <div class=
"sect2" lang=
"en">
5317 <div class=
"titlepage"><div><div><h3 class=
"title">
5318 <a name=
"server_statement_grammar"></a><span><strong class=
"command">server
</strong></span> Statement Grammar
</h3></div></div></div>
5319 <pre class=
"programlisting"><span><strong class=
"command">server
</strong></span> <em class=
"replaceable"><code>ip_addr[/prefixlen]
</code></em> {
5320 [
<span class=
"optional"> bogus
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5321 [
<span class=
"optional"> provide-ixfr
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5322 [
<span class=
"optional"> request-ixfr
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5323 [
<span class=
"optional"> edns
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5324 [
<span class=
"optional"> edns-udp-size
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5325 [
<span class=
"optional"> max-udp-size
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5326 [
<span class=
"optional"> transfers
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5327 [
<span class=
"optional"> transfer-format
<em class=
"replaceable"><code>( one-answer | many-answers )
</code></em> ; ]
</span>]
5328 [
<span class=
"optional"> keys
<em class=
"replaceable"><code>{ string ; [
<span class=
"optional"> string ; [
<span class=
"optional">...
</span>]
</span>] }
</code></em> ;
</span>]
5329 [
<span class=
"optional"> transfer-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5330 [
<span class=
"optional"> transfer-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5331 [
<span class=
"optional"> notify-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5332 [
<span class=
"optional"> notify-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5333 [
<span class=
"optional"> query-source [
<span class=
"optional"> address (
<em class=
"replaceable"><code>ip_addr
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>]
5334 [
<span class=
"optional"> port (
<em class=
"replaceable"><code>ip_port
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>];
</span>]
5335 [
<span class=
"optional"> query-source-v6 [
<span class=
"optional"> address (
<em class=
"replaceable"><code>ip_addr
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>]
5336 [
<span class=
"optional"> port (
<em class=
"replaceable"><code>ip_port
</code></em> |
<em class=
"replaceable"><code>*
</code></em> )
</span>];
</span>]
5337 [
<span class=
"optional"> use-queryport-pool
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5338 [
<span class=
"optional"> queryport-pool-ports
<em class=
"replaceable"><code>number
</code></em>;
</span>]
5339 [
<span class=
"optional"> queryport-pool-updateinterval
<em class=
"replaceable"><code>number
</code></em>;
</span>]
5343 <div class=
"sect2" lang=
"en">
5344 <div class=
"titlepage"><div><div><h3 class=
"title">
5345 <a name=
"server_statement_definition_and_usage"></a><span><strong class=
"command">server
</strong></span> Statement Definition and
5346 Usage
</h3></div></div></div>
5348 The
<span><strong class=
"command">server
</strong></span> statement defines
5350 to be associated with a remote name server. If a prefix length is
5351 specified, then a range of servers is covered. Only the most
5353 server clause applies regardless of the order in
5354 <code class=
"filename">named.conf
</code>.
5357 The
<span><strong class=
"command">server
</strong></span> statement can occur at
5358 the top level of the
5359 configuration file or inside a
<span><strong class=
"command">view
</strong></span>
5361 If a
<span><strong class=
"command">view
</strong></span> statement contains
5362 one or more
<span><strong class=
"command">server
</strong></span> statements, only
5364 apply to the view and any top-level ones are ignored.
5365 If a view contains no
<span><strong class=
"command">server
</strong></span>
5367 any top-level
<span><strong class=
"command">server
</strong></span> statements are
5372 If you discover that a remote server is giving out bad data,
5373 marking it as bogus will prevent further queries to it. The
5375 value of
<span><strong class=
"command">bogus
</strong></span> is
<span><strong class=
"command">no
</strong></span>.
5378 The
<span><strong class=
"command">provide-ixfr
</strong></span> clause determines
5380 the local server, acting as master, will respond with an
5382 zone transfer when the given remote server, a slave, requests it.
5383 If set to
<span><strong class=
"command">yes
</strong></span>, incremental transfer
5385 whenever possible. If set to
<span><strong class=
"command">no
</strong></span>,
5387 to the remote server will be non-incremental. If not set, the
5389 of the
<span><strong class=
"command">provide-ixfr
</strong></span> option in the
5391 global options block is used as a default.
5394 The
<span><strong class=
"command">request-ixfr
</strong></span> clause determines
5396 the local server, acting as a slave, will request incremental zone
5397 transfers from the given remote server, a master. If not set, the
5398 value of the
<span><strong class=
"command">request-ixfr
</strong></span> option in
5400 global options block is used as a default.
5403 IXFR requests to servers that do not support IXFR will
5405 fall back to AXFR. Therefore, there is no need to manually list
5406 which servers support IXFR and which ones do not; the global
5408 of
<span><strong class=
"command">yes
</strong></span> should always work.
5409 The purpose of the
<span><strong class=
"command">provide-ixfr
</strong></span> and
5410 <span><strong class=
"command">request-ixfr
</strong></span> clauses is
5411 to make it possible to disable the use of IXFR even when both
5413 and slave claim to support it, for example if one of the servers
5414 is buggy and crashes or corrupts data when IXFR is used.
5417 The
<span><strong class=
"command">edns
</strong></span> clause determines whether
5418 the local server will attempt to use EDNS when communicating
5419 with the remote server. The default is
<span><strong class=
"command">yes
</strong></span>.
5422 The
<span><strong class=
"command">edns-udp-size
</strong></span> option sets the EDNS UDP size
5423 that is advertised by
<span><strong class=
"command">named
</strong></span> when querying the remote server.
5424 Valid values are
512 to
4096 bytes (values outside this range will be
5425 silently adjusted). This option is useful when you wish to
5426 advertises a different value to this server than the value you
5427 advertise globally, for example, when there is a firewall at the
5428 remote site that is blocking large replies.
5431 The
<span><strong class=
"command">max-udp-size
</strong></span> option sets the
5432 maximum EDNS UDP message size
<span><strong class=
"command">named
</strong></span> will send. Valid
5433 values are
512 to
4096 bytes (values outside this range will
5434 be silently adjusted). This option is useful when you
5435 know that there is a firewall that is blocking large
5436 replies from
<span><strong class=
"command">named
</strong></span>.
5439 The server supports two zone transfer methods. The first,
<span><strong class=
"command">one-answer
</strong></span>,
5440 uses one DNS message per resource record transferred.
<span><strong class=
"command">many-answers
</strong></span> packs
5441 as many resource records as possible into a message.
<span><strong class=
"command">many-answers
</strong></span> is
5442 more efficient, but is only known to be understood by
<acronym class=
"acronym">BIND
</acronym> 9,
<acronym class=
"acronym">BIND
</acronym>
5443 8.x, and patched versions of
<acronym class=
"acronym">BIND
</acronym>
5444 4.9.5. You can specify which method
5445 to use for a server with the
<span><strong class=
"command">transfer-format
</strong></span> option.
5446 If
<span><strong class=
"command">transfer-format
</strong></span> is not
5447 specified, the
<span><strong class=
"command">transfer-format
</strong></span>
5449 by the
<span><strong class=
"command">options
</strong></span> statement will be
5452 <p><span><strong class=
"command">transfers
</strong></span>
5453 is used to limit the number of concurrent inbound zone
5454 transfers from the specified server. If no
5455 <span><strong class=
"command">transfers
</strong></span> clause is specified, the
5456 limit is set according to the
5457 <span><strong class=
"command">transfers-per-ns
</strong></span> option.
5460 The
<span><strong class=
"command">keys
</strong></span> clause identifies a
5461 <span><strong class=
"command">key_id
</strong></span> defined by the
<span><strong class=
"command">key
</strong></span> statement,
5462 to be used for transaction security (TSIG,
<a href=
"Bv9ARM.ch04.html#tsig" title=
"TSIG">the section called
“TSIG
”</a>)
5463 when talking to the remote server.
5464 When a request is sent to the remote server, a request signature
5465 will be generated using the key specified here and appended to the
5466 message. A request originating from the remote server is not
5468 to be signed by this key.
5471 Although the grammar of the
<span><strong class=
"command">keys
</strong></span>
5473 allows for multiple keys, only a single key per server is
5478 The
<span><strong class=
"command">transfer-source
</strong></span> and
5479 <span><strong class=
"command">transfer-source-v6
</strong></span> clauses specify
5480 the IPv4 and IPv6 source
5481 address to be used for zone transfer with the remote server,
5483 For an IPv4 remote server, only
<span><strong class=
"command">transfer-source
</strong></span> can
5485 Similarly, for an IPv6 remote server, only
5486 <span><strong class=
"command">transfer-source-v6
</strong></span> can be
5488 For more details, see the description of
5489 <span><strong class=
"command">transfer-source
</strong></span> and
5490 <span><strong class=
"command">transfer-source-v6
</strong></span> in
5491 <a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
5494 The
<span><strong class=
"command">notify-source
</strong></span> and
5495 <span><strong class=
"command">notify-source-v6
</strong></span> clauses specify the
5496 IPv4 and IPv6 source address to be used for notify
5497 messages sent to remote servers, respectively. For an
5498 IPv4 remote server, only
<span><strong class=
"command">notify-source
</strong></span>
5499 can be specified. Similarly, for an IPv6 remote server,
5500 only
<span><strong class=
"command">notify-source-v6
</strong></span> can be specified.
5503 The
<span><strong class=
"command">query-source
</strong></span> and
5504 <span><strong class=
"command">query-source-v6
</strong></span> clauses specify the
5505 IPv4 and IPv6 source address to be used for queries
5506 sent to remote servers, respectively. For an IPv4
5507 remote server, only
<span><strong class=
"command">query-source
</strong></span> can
5508 be specified. Similarly, for an IPv6 remote server,
5509 only
<span><strong class=
"command">query-source-v6
</strong></span> can be specified.
5512 <div class=
"sect2" lang=
"en">
5513 <div class=
"titlepage"><div><div><h3 class=
"title">
5514 <a name=
"statschannels"></a><span><strong class=
"command">statistics-channels
</strong></span> Statement Grammar
</h3></div></div></div>
5515 <pre class=
"programlisting"><span><strong class=
"command">statistics-channels
</strong></span> {
5516 [ inet ( ip_addr | * ) [ port ip_port ]
5517 [ allow {
<em class=
"replaceable"><code> address_match_list
</code></em> } ]; ]
5522 <div class=
"sect2" lang=
"en">
5523 <div class=
"titlepage"><div><div><h3 class=
"title">
5524 <a name=
"id2588103"></a><span><strong class=
"command">statistics-channels
</strong></span> Statement Definition and
5525 Usage
</h3></div></div></div>
5527 The
<span><strong class=
"command">statistics-channels
</strong></span> statement
5528 declares communication channels to be used by system
5529 administrators to get access to statistics information of
5533 This statement intends to be flexible to support multiple
5534 communication protocols in the future, but currently only
5535 HTTP access is supported.
5536 It requires that BIND
9 be compiled with libxml2;
5537 the
<span><strong class=
"command">statistics-channels
</strong></span> statement is
5538 still accepted even if it is built without the library,
5539 but any HTTP access will fail with an error.
5542 An
<span><strong class=
"command">inet
</strong></span> control channel is a TCP socket
5543 listening at the specified
<span><strong class=
"command">ip_port
</strong></span> on the
5544 specified
<span><strong class=
"command">ip_addr
</strong></span>, which can be an IPv4 or IPv6
5545 address. An
<span><strong class=
"command">ip_addr
</strong></span> of
<code class=
"literal">*
</code> (asterisk) is
5546 interpreted as the IPv4 wildcard address; connections will be
5547 accepted on any of the system's IPv4 addresses.
5548 To listen on the IPv6 wildcard address,
5549 use an
<span><strong class=
"command">ip_addr
</strong></span> of
<code class=
"literal">::
</code>.
5552 If no port is specified, port
80 is used for HTTP channels.
5553 The asterisk
"<code class="literal
">*</code>" cannot be used for
5554 <span><strong class=
"command">ip_port
</strong></span>.
5557 The attempt of opening a statistics channel is
5558 restricted by the optional
<span><strong class=
"command">allow
</strong></span> clause.
5559 Connections to the statistics channel are permitted based on the
5560 <span><strong class=
"command">address_match_list
</strong></span>.
5561 If no
<span><strong class=
"command">allow
</strong></span> clause is present,
5562 <span><strong class=
"command">named
</strong></span> accepts connection
5563 attempts from any address; since the statistics may
5564 contain sensitive internal information, it is highly
5565 recommended to restrict the source of connection requests
5569 If no
<span><strong class=
"command">statistics-channels
</strong></span> statement is present,
5570 <span><strong class=
"command">named
</strong></span> will not open any communication channels.
5573 <div class=
"sect2" lang=
"en">
5574 <div class=
"titlepage"><div><div><h3 class=
"title">
5575 <a name=
"id2588326"></a><span><strong class=
"command">trusted-keys
</strong></span> Statement Grammar
</h3></div></div></div>
5576 <pre class=
"programlisting"><span><strong class=
"command">trusted-keys
</strong></span> {
5577 <em class=
"replaceable"><code>string
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>string
</code></em> ;
5578 [
<span class=
"optional"> <em class=
"replaceable"><code>string
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>string
</code></em> ; [
<span class=
"optional">...
</span>]
</span>]
5582 <div class=
"sect2" lang=
"en">
5583 <div class=
"titlepage"><div><div><h3 class=
"title">
5584 <a name=
"id2588377"></a><span><strong class=
"command">trusted-keys
</strong></span> Statement Definition
5585 and Usage
</h3></div></div></div>
5587 The
<span><strong class=
"command">trusted-keys
</strong></span> statement defines
5588 DNSSEC security roots. DNSSEC is described in
<a href=
"Bv9ARM.ch04.html#DNSSEC" title=
"DNSSEC">the section called
“DNSSEC
”</a>. A security root is defined when the
5589 public key for a non-authoritative zone is known, but
5590 cannot be securely obtained through DNS, either because
5591 it is the DNS root zone or because its parent zone is
5592 unsigned. Once a key has been configured as a trusted
5593 key, it is treated as if it had been validated and
5594 proven secure. The resolver attempts DNSSEC validation
5595 on all DNS data in subdomains of a security root.
5598 All keys (and corresponding zones) listed in
5599 <span><strong class=
"command">trusted-keys
</strong></span> are deemed to exist regardless
5600 of what parent zones say. Similarly for all keys listed in
5601 <span><strong class=
"command">trusted-keys
</strong></span> only those keys are
5602 used to validate the DNSKEY RRset. The parent's DS RRset
5606 The
<span><strong class=
"command">trusted-keys
</strong></span> statement can contain
5607 multiple key entries, each consisting of the key's
5608 domain name, flags, protocol, algorithm, and the Base-
64
5609 representation of the key data.
5610 Spaces, tabs, newlines and carriage returns are ignored
5611 in the key data, so the configuration may be split up into
5615 <span><strong class=
"command">trusted-keys
</strong></span> may be set at the top level
5616 of
<code class=
"filename">named.conf
</code> or within a view. If it is
5617 set in both places, they are additive: keys defined at the top
5618 level are inherited by all views, but keys defined in a view
5619 are only used within that view.
5622 <div class=
"sect2" lang=
"en">
5623 <div class=
"titlepage"><div><div><h3 class=
"title">
5624 <a name=
"id2588424"></a><span><strong class=
"command">managed-keys
</strong></span> Statement Grammar
</h3></div></div></div>
5625 <pre class=
"programlisting"><span><strong class=
"command">managed-keys
</strong></span> {
5626 <em class=
"replaceable"><code>string
</code></em> initial-key
<em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>string
</code></em> ;
5627 [
<span class=
"optional"> <em class=
"replaceable"><code>string
</code></em> initial-key
<em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>string
</code></em> ; [
<span class=
"optional">...
</span>]
</span>]
5631 <div class=
"sect2" lang=
"en">
5632 <div class=
"titlepage"><div><div><h3 class=
"title">
5633 <a name=
"id2588475"></a><span><strong class=
"command">managed-keys
</strong></span> Statement Definition
5634 and Usage
</h3></div></div></div>
5636 The
<span><strong class=
"command">managed-keys
</strong></span> statement, like
5637 <span><strong class=
"command">trusted-keys
</strong></span>, defines DNSSEC
5638 security roots. The difference is that
5639 <span><strong class=
"command">managed-keys
</strong></span> can be kept up to date
5640 automatically, without intervention from the resolver
5644 Suppose, for example, that a zone's key-signing
5645 key was compromised, and the zone owner had to revoke and
5646 replace the key. A resolver which had the old key in a
5647 <span><strong class=
"command">trusted-keys
</strong></span> statement would be
5648 unable to validate this zone any longer; it would
5649 reply with a SERVFAIL response code. This would
5650 continue until the resolver operator had updated the
5651 <span><strong class=
"command">trusted-keys
</strong></span> statement with the new key.
5654 If, however, the zone were listed in a
5655 <span><strong class=
"command">managed-keys
</strong></span> statement instead, then the
5656 zone owner could add a
"stand-by" key to the zone in advance.
5657 <span><strong class=
"command">named
</strong></span> would store the stand-by key, and
5658 when the original key was revoked,
<span><strong class=
"command">named
</strong></span>
5659 would be able to transition smoothly to the new key. It would
5660 also recognize that the old key had been revoked, and cease
5661 using that key to validate answers, minimizing the damage that
5662 the compromised key could do.
5665 A
<span><strong class=
"command">managed-keys
</strong></span> statement contains a list of
5666 the keys to be managed, along with information about how the
5667 keys are to be initialized for the first time. The only
5668 initialization method currently supported (as of
5669 <acronym class=
"acronym">BIND
</acronym> 9.7.0) is
<code class=
"literal">initial-key
</code>.
5670 This means the
<span><strong class=
"command">managed-keys
</strong></span> statement must
5671 contain a copy of the initializing key. (Future releases may
5672 allow keys to be initialized by other methods, eliminating this
5676 Consequently, a
<span><strong class=
"command">managed-keys
</strong></span> statement
5677 appears similar to a
<span><strong class=
"command">trusted-keys
</strong></span>, differing
5678 in the presence of the second field, containing the keyword
5679 <code class=
"literal">initial-key
</code>. The difference is, whereas the
5680 keys listed in a
<span><strong class=
"command">trusted-keys
</strong></span> continue to be
5681 trusted until they are removed from
5682 <code class=
"filename">named.conf
</code>, an initializing key listed
5683 in a
<span><strong class=
"command">managed-keys
</strong></span> statement is only trusted
5684 <span class=
"emphasis"><em>once
</em></span>: for as long as it takes to load the
5685 managed key database and start the RFC
5011 key maintenance
5689 The first time
<span><strong class=
"command">named
</strong></span> runs with a managed key
5690 configured in
<code class=
"filename">named.conf
</code>, it fetches the
5691 DNSKEY RRset directly from the zone apex, and validates it
5692 using the key specified in the
<span><strong class=
"command">managed-keys
</strong></span>
5693 statement. If the DNSKEY RRset is validly signed, then it is
5694 used as the basis for a new managed keys database.
5697 From that point on, whenever
<span><strong class=
"command">named
</strong></span> runs, it
5698 sees the
<span><strong class=
"command">managed-keys
</strong></span> statement, checks to
5699 make sure RFC
5011 key maintenance has already been initialized
5700 for the specified domain, and if so, it simply moves on. The
5701 key specified in the
<span><strong class=
"command">managed-keys
</strong></span> is not
5702 used to validate answers; it has been superseded by the key or
5703 keys stored in the managed keys database.
5706 The next time
<span><strong class=
"command">named
</strong></span> runs after a name
5707 has been
<span class=
"emphasis"><em>removed
</em></span> from the
5708 <span><strong class=
"command">managed-keys
</strong></span> statement, the corresponding
5709 zone will be removed from the managed keys database,
5710 and RFC
5011 key maintenance will no longer be used for that
5714 <span><strong class=
"command">named
</strong></span> only maintains a single managed keys
5715 database; consequently, unlike
<span><strong class=
"command">trusted-keys
</strong></span>,
5716 <span><strong class=
"command">managed-keys
</strong></span> may only be set at the top
5717 level of
<code class=
"filename">named.conf
</code>, not within a view.
5720 In the current implementation, the managed keys database is
5721 stored as a master-format zone file called
5722 <code class=
"filename">managed-keys.bind
</code>. When the key database
5723 is changed, the zone is updated. As with any other dynamic
5724 zone, changes will be written into a journal file,
5725 <code class=
"filename">managed-keys.bind.jnl
</code>. They are committed
5726 to the master file as soon as possible afterward; in the case
5727 of the managed key database, this will usually occur within
30
5728 seconds. So, whenever
<span><strong class=
"command">named
</strong></span> is using
5729 automatic key maintenace, those two files can be expected to
5730 exist in the working directory. (For this reason among others,
5731 the working directory should be always be writable by
5732 <span><strong class=
"command">named
</strong></span>.)
5735 If the
<span><strong class=
"command">dnssec-lookaside
</strong></span> option is
5736 set to
<strong class=
"userinput"><code>auto
</code></strong>,
<span><strong class=
"command">named
</strong></span>
5737 will automatically initialize a managed key for the
5738 zone
<code class=
"literal">dlv.isc.org
</code>. The key that is
5739 used to initialize the key maintenance process is built
5740 into
<span><strong class=
"command">named
</strong></span>, and can be overridden
5741 from
<span><strong class=
"command">bindkeys-file
</strong></span>.
5744 <div class=
"sect2" lang=
"en">
5745 <div class=
"titlepage"><div><div><h3 class=
"title">
5746 <a name=
"view_statement_grammar"></a><span><strong class=
"command">view
</strong></span> Statement Grammar
</h3></div></div></div>
5747 <pre class=
"programlisting"><span><strong class=
"command">view
</strong></span> <em class=
"replaceable"><code>view_name
</code></em>
5748 [
<span class=
"optional"><em class=
"replaceable"><code>class
</code></em></span>] {
5749 match-clients {
<em class=
"replaceable"><code>address_match_list
</code></em> };
5750 match-destinations {
<em class=
"replaceable"><code>address_match_list
</code></em> };
5751 match-recursive-only
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
5752 [
<span class=
"optional"> <em class=
"replaceable"><code>view_option
</code></em>; ...
</span>]
5753 [
<span class=
"optional"> <em class=
"replaceable"><code>zone_statement
</code></em>; ...
</span>]
5757 <div class=
"sect2" lang=
"en">
5758 <div class=
"titlepage"><div><div><h3 class=
"title">
5759 <a name=
"id2588848"></a><span><strong class=
"command">view
</strong></span> Statement Definition and Usage
</h3></div></div></div>
5761 The
<span><strong class=
"command">view
</strong></span> statement is a powerful
5763 of
<acronym class=
"acronym">BIND
</acronym> 9 that lets a name server
5764 answer a DNS query differently
5765 depending on who is asking. It is particularly useful for
5767 split DNS setups without having to run multiple servers.
5770 Each
<span><strong class=
"command">view
</strong></span> statement defines a view
5772 DNS namespace that will be seen by a subset of clients. A client
5774 a view if its source IP address matches the
5775 <code class=
"varname">address_match_list
</code> of the view's
5776 <span><strong class=
"command">match-clients
</strong></span> clause and its
5777 destination IP address matches
5778 the
<code class=
"varname">address_match_list
</code> of the
5780 <span><strong class=
"command">match-destinations
</strong></span> clause. If not
5782 <span><strong class=
"command">match-clients
</strong></span> and
<span><strong class=
"command">match-destinations
</strong></span>
5783 default to matching all addresses. In addition to checking IP
5785 <span><strong class=
"command">match-clients
</strong></span> and
<span><strong class=
"command">match-destinations
</strong></span>
5786 can also take
<span><strong class=
"command">keys
</strong></span> which provide an
5788 client to select the view. A view can also be specified
5789 as
<span><strong class=
"command">match-recursive-only
</strong></span>, which
5790 means that only recursive
5791 requests from matching clients will match that view.
5792 The order of the
<span><strong class=
"command">view
</strong></span> statements is
5794 a client request will be resolved in the context of the first
5795 <span><strong class=
"command">view
</strong></span> that it matches.
5798 Zones defined within a
<span><strong class=
"command">view
</strong></span>
5800 only be accessible to clients that match the
<span><strong class=
"command">view
</strong></span>.
5801 By defining a zone of the same name in multiple views, different
5802 zone data can be given to different clients, for example,
5804 and
"external" clients in a split DNS setup.
5807 Many of the options given in the
<span><strong class=
"command">options
</strong></span> statement
5808 can also be used within a
<span><strong class=
"command">view
</strong></span>
5810 apply only when resolving queries with that view. When no
5812 value is given, the value in the
<span><strong class=
"command">options
</strong></span> statement
5813 is used as a default. Also, zone options can have default values
5815 in the
<span><strong class=
"command">view
</strong></span> statement; these
5816 view-specific defaults
5817 take precedence over those in the
<span><strong class=
"command">options
</strong></span> statement.
5820 Views are class specific. If no class is given, class IN
5821 is assumed. Note that all non-IN views must contain a hint zone,
5822 since only the IN class has compiled-in default hints.
5825 If there are no
<span><strong class=
"command">view
</strong></span> statements in
5827 file, a default view that matches any client is automatically
5829 in class IN. Any
<span><strong class=
"command">zone
</strong></span> statements
5831 the top level of the configuration file are considered to be part
5833 this default view, and the
<span><strong class=
"command">options
</strong></span>
5835 apply to the default view. If any explicit
<span><strong class=
"command">view
</strong></span>
5836 statements are present, all
<span><strong class=
"command">zone
</strong></span>
5838 occur inside
<span><strong class=
"command">view
</strong></span> statements.
5841 Here is an example of a typical split DNS setup implemented
5842 using
<span><strong class=
"command">view
</strong></span> statements:
5844 <pre class=
"programlisting">view
"internal" {
5845 // This should match our internal networks.
5846 match-clients {
10.0.0.0/
8; };
5848 // Provide recursive service to internal
5852 // Provide a complete view of the example.com
5853 // zone including addresses of internal hosts.
5854 zone
"example.com" {
5856 file
"example-internal.db";
5861 // Match all clients not matched by the
5863 match-clients { any; };
5865 // Refuse recursive service to external clients.
5868 // Provide a restricted view of the example.com
5869 // zone containing only publicly accessible hosts.
5870 zone
"example.com" {
5872 file
"example-external.db";
5877 <div class=
"sect2" lang=
"en">
5878 <div class=
"titlepage"><div><div><h3 class=
"title">
5879 <a name=
"zone_statement_grammar"></a><span><strong class=
"command">zone
</strong></span>
5880 Statement Grammar
</h3></div></div></div>
5881 <pre class=
"programlisting"><span><strong class=
"command">zone
</strong></span> <em class=
"replaceable"><code>zone_name
</code></em> [
<span class=
"optional"><em class=
"replaceable"><code>class
</code></em></span>] {
5883 [
<span class=
"optional"> allow-query {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5884 [
<span class=
"optional"> allow-query-on {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5885 [
<span class=
"optional"> allow-transfer {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5886 [
<span class=
"optional"> allow-update {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5887 [
<span class=
"optional"> update-policy
<em class=
"replaceable"><code>local
</code></em> | {
<em class=
"replaceable"><code>update_policy_rule
</code></em> [
<span class=
"optional">...
</span>] };
</span>]
5888 [
<span class=
"optional"> also-notify {
<em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
5889 [
<span class=
"optional"> <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ; ...
</span>] };
</span>]
5890 [
<span class=
"optional"> check-names (
<code class=
"constant">warn
</code>|
<code class=
"constant">fail
</code>|
<code class=
"constant">ignore
</code>) ;
</span>]
5891 [
<span class=
"optional"> check-mx (
<code class=
"constant">warn
</code>|
<code class=
"constant">fail
</code>|
<code class=
"constant">ignore
</code>) ;
</span>]
5892 [
<span class=
"optional"> check-wildcard
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5893 [
<span class=
"optional"> check-integrity
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5894 [
<span class=
"optional"> dialup
<em class=
"replaceable"><code>dialup_option
</code></em> ;
</span>]
5895 [
<span class=
"optional"> file
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5896 [
<span class=
"optional"> masterfile-format (
<code class=
"constant">text
</code>|
<code class=
"constant">raw
</code>) ;
</span>]
5897 [
<span class=
"optional"> journal
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5898 [
<span class=
"optional"> max-journal-size
<em class=
"replaceable"><code>size_spec
</code></em>;
</span>]
5899 [
<span class=
"optional"> forward (
<code class=
"constant">only
</code>|
<code class=
"constant">first
</code>) ;
</span>]
5900 [
<span class=
"optional"> forwarders { [
<span class=
"optional"> <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ; ...
</span>] };
</span>]
5901 [
<span class=
"optional"> ixfr-base
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5902 [
<span class=
"optional"> ixfr-from-differences
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5903 [
<span class=
"optional"> ixfr-tmp-file
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5904 [
<span class=
"optional"> maintain-ixfr-base
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5905 [
<span class=
"optional"> max-ixfr-log-size
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5906 [
<span class=
"optional"> max-transfer-idle-out
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5907 [
<span class=
"optional"> max-transfer-time-out
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5908 [
<span class=
"optional"> notify
<em class=
"replaceable"><code>yes_or_no
</code></em> |
<em class=
"replaceable"><code>explicit
</code></em> |
<em class=
"replaceable"><code>master-only
</code></em> ;
</span>]
5909 [
<span class=
"optional"> notify-delay
<em class=
"replaceable"><code>seconds
</code></em> ;
</span>]
5910 [
<span class=
"optional"> notify-to-soa
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5911 [
<span class=
"optional"> pubkey
<em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>string
</code></em> ;
</span>]
5912 [
<span class=
"optional"> notify-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5913 [
<span class=
"optional"> notify-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5914 [
<span class=
"optional"> zone-statistics
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5915 [
<span class=
"optional"> sig-validity-interval
<em class=
"replaceable"><code>number
</code></em> [
<span class=
"optional"><em class=
"replaceable"><code>number
</code></em></span>] ;
</span>]
5916 [
<span class=
"optional"> sig-signing-nodes
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5917 [
<span class=
"optional"> sig-signing-signatures
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5918 [
<span class=
"optional"> sig-signing-type
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5919 [
<span class=
"optional"> database
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5920 [
<span class=
"optional"> min-refresh-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5921 [
<span class=
"optional"> max-refresh-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5922 [
<span class=
"optional"> min-retry-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5923 [
<span class=
"optional"> max-retry-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5924 [
<span class=
"optional"> key-directory
<em class=
"replaceable"><code>path_name
</code></em>;
</span>]
5925 [
<span class=
"optional"> auto-dnssec
<code class=
"constant">allow
</code>|
<code class=
"constant">maintain
</code>|
<code class=
"constant">create
</code>|
<code class=
"constant">off
</code>;
</span>]
5926 [
<span class=
"optional"> zero-no-soa-ttl
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5929 zone
<em class=
"replaceable"><code>zone_name
</code></em> [
<span class=
"optional"><em class=
"replaceable"><code>class
</code></em></span>] {
5931 [
<span class=
"optional"> allow-notify {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5932 [
<span class=
"optional"> allow-query {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5933 [
<span class=
"optional"> allow-query-on {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5934 [
<span class=
"optional"> allow-transfer {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5935 [
<span class=
"optional"> allow-update-forwarding {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5936 [
<span class=
"optional"> update-check-ksk
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5937 [
<span class=
"optional"> dnssec-dnskey-kskonly
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5938 [
<span class=
"optional"> dnssec-secure-to-insecure
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5939 [
<span class=
"optional"> try-tcp-refresh
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5940 [
<span class=
"optional"> also-notify {
<em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
5941 [
<span class=
"optional"> <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ; ...
</span>] };
</span>]
5942 [
<span class=
"optional"> check-names (
<code class=
"constant">warn
</code>|
<code class=
"constant">fail
</code>|
<code class=
"constant">ignore
</code>) ;
</span>]
5943 [
<span class=
"optional"> dialup
<em class=
"replaceable"><code>dialup_option
</code></em> ;
</span>]
5944 [
<span class=
"optional"> file
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5945 [
<span class=
"optional"> masterfile-format (
<code class=
"constant">text
</code>|
<code class=
"constant">raw
</code>) ;
</span>]
5946 [
<span class=
"optional"> journal
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5947 [
<span class=
"optional"> max-journal-size
<em class=
"replaceable"><code>size_spec
</code></em>;
</span>]
5948 [
<span class=
"optional"> forward (
<code class=
"constant">only
</code>|
<code class=
"constant">first
</code>) ;
</span>]
5949 [
<span class=
"optional"> forwarders { [
<span class=
"optional"> <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ; ...
</span>] };
</span>]
5950 [
<span class=
"optional"> ixfr-base
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5951 [
<span class=
"optional"> ixfr-from-differences
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5952 [
<span class=
"optional"> ixfr-tmp-file
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5953 [
<span class=
"optional"> maintain-ixfr-base
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5954 [
<span class=
"optional"> masters [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] { (
<em class=
"replaceable"><code>masters_list
</code></em> |
<em class=
"replaceable"><code>ip_addr
</code></em>
5955 [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>]
5956 [
<span class=
"optional">key
<em class=
"replaceable"><code>key
</code></em></span>] ) ; [
<span class=
"optional">...
</span>] };
</span>]
5957 [
<span class=
"optional"> max-ixfr-log-size
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5958 [
<span class=
"optional"> max-transfer-idle-in
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5959 [
<span class=
"optional"> max-transfer-idle-out
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5960 [
<span class=
"optional"> max-transfer-time-in
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5961 [
<span class=
"optional"> max-transfer-time-out
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5962 [
<span class=
"optional"> notify
<em class=
"replaceable"><code>yes_or_no
</code></em> |
<em class=
"replaceable"><code>explicit
</code></em> |
<em class=
"replaceable"><code>master-only
</code></em> ;
</span>]
5963 [
<span class=
"optional"> notify-delay
<em class=
"replaceable"><code>seconds
</code></em> ;
</span>]
5964 [
<span class=
"optional"> notify-to-soa
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5965 [
<span class=
"optional"> pubkey
<em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>string
</code></em> ;
</span>]
5966 [
<span class=
"optional"> transfer-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5967 [
<span class=
"optional"> transfer-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5968 [
<span class=
"optional"> alt-transfer-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5969 [
<span class=
"optional"> alt-transfer-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>)
5970 [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5971 [
<span class=
"optional"> use-alt-transfer-source
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
5972 [
<span class=
"optional"> notify-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5973 [
<span class=
"optional"> notify-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
5974 [
<span class=
"optional"> zone-statistics
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5975 [
<span class=
"optional"> database
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5976 [
<span class=
"optional"> min-refresh-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5977 [
<span class=
"optional"> max-refresh-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5978 [
<span class=
"optional"> min-retry-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5979 [
<span class=
"optional"> max-retry-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
5980 [
<span class=
"optional"> multi-master
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5981 [
<span class=
"optional"> zero-no-soa-ttl
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5984 zone
<em class=
"replaceable"><code>zone_name
</code></em> [
<span class=
"optional"><em class=
"replaceable"><code>class
</code></em></span>] {
5986 file
<em class=
"replaceable"><code>string
</code></em> ;
5987 [
<span class=
"optional"> delegation-only
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5988 [
<span class=
"optional"> check-names (
<code class=
"constant">warn
</code>|
<code class=
"constant">fail
</code>|
<code class=
"constant">ignore
</code>) ;
</span>] // Not Implemented.
5991 zone
<em class=
"replaceable"><code>zone_name
</code></em> [
<span class=
"optional"><em class=
"replaceable"><code>class
</code></em></span>] {
5993 [
<span class=
"optional"> allow-query {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5994 [
<span class=
"optional"> allow-query-on {
<em class=
"replaceable"><code>address_match_list
</code></em> };
</span>]
5995 [
<span class=
"optional"> check-names (
<code class=
"constant">warn
</code>|
<code class=
"constant">fail
</code>|
<code class=
"constant">ignore
</code>) ;
</span>]
5996 [
<span class=
"optional"> dialup
<em class=
"replaceable"><code>dialup_option
</code></em> ;
</span>]
5997 [
<span class=
"optional"> delegation-only
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
5998 [
<span class=
"optional"> file
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
5999 [
<span class=
"optional"> masterfile-format (
<code class=
"constant">text
</code>|
<code class=
"constant">raw
</code>) ;
</span>]
6000 [
<span class=
"optional"> forward (
<code class=
"constant">only
</code>|
<code class=
"constant">first
</code>) ;
</span>]
6001 [
<span class=
"optional"> forwarders { [
<span class=
"optional"> <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ; ...
</span>] };
</span>]
6002 [
<span class=
"optional"> masters [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] { (
<em class=
"replaceable"><code>masters_list
</code></em> |
<em class=
"replaceable"><code>ip_addr
</code></em>
6003 [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>]
6004 [
<span class=
"optional">key
<em class=
"replaceable"><code>key
</code></em></span>] ) ; [
<span class=
"optional">...
</span>] };
</span>]
6005 [
<span class=
"optional"> max-transfer-idle-in
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
6006 [
<span class=
"optional"> max-transfer-time-in
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
6007 [
<span class=
"optional"> pubkey
<em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>number
</code></em> <em class=
"replaceable"><code>string
</code></em> ;
</span>]
6008 [
<span class=
"optional"> transfer-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
6009 [
<span class=
"optional"> transfer-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>)
6010 [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
6011 [
<span class=
"optional"> alt-transfer-source (
<em class=
"replaceable"><code>ip4_addr
</code></em> |
<code class=
"constant">*
</code>) [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
6012 [
<span class=
"optional"> alt-transfer-source-v6 (
<em class=
"replaceable"><code>ip6_addr
</code></em> |
<code class=
"constant">*
</code>)
6013 [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ;
</span>]
6014 [
<span class=
"optional"> use-alt-transfer-source
<em class=
"replaceable"><code>yes_or_no
</code></em>;
</span>]
6015 [
<span class=
"optional"> zone-statistics
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
6016 [
<span class=
"optional"> database
<em class=
"replaceable"><code>string
</code></em> ;
</span>]
6017 [
<span class=
"optional"> min-refresh-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
6018 [
<span class=
"optional"> max-refresh-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
6019 [
<span class=
"optional"> min-retry-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
6020 [
<span class=
"optional"> max-retry-time
<em class=
"replaceable"><code>number
</code></em> ;
</span>]
6021 [
<span class=
"optional"> multi-master
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
6024 zone
<em class=
"replaceable"><code>zone_name
</code></em> [
<span class=
"optional"><em class=
"replaceable"><code>class
</code></em></span>] {
6026 [
<span class=
"optional"> forward (
<code class=
"constant">only
</code>|
<code class=
"constant">first
</code>) ;
</span>]
6027 [
<span class=
"optional"> forwarders { [
<span class=
"optional"> <em class=
"replaceable"><code>ip_addr
</code></em> [
<span class=
"optional">port
<em class=
"replaceable"><code>ip_port
</code></em></span>] ; ...
</span>] };
</span>]
6028 [
<span class=
"optional"> delegation-only
<em class=
"replaceable"><code>yes_or_no
</code></em> ;
</span>]
6031 zone
<em class=
"replaceable"><code>zone_name
</code></em> [
<span class=
"optional"><em class=
"replaceable"><code>class
</code></em></span>] {
6032 type delegation-only;
6037 <div class=
"sect2" lang=
"en">
6038 <div class=
"titlepage"><div><div><h3 class=
"title">
6039 <a name=
"id2590421"></a><span><strong class=
"command">zone
</strong></span> Statement Definition and Usage
</h3></div></div></div>
6040 <div class=
"sect3" lang=
"en">
6041 <div class=
"titlepage"><div><div><h4 class=
"title">
6042 <a name=
"id2590428"></a>Zone Types
</h4></div></div></div>
6043 <div class=
"informaltable"><table border=
"1">
6052 <code class=
"varname">master
</code>
6057 The server has a master copy of the data
6058 for the zone and will be able to provide authoritative
6067 <code class=
"varname">slave
</code>
6072 A slave zone is a replica of a master
6073 zone. The
<span><strong class=
"command">masters
</strong></span> list
6074 specifies one or more IP addresses
6075 of master servers that the slave contacts to update
6076 its copy of the zone.
6077 Masters list elements can also be names of other
6079 By default, transfers are made from port
53 on the
6081 be changed for all servers by specifying a port number
6083 list of IP addresses, or on a per-server basis after
6085 Authentication to the master can also be done with
6086 per-server TSIG keys.
6087 If a file is specified, then the
6088 replica will be written to this file whenever the zone
6090 and reloaded from this file on a server restart. Use
6092 recommended, since it often speeds server startup and
6094 a needless waste of bandwidth. Note that for large
6096 tens or hundreds of thousands) of zones per server, it
6098 use a two-level naming scheme for zone filenames. For
6100 a slave server for the zone
<code class=
"literal">example.com
</code> might place
6101 the zone contents into a file called
6102 <code class=
"filename">ex/example.com
</code> where
<code class=
"filename">ex/
</code> is
6103 just the first two letters of the zone name. (Most
6105 behave very slowly if you put
100000 files into
6106 a single directory.)
6113 <code class=
"varname">stub
</code>
6118 A stub zone is similar to a slave zone,
6119 except that it replicates only the NS records of a
6121 of the entire zone. Stub zones are not a standard part
6123 they are a feature specific to the
<acronym class=
"acronym">BIND
</acronym> implementation.
6127 Stub zones can be used to eliminate the need for glue
6129 in a parent zone at the expense of maintaining a stub
6131 a set of name server addresses in
<code class=
"filename">named.conf
</code>.
6132 This usage is not recommended for new configurations,
6134 supports it only in a limited way.
6135 In
<acronym class=
"acronym">BIND
</acronym> 4/
8, zone
6136 transfers of a parent zone
6137 included the NS records from stub children of that
6139 that, in some cases, users could get away with
6140 configuring child stubs
6141 only in the master server for the parent zone.
<acronym class=
"acronym">BIND
</acronym>
6142 9 never mixes together zone data from different zones
6144 way. Therefore, if a
<acronym class=
"acronym">BIND
</acronym> 9 master serving a parent
6145 zone has child stub zones configured, all the slave
6147 parent zone also need to have the same child stub
6153 Stub zones can also be used as a way of forcing the
6155 of a given domain to use a particular set of
6156 authoritative servers.
6157 For example, the caching name servers on a private
6159 RFC1918 addressing may be configured with stub zones
6161 <code class=
"literal">10.in-addr.arpa
</code>
6162 to use a set of internal name servers as the
6164 servers for that domain.
6171 <code class=
"varname">forward
</code>
6176 A
"forward zone" is a way to configure
6177 forwarding on a per-domain basis. A
<span><strong class=
"command">zone
</strong></span> statement
6178 of type
<span><strong class=
"command">forward
</strong></span> can
6179 contain a
<span><strong class=
"command">forward
</strong></span>
6180 and/or
<span><strong class=
"command">forwarders
</strong></span>
6182 which will apply to queries within the domain given by
6184 name. If no
<span><strong class=
"command">forwarders
</strong></span>
6185 statement is present or
6186 an empty list for
<span><strong class=
"command">forwarders
</strong></span> is given, then no
6187 forwarding will be done for the domain, canceling the
6189 any forwarders in the
<span><strong class=
"command">options
</strong></span> statement. Thus
6190 if you want to use this type of zone to change the
6192 global
<span><strong class=
"command">forward
</strong></span> option
6193 (that is,
"forward first"
6194 to, then
"forward only", or vice versa, but want to
6196 servers as set globally) you need to re-specify the
6204 <code class=
"varname">hint
</code>
6209 The initial set of root name servers is
6210 specified using a
"hint zone". When the server starts
6212 the root hints to find a root name server and get the
6214 list of root name servers. If no hint zone is
6216 IN, the server uses a compiled-in default set of root
6218 Classes other than IN have no built-in defaults hints.
6225 <code class=
"varname">delegation-only
</code>
6230 This is used to enforce the delegation-only
6231 status of infrastructure zones (e.g. COM,
6232 NET, ORG). Any answer that is received
6233 without an explicit or implicit delegation
6234 in the authority section will be treated
6235 as NXDOMAIN. This does not apply to the
6236 zone apex. This should not be applied to
6240 <code class=
"varname">delegation-only
</code> has no
6241 effect on answers received from forwarders.
6244 See caveats in
<a href=
"Bv9ARM.ch06.html#root_delegation_only"><span><strong class=
"command">root-delegation-only
</strong></span></a>.
6251 <div class=
"sect3" lang=
"en">
6252 <div class=
"titlepage"><div><div><h4 class=
"title">
6253 <a name=
"id2590856"></a>Class
</h4></div></div></div>
6255 The zone's name may optionally be followed by a class. If
6256 a class is not specified, class
<code class=
"literal">IN
</code> (for
<code class=
"varname">Internet
</code>),
6257 is assumed. This is correct for the vast majority of cases.
6260 The
<code class=
"literal">hesiod
</code> class is
6261 named for an information service from MIT's Project Athena. It
6263 used to share information about various systems databases, such
6264 as users, groups, printers and so on. The keyword
6265 <code class=
"literal">HS
</code> is
6266 a synonym for hesiod.
6269 Another MIT development is Chaosnet, a LAN protocol created
6270 in the mid-
1970s. Zone data for it can be specified with the
<code class=
"literal">CHAOS
</code> class.
6273 <div class=
"sect3" lang=
"en">
6274 <div class=
"titlepage"><div><div><h4 class=
"title">
6275 <a name=
"id2590889"></a>Zone Options
</h4></div></div></div>
6276 <div class=
"variablelist"><dl>
6277 <dt><span class=
"term"><span><strong class=
"command">allow-notify
</strong></span></span></dt>
6279 See the description of
6280 <span><strong class=
"command">allow-notify
</strong></span> in
<a href=
"Bv9ARM.ch06.html#access_control" title=
"Access Control">the section called
“Access Control
”</a>.
6282 <dt><span class=
"term"><span><strong class=
"command">allow-query
</strong></span></span></dt>
6284 See the description of
6285 <span><strong class=
"command">allow-query
</strong></span> in
<a href=
"Bv9ARM.ch06.html#access_control" title=
"Access Control">the section called
“Access Control
”</a>.
6287 <dt><span class=
"term"><span><strong class=
"command">allow-query-on
</strong></span></span></dt>
6289 See the description of
6290 <span><strong class=
"command">allow-query-on
</strong></span> in
<a href=
"Bv9ARM.ch06.html#access_control" title=
"Access Control">the section called
“Access Control
”</a>.
6292 <dt><span class=
"term"><span><strong class=
"command">allow-transfer
</strong></span></span></dt>
6294 See the description of
<span><strong class=
"command">allow-transfer
</strong></span>
6295 in
<a href=
"Bv9ARM.ch06.html#access_control" title=
"Access Control">the section called
“Access Control
”</a>.
6297 <dt><span class=
"term"><span><strong class=
"command">allow-update
</strong></span></span></dt>
6299 See the description of
<span><strong class=
"command">allow-update
</strong></span>
6300 in
<a href=
"Bv9ARM.ch06.html#access_control" title=
"Access Control">the section called
“Access Control
”</a>.
6302 <dt><span class=
"term"><span><strong class=
"command">update-policy
</strong></span></span></dt>
6304 Specifies a
"Simple Secure Update" policy. See
6305 <a href=
"Bv9ARM.ch06.html#dynamic_update_policies" title=
"Dynamic Update Policies">the section called
“Dynamic Update Policies
”</a>.
6307 <dt><span class=
"term"><span><strong class=
"command">allow-update-forwarding
</strong></span></span></dt>
6309 See the description of
<span><strong class=
"command">allow-update-forwarding
</strong></span>
6310 in
<a href=
"Bv9ARM.ch06.html#access_control" title=
"Access Control">the section called
“Access Control
”</a>.
6312 <dt><span class=
"term"><span><strong class=
"command">also-notify
</strong></span></span></dt>
6314 Only meaningful if
<span><strong class=
"command">notify
</strong></span>
6316 active for this zone. The set of machines that will
6318 <code class=
"literal">DNS NOTIFY
</code> message
6319 for this zone is made up of all the listed name servers
6321 the primary master) for the zone plus any IP addresses
6323 with
<span><strong class=
"command">also-notify
</strong></span>. A port
6325 with each
<span><strong class=
"command">also-notify
</strong></span>
6326 address to send the notify
6327 messages to a port other than the default of
53.
6328 <span><strong class=
"command">also-notify
</strong></span> is not
6329 meaningful for stub zones.
6330 The default is the empty list.
6332 <dt><span class=
"term"><span><strong class=
"command">check-names
</strong></span></span></dt>
6334 This option is used to restrict the character set and
6336 certain domain names in master files and/or DNS responses
6338 network. The default varies according to zone type. For
<span><strong class=
"command">master
</strong></span> zones the default is
<span><strong class=
"command">fail
</strong></span>. For
<span><strong class=
"command">slave
</strong></span>
6339 zones the default is
<span><strong class=
"command">warn
</strong></span>.
6340 It is not implemented for
<span><strong class=
"command">hint
</strong></span> zones.
6342 <dt><span class=
"term"><span><strong class=
"command">check-mx
</strong></span></span></dt>
6344 See the description of
6345 <span><strong class=
"command">check-mx
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6347 <dt><span class=
"term"><span><strong class=
"command">check-wildcard
</strong></span></span></dt>
6349 See the description of
6350 <span><strong class=
"command">check-wildcard
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6352 <dt><span class=
"term"><span><strong class=
"command">check-integrity
</strong></span></span></dt>
6354 See the description of
6355 <span><strong class=
"command">check-integrity
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6357 <dt><span class=
"term"><span><strong class=
"command">check-sibling
</strong></span></span></dt>
6359 See the description of
6360 <span><strong class=
"command">check-sibling
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6362 <dt><span class=
"term"><span><strong class=
"command">zero-no-soa-ttl
</strong></span></span></dt>
6364 See the description of
6365 <span><strong class=
"command">zero-no-soa-ttl
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6367 <dt><span class=
"term"><span><strong class=
"command">update-check-ksk
</strong></span></span></dt>
6369 See the description of
6370 <span><strong class=
"command">update-check-ksk
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6372 <dt><span class=
"term"><span><strong class=
"command">dnssec-dnskey-kskonly
</strong></span></span></dt>
6374 See the description of
6375 <span><strong class=
"command">dnssec-dnskey-kskonly
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6377 <dt><span class=
"term"><span><strong class=
"command">try-tcp-refresh
</strong></span></span></dt>
6379 See the description of
6380 <span><strong class=
"command">try-tcp-refresh
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6382 <dt><span class=
"term"><span><strong class=
"command">database
</strong></span></span></dt>
6385 Specify the type of database to be used for storing the
6386 zone data. The string following the
<span><strong class=
"command">database
</strong></span> keyword
6387 is interpreted as a list of whitespace-delimited words.
6389 identifies the database type, and any subsequent words are
6391 as arguments to the database to be interpreted in a way
6393 to the database type.
6396 The default is
<strong class=
"userinput"><code>"rbt"</code></strong>, BIND
9's
6398 red-black-tree database. This database does not take
6402 Other values are possible if additional database drivers
6403 have been linked into the server. Some sample drivers are
6405 with the distribution but none are linked in by default.
6408 <dt><span class=
"term"><span><strong class=
"command">dialup
</strong></span></span></dt>
6410 See the description of
6411 <span><strong class=
"command">dialup
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6413 <dt><span class=
"term"><span><strong class=
"command">delegation-only
</strong></span></span></dt>
6416 The flag only applies to hint and stub zones. If set
6417 to
<strong class=
"userinput"><code>yes
</code></strong>, then the zone will also be
6418 treated as if it is also a delegation-only type zone.
6421 See caveats in
<a href=
"Bv9ARM.ch06.html#root_delegation_only"><span><strong class=
"command">root-delegation-only
</strong></span></a>.
6424 <dt><span class=
"term"><span><strong class=
"command">forward
</strong></span></span></dt>
6426 Only meaningful if the zone has a forwarders
6427 list. The
<span><strong class=
"command">only
</strong></span> value causes
6429 after trying the forwarders and getting no answer, while
<span><strong class=
"command">first
</strong></span> would
6430 allow a normal lookup to be tried.
6432 <dt><span class=
"term"><span><strong class=
"command">forwarders
</strong></span></span></dt>
6434 Used to override the list of global forwarders.
6435 If it is not specified in a zone of type
<span><strong class=
"command">forward
</strong></span>,
6436 no forwarding is done for the zone and the global options are
6439 <dt><span class=
"term"><span><strong class=
"command">ixfr-base
</strong></span></span></dt>
6441 Was used in
<acronym class=
"acronym">BIND
</acronym> 8 to
6443 of the transaction log (journal) file for dynamic update
6445 <acronym class=
"acronym">BIND
</acronym> 9 ignores the option
6446 and constructs the name of the journal
6447 file by appending
"<code class="filename
">.jnl</code>"
6451 <dt><span class=
"term"><span><strong class=
"command">ixfr-tmp-file
</strong></span></span></dt>
6453 Was an undocumented option in
<acronym class=
"acronym">BIND
</acronym> 8.
6454 Ignored in
<acronym class=
"acronym">BIND
</acronym> 9.
6456 <dt><span class=
"term"><span><strong class=
"command">journal
</strong></span></span></dt>
6458 Allow the default journal's filename to be overridden.
6459 The default is the zone's filename with
"<code class="filename
">.jnl</code>" appended.
6460 This is applicable to
<span><strong class=
"command">master
</strong></span> and
<span><strong class=
"command">slave
</strong></span> zones.
6462 <dt><span class=
"term"><span><strong class=
"command">max-journal-size
</strong></span></span></dt>
6464 See the description of
6465 <span><strong class=
"command">max-journal-size
</strong></span> in
<a href=
"Bv9ARM.ch06.html#server_resource_limits" title=
"Server Resource Limits">the section called
“Server Resource Limits
”</a>.
6467 <dt><span class=
"term"><span><strong class=
"command">max-transfer-time-in
</strong></span></span></dt>
6469 See the description of
6470 <span><strong class=
"command">max-transfer-time-in
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6472 <dt><span class=
"term"><span><strong class=
"command">max-transfer-idle-in
</strong></span></span></dt>
6474 See the description of
6475 <span><strong class=
"command">max-transfer-idle-in
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6477 <dt><span class=
"term"><span><strong class=
"command">max-transfer-time-out
</strong></span></span></dt>
6479 See the description of
6480 <span><strong class=
"command">max-transfer-time-out
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6482 <dt><span class=
"term"><span><strong class=
"command">max-transfer-idle-out
</strong></span></span></dt>
6484 See the description of
6485 <span><strong class=
"command">max-transfer-idle-out
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6487 <dt><span class=
"term"><span><strong class=
"command">notify
</strong></span></span></dt>
6489 See the description of
6490 <span><strong class=
"command">notify
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6492 <dt><span class=
"term"><span><strong class=
"command">notify-delay
</strong></span></span></dt>
6494 See the description of
6495 <span><strong class=
"command">notify-delay
</strong></span> in
<a href=
"Bv9ARM.ch06.html#tuning" title=
"Tuning">the section called
“Tuning
”</a>.
6497 <dt><span class=
"term"><span><strong class=
"command">notify-to-soa
</strong></span></span></dt>
6499 See the description of
6500 <span><strong class=
"command">notify-to-soa
</strong></span> in
6501 <a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6503 <dt><span class=
"term"><span><strong class=
"command">pubkey
</strong></span></span></dt>
6505 In
<acronym class=
"acronym">BIND
</acronym> 8, this option was
6506 intended for specifying
6507 a public zone key for verification of signatures in DNSSEC
6509 zones when they are loaded from disk.
<acronym class=
"acronym">BIND
</acronym> 9 does not verify signatures
6510 on load and ignores the option.
6512 <dt><span class=
"term"><span><strong class=
"command">zone-statistics
</strong></span></span></dt>
6514 If
<strong class=
"userinput"><code>yes
</code></strong>, the server will keep
6516 information for this zone, which can be dumped to the
6517 <span><strong class=
"command">statistics-file
</strong></span> defined in
6520 <dt><span class=
"term"><span><strong class=
"command">sig-validity-interval
</strong></span></span></dt>
6522 See the description of
6523 <span><strong class=
"command">sig-validity-interval
</strong></span> in
<a href=
"Bv9ARM.ch06.html#tuning" title=
"Tuning">the section called
“Tuning
”</a>.
6525 <dt><span class=
"term"><span><strong class=
"command">sig-signing-nodes
</strong></span></span></dt>
6527 See the description of
6528 <span><strong class=
"command">sig-signing-nodes
</strong></span> in
<a href=
"Bv9ARM.ch06.html#tuning" title=
"Tuning">the section called
“Tuning
”</a>.
6530 <dt><span class=
"term"><span><strong class=
"command">sig-signing-signatures
</strong></span></span></dt>
6532 See the description of
6533 <span><strong class=
"command">sig-signing-signatures
</strong></span> in
<a href=
"Bv9ARM.ch06.html#tuning" title=
"Tuning">the section called
“Tuning
”</a>.
6535 <dt><span class=
"term"><span><strong class=
"command">sig-signing-type
</strong></span></span></dt>
6537 See the description of
6538 <span><strong class=
"command">sig-signing-type
</strong></span> in
<a href=
"Bv9ARM.ch06.html#tuning" title=
"Tuning">the section called
“Tuning
”</a>.
6540 <dt><span class=
"term"><span><strong class=
"command">transfer-source
</strong></span></span></dt>
6542 See the description of
6543 <span><strong class=
"command">transfer-source
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6545 <dt><span class=
"term"><span><strong class=
"command">transfer-source-v6
</strong></span></span></dt>
6547 See the description of
6548 <span><strong class=
"command">transfer-source-v6
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6550 <dt><span class=
"term"><span><strong class=
"command">alt-transfer-source
</strong></span></span></dt>
6552 See the description of
6553 <span><strong class=
"command">alt-transfer-source
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6555 <dt><span class=
"term"><span><strong class=
"command">alt-transfer-source-v6
</strong></span></span></dt>
6557 See the description of
6558 <span><strong class=
"command">alt-transfer-source-v6
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6560 <dt><span class=
"term"><span><strong class=
"command">use-alt-transfer-source
</strong></span></span></dt>
6562 See the description of
6563 <span><strong class=
"command">use-alt-transfer-source
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6565 <dt><span class=
"term"><span><strong class=
"command">notify-source
</strong></span></span></dt>
6567 See the description of
6568 <span><strong class=
"command">notify-source
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6570 <dt><span class=
"term"><span><strong class=
"command">notify-source-v6
</strong></span></span></dt>
6572 See the description of
6573 <span><strong class=
"command">notify-source-v6
</strong></span> in
<a href=
"Bv9ARM.ch06.html#zone_transfers" title=
"Zone Transfers">the section called
“Zone Transfers
”</a>.
6576 <span class=
"term"><span><strong class=
"command">min-refresh-time
</strong></span>,
</span><span class=
"term"><span><strong class=
"command">max-refresh-time
</strong></span>,
</span><span class=
"term"><span><strong class=
"command">min-retry-time
</strong></span>,
</span><span class=
"term"><span><strong class=
"command">max-retry-time
</strong></span></span>
6579 See the description in
<a href=
"Bv9ARM.ch06.html#tuning" title=
"Tuning">the section called
“Tuning
”</a>.
6581 <dt><span class=
"term"><span><strong class=
"command">ixfr-from-differences
</strong></span></span></dt>
6583 See the description of
6584 <span><strong class=
"command">ixfr-from-differences
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6585 (Note that the
<span><strong class=
"command">ixfr-from-differences
</strong></span>
6586 <strong class=
"userinput"><code>master
</code></strong> and
6587 <strong class=
"userinput"><code>slave
</code></strong> choices are not
6588 available at the zone level.)
6590 <dt><span class=
"term"><span><strong class=
"command">key-directory
</strong></span></span></dt>
6592 See the description of
6593 <span><strong class=
"command">key-directory
</strong></span> in
<a href=
"Bv9ARM.ch06.html#options" title=
"options Statement Definition and
6594 Usage">the section called
“<span><strong class=
"command">options
</strong></span> Statement Definition and
6597 <dt><span class=
"term"><span><strong class=
"command">auto-dnssec
</strong></span></span></dt>
6600 Zones configured for dynamic DNS may also use this
6601 option to allow varying levels of autonatic DNSSEC key
6602 management. There are four possible settings:
6605 <span><strong class=
"command">auto-dnssec allow;
</strong></span> permits
6606 keys to be updated and the zone re-signed whenever the
6607 user issues the command
<span><strong class=
"command">rndc sign
6608 <em class=
"replaceable"><code>zonename
</code></em></strong></span>.
6611 <span><strong class=
"command">auto-dnssec maintain;
</strong></span> includes the
6612 above, but also automatically adjusts the zone's DNSSEC
6613 keys on schedule, according to the keys' timing metadata
6614 (see
<a href=
"man.dnssec-keygen.html" title=
"dnssec-keygen"><span class=
"refentrytitle"><span class=
"application">dnssec-keygen
</span></span>(
8)
</a> and
6615 <a href=
"man.dnssec-settime.html" title=
"dnssec-settime"><span class=
"refentrytitle"><span class=
"application">dnssec-settime
</span></span>(
8)
</a>).
6618 <span><strong class=
"command">auto-dnssec create;
</strong></span> includes the
6619 above, but also allows
<span><strong class=
"command">named
</strong></span>
6620 to create new keys in the key repository when needed.
6621 (NOTE: This option is not yet implemented; the syntax is
6622 being reserved for future use.)
6625 The default setting is
<span><strong class=
"command">auto-dnssec off
</strong></span>.
6628 <dt><span class=
"term"><span><strong class=
"command">multi-master
</strong></span></span></dt>
6630 See the description of
<span><strong class=
"command">multi-master
</strong></span> in
6631 <a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6633 <dt><span class=
"term"><span><strong class=
"command">masterfile-format
</strong></span></span></dt>
6635 See the description of
<span><strong class=
"command">masterfile-format
</strong></span>
6636 in
<a href=
"Bv9ARM.ch06.html#tuning" title=
"Tuning">the section called
“Tuning
”</a>.
6638 <dt><span class=
"term"><span><strong class=
"command">dnssec-secure-to-insecure
</strong></span></span></dt>
6640 See the description of
6641 <span><strong class=
"command">dnssec-secure-to-insecure
</strong></span> in
<a href=
"Bv9ARM.ch06.html#boolean_options" title=
"Boolean Options">the section called
“Boolean Options
”</a>.
6645 <div class=
"sect3" lang=
"en">
6646 <div class=
"titlepage"><div><div><h4 class=
"title">
6647 <a name=
"dynamic_update_policies"></a>Dynamic Update Policies
</h4></div></div></div>
6648 <p><acronym class=
"acronym">BIND
</acronym> 9 supports two alternative
6649 methods of granting clients the right to perform
6650 dynamic updates to a zone, configured by the
6651 <span><strong class=
"command">allow-update
</strong></span> and
6652 <span><strong class=
"command">update-policy
</strong></span> option, respectively.
6655 The
<span><strong class=
"command">allow-update
</strong></span> clause works the
6656 same way as in previous versions of
<acronym class=
"acronym">BIND
</acronym>.
6657 It grants given clients the permission to update any
6658 record of any name in the zone.
6661 The
<span><strong class=
"command">update-policy
</strong></span> clause
6662 allows more fine-grained control over what updates are
6663 allowed. A set of rules is specified, where each rule
6664 either grants or denies permissions for one or more
6665 names to be updated by one or more identities. If
6666 the dynamic update request message is signed (that is,
6667 it includes either a TSIG or SIG(
0) record), the
6668 identity of the signer can be determined.
6671 Rules are specified in the
<span><strong class=
"command">update-policy
</strong></span>
6672 zone option, and are only meaningful for master zones.
6673 When the
<span><strong class=
"command">update-policy
</strong></span> statement
6674 is present, it is a configuration error for the
6675 <span><strong class=
"command">allow-update
</strong></span> statement to be
6676 present. The
<span><strong class=
"command">update-policy
</strong></span> statement
6677 only examines the signer of a message; the source
6678 address is not relevant.
6681 There is a pre-defined
<span><strong class=
"command">update-policy
</strong></span>
6682 rule which can be switched on with the command
6683 <span><strong class=
"command">update-policy local;
</strong></span>.
6684 Switching on this rule in a zone causes
6685 <span><strong class=
"command">named
</strong></span> to generate a TSIG session
6686 key and place it in a file, and to allow that key
6687 to update the zone. (By default, the file is
6688 <code class=
"filename">/var/run/named/session.key
</code>, the key
6689 name is
"local-ddns" and the key algorithm is HMAC-SHA256,
6690 but these values are configurable with the
6691 <span><strong class=
"command">session-keyfile
</strong></span>,
6692 <span><strong class=
"command">session-keyname
</strong></span> and
6693 <span><strong class=
"command">session-keyalg
</strong></span> options, respectively).
6696 A client running on the local system, and with appropriate
6697 permissions, may read that file and use the key to sign update
6698 requests. The zone's update policy will be set to allow that
6699 key to change any record within the zone. Assuming the
6700 key name is
"local-ddns", this policy is equivalent to:
6702 <pre class=
"programlisting">update-policy { grant local-ddns zonesub any; };
6705 The command
<span><strong class=
"command">nsupdate -l
</strong></span> sends update
6706 requests to localhost, and signs them using the session key.
6709 Other rule definitions look like this:
6711 <pre class=
"programlisting">
6712 (
<span><strong class=
"command">grant
</strong></span> |
<span><strong class=
"command">deny
</strong></span> )
<em class=
"replaceable"><code>identity
</code></em> <em class=
"replaceable"><code>nametype
</code></em> [
<span class=
"optional"> <em class=
"replaceable"><code>name
</code></em> </span>] [
<span class=
"optional"> <em class=
"replaceable"><code>types
</code></em> </span>]
6715 Each rule grants or denies privileges. Once a message has
6716 successfully matched a rule, the operation is immediately
6717 granted or denied and no further rules are examined. A rule
6718 is matched when the signer matches the identity field, the
6719 name matches the name field in accordance with the nametype
6720 field, and the type matches the types specified in the type
6724 No signer is required for
<em class=
"replaceable"><code>tcp-self
</code></em>
6725 or
<em class=
"replaceable"><code>6to4-self
</code></em> however the standard
6726 reverse mapping / prefix conversion must match the identity
6730 The identity field specifies a name or a wildcard
6731 name. Normally, this is the name of the TSIG or
6732 SIG(
0) key used to sign the update request. When a
6733 TKEY exchange has been used to create a shared secret,
6734 the identity of the shared secret is the same as the
6735 identity of the key used to authenticate the TKEY
6736 exchange. TKEY is also the negotiation method used
6737 by GSS-TSIG, which establishes an identity that is
6738 the Kerberos principal of the client, such as
6739 <strong class=
"userinput"><code>"user@host.domain"</code></strong>. When the
6740 <em class=
"replaceable"><code>identity
</code></em> field specifies
6741 a wildcard name, it is subject to DNS wildcard
6742 expansion, so the rule will apply to multiple identities.
6743 The
<em class=
"replaceable"><code>identity
</code></em> field must
6744 contain a fully-qualified domain name.
6747 The
<em class=
"replaceable"><code>nametype
</code></em> field has
13
6749 <code class=
"varname">name
</code>,
<code class=
"varname">subdomain
</code>,
6750 <code class=
"varname">wildcard
</code>,
<code class=
"varname">self
</code>,
6751 <code class=
"varname">selfsub
</code>,
<code class=
"varname">selfwild
</code>,
6752 <code class=
"varname">krb5-self
</code>,
<code class=
"varname">ms-self
</code>,
6753 <code class=
"varname">krb5-subdomain
</code>,
6754 <code class=
"varname">ms-subdomain
</code>,
6755 <code class=
"varname">tcp-self
</code>,
<code class=
"varname">6to4-self
</code>,
6756 and
<code class=
"varname">zonesub
</code>.
6758 <div class=
"informaltable"><table border=
"1">
6767 <code class=
"varname">name
</code>
6772 Exact-match semantics. This rule matches
6773 when the name being updated is identical
6774 to the contents of the
6775 <em class=
"replaceable"><code>name
</code></em> field.
6782 <code class=
"varname">subdomain
</code>
6787 This rule matches when the name being updated
6788 is a subdomain of, or identical to, the
6789 contents of the
<em class=
"replaceable"><code>name
</code></em>
6797 <code class=
"varname">zonesub
</code>
6802 This rule is similar to subdomain, except that
6803 it matches when the name being updated is a
6804 subdomain of the zone in which the
6805 <span><strong class=
"command">update-policy
</strong></span> statement
6806 appears. This obviates the need to type the zone
6807 name twice, and enables the use of a standard
6808 <span><strong class=
"command">update-policy
</strong></span> statement in
6809 multiple zones without modification.
6812 When this rule is used, the
6813 <em class=
"replaceable"><code>name
</code></em> field is omitted.
6820 <code class=
"varname">wildcard
</code>
6825 The
<em class=
"replaceable"><code>name
</code></em> field
6826 is subject to DNS wildcard expansion, and
6827 this rule matches when the name being updated
6828 name is a valid expansion of the wildcard.
6835 <code class=
"varname">self
</code>
6840 This rule matches when the name being updated
6841 matches the contents of the
6842 <em class=
"replaceable"><code>identity
</code></em> field.
6843 The
<em class=
"replaceable"><code>name
</code></em> field
6844 is ignored, but should be the same as the
6845 <em class=
"replaceable"><code>identity
</code></em> field.
6846 The
<code class=
"varname">self
</code> nametype is
6847 most useful when allowing using one key per
6848 name to update, where the key has the same
6849 name as the name to be updated. The
6850 <em class=
"replaceable"><code>identity
</code></em> would
6851 be specified as
<code class=
"constant">*
</code> (an asterisk) in
6859 <code class=
"varname">selfsub
</code>
6864 This rule is similar to
<code class=
"varname">self
</code>
6865 except that subdomains of
<code class=
"varname">self
</code>
6866 can also be updated.
6873 <code class=
"varname">selfwild
</code>
6878 This rule is similar to
<code class=
"varname">self
</code>
6879 except that only subdomains of
6880 <code class=
"varname">self
</code> can be updated.
6887 <code class=
"varname">tcp-self
</code>
6892 Allow updates that have been sent via TCP and
6893 for which the standard mapping from the initiating
6894 IP address into the IN-ADDR.ARPA and IP6.ARPA
6895 namespaces match the name to be updated.
6897 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
6898 <h3 class=
"title">Note
</h3>
6899 It is theoretically possible to spoof these TCP
6907 <code class=
"varname">6to4-self
</code>
6912 Allow the
6to4 prefix to be update by any TCP
6913 connection from the
6to4 network or from the
6914 corresponding IPv4 address. This is intended
6915 to allow NS or DNAME RRsets to be added to the
6918 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
6919 <h3 class=
"title">Note
</h3>
6920 It is theoretically possible to spoof these TCP
6928 In all cases, the
<em class=
"replaceable"><code>name
</code></em>
6930 specify a fully-qualified domain name.
6933 If no types are explicitly specified, this rule matches
6934 all types except RRSIG, NS, SOA, NSEC and NSEC3. Types
6935 may be specified by name, including
"ANY" (ANY matches
6936 all types except NSEC and NSEC3, which can never be
6937 updated). Note that when an attempt is made to delete
6938 all records associated with a name, the rules are
6939 checked for each existing record type.
6944 <div class=
"sect1" lang=
"en">
6945 <div class=
"titlepage"><div><div><h2 class=
"title" style=
"clear: both">
6946 <a name=
"id2593225"></a>Zone File
</h2></div></div></div>
6947 <div class=
"sect2" lang=
"en">
6948 <div class=
"titlepage"><div><div><h3 class=
"title">
6949 <a name=
"types_of_resource_records_and_when_to_use_them"></a>Types of Resource Records and When to Use Them
</h3></div></div></div>
6951 This section, largely borrowed from RFC
1034, describes the
6952 concept of a Resource Record (RR) and explains when each is used.
6953 Since the publication of RFC
1034, several new RRs have been
6955 and implemented in the DNS. These are also included.
6957 <div class=
"sect3" lang=
"en">
6958 <div class=
"titlepage"><div><div><h4 class=
"title">
6959 <a name=
"id2593243"></a>Resource Records
</h4></div></div></div>
6961 A domain name identifies a node. Each node has a set of
6962 resource information, which may be empty. The set of resource
6963 information associated with a particular name is composed of
6964 separate RRs. The order of RRs in a set is not significant and
6965 need not be preserved by name servers, resolvers, or other
6966 parts of the DNS. However, sorting of multiple RRs is
6967 permitted for optimization purposes, for example, to specify
6968 that a particular nearby server be tried first. See
<a href=
"Bv9ARM.ch06.html#the_sortlist_statement" title=
"The sortlist Statement">the section called
“The
<span><strong class=
"command">sortlist
</strong></span> Statement
”</a> and
<a href=
"Bv9ARM.ch06.html#rrset_ordering" title=
"RRset Ordering">the section called
“RRset Ordering
”</a>.
6971 The components of a Resource Record are:
6973 <div class=
"informaltable"><table border=
"1">
6987 The domain name where the RR is found.
6999 An encoded
16-bit value that specifies
7000 the type of the resource record.
7012 The time-to-live of the RR. This field
7013 is a
32-bit integer in units of seconds, and is
7015 resolvers when they cache RRs. The TTL describes how
7017 be cached before it should be discarded.
7029 An encoded
16-bit value that identifies
7030 a protocol family or instance of a protocol.
7042 The resource data. The format of the
7043 data is type (and sometimes class) specific.
7050 The following are
<span class=
"emphasis"><em>types
</em></span> of valid RRs:
7052 <div class=
"informaltable"><table border=
"1">
7066 A host address. In the IN class, this is a
7067 32-bit IP address. Described in RFC
1035.
7079 IPv6 address. Described in RFC
1886.
7091 IPv6 address. This can be a partial
7092 address (a suffix) and an indirection to the name
7093 where the rest of the
7094 address (the prefix) can be found. Experimental.
7095 Described in RFC
2874.
7107 Location of AFS database servers.
7108 Experimental. Described in RFC
1183.
7120 Address prefix list. Experimental.
7121 Described in RFC
3123.
7133 Holds a digital certificate.
7134 Described in RFC
2538.
7146 Identifies the canonical name of an alias.
7147 Described in RFC
1035.
7159 Is used for identifying which DHCP client is
7160 associated with this name. Described in RFC
4701.
7172 Replaces the domain name specified with
7173 another name to be looked up, effectively aliasing an
7175 subtree of the domain name space rather than a single
7177 as in the case of the CNAME RR.
7178 Described in RFC
2672.
7190 Stores a public key associated with a signed
7191 DNS zone. Described in RFC
4034.
7203 Stores the hash of a public key associated with a
7204 signed DNS zone. Described in RFC
4034.
7216 Specifies the global position. Superseded by LOC.
7228 Identifies the CPU and OS used by a host.
7229 Described in RFC
1035.
7241 Provides a method for storing IPsec keying material in
7242 DNS. Described in RFC
4025.
7254 Representation of ISDN addresses.
7255 Experimental. Described in RFC
1183.
7267 Stores a public key associated with a
7268 DNS name. Used in original DNSSEC; replaced
7269 by DNSKEY in DNSSECbis, but still used with
7270 SIG(
0). Described in RFCs
2535 and
2931.
7282 Identifies a key exchanger for this
7283 DNS name. Described in RFC
2230.
7295 For storing GPS info. Described in RFC
1876.
7308 Identifies a mail exchange for the domain with
7309 a
16-bit preference value (lower is better)
7310 followed by the host name of the mail exchange.
7311 Described in RFC
974, RFC
1035.
7323 Name authority pointer. Described in RFC
2915.
7335 A network service access point.
7336 Described in RFC
1706.
7348 The authoritative name server for the
7349 domain. Described in RFC
1035.
7361 Used in DNSSECbis to securely indicate that
7362 RRs with an owner name in a certain name interval do
7364 a zone and indicate what RR types are present for an
7366 Described in RFC
4034.
7378 Used in DNSSECbis to securely indicate that
7379 RRs with an owner name in a certain name
7380 interval do not exist in a zone and indicate
7381 what RR types are present for an existing
7382 name. NSEC3 differs from NSEC in that it
7383 prevents zone enumeration but is more
7384 computationally expensive on both the server
7385 and the client than NSEC. Described in RFC
7398 Used in DNSSECbis to tell the authoritative
7399 server which NSEC3 chains are available to use.
7400 Described in RFC
5155.
7412 Used in DNSSEC to securely indicate that
7413 RRs with an owner name in a certain name interval do
7415 a zone and indicate what RR types are present for an
7417 Used in original DNSSEC; replaced by NSEC in
7419 Described in RFC
2535.
7431 A pointer to another part of the domain
7432 name space. Described in RFC
1035.
7444 Provides mappings between RFC
822 and X
.400
7445 addresses. Described in RFC
2163.
7457 Information on persons responsible
7458 for the domain. Experimental. Described in RFC
1183.
7470 Contains DNSSECbis signature data. Described
7483 Route-through binding for hosts that
7484 do not have their own direct wide area network
7486 Experimental. Described in RFC
1183.
7498 Contains DNSSEC signature data. Used in
7499 original DNSSEC; replaced by RRSIG in
7500 DNSSECbis, but still used for SIG(
0).
7501 Described in RFCs
2535 and
2931.
7513 Identifies the start of a zone of authority.
7514 Described in RFC
1035.
7526 Contains the Sender Policy Framework information
7527 for a given email domain. Described in RFC
4408.
7539 Information about well known network
7540 services (replaces WKS). Described in RFC
2782.
7552 Provides a way to securely publish a secure shell key's
7553 fingerprint. Described in RFC
4255.
7565 Text records. Described in RFC
1035.
7577 Information about which well known
7578 network services, such as SMTP, that a domain
7579 supports. Historical.
7591 Representation of X
.25 network addresses.
7592 Experimental. Described in RFC
1183.
7599 The following
<span class=
"emphasis"><em>classes
</em></span> of resource records
7600 are currently valid in the DNS:
7602 <div class=
"informaltable"><table border=
"1">
7628 Chaosnet, a LAN protocol created at MIT in the
7630 Rarely used for its historical purpose, but reused for
7632 built-in server information zones, e.g.,
7633 <code class=
"literal">version.bind
</code>.
7645 Hesiod, an information service
7646 developed by MIT's Project Athena. It is used to share
7648 about various systems databases, such as users,
7657 The owner name is often implicit, rather than forming an
7659 part of the RR. For example, many name servers internally form
7661 or hash structures for the name space, and chain RRs off nodes.
7662 The remaining RR parts are the fixed header (type, class, TTL)
7663 which is consistent for all RRs, and a variable part (RDATA)
7665 fits the needs of the resource being described.
7668 The meaning of the TTL field is a time limit on how long an
7669 RR can be kept in a cache. This limit does not apply to
7671 data in zones; it is also timed out, but by the refreshing
7673 for the zone. The TTL is assigned by the administrator for the
7674 zone where the data originates. While short TTLs can be used to
7675 minimize caching, and a zero TTL prohibits caching, the
7677 of Internet performance suggest that these times should be on
7679 order of days for the typical host. If a change can be
7681 the TTL can be reduced prior to the change to minimize
7683 during the change, and then increased back to its former value
7688 The data in the RDATA section of RRs is carried as a combination
7689 of binary strings and domain names. The domain names are
7691 used as
"pointers" to other data in the DNS.
7694 <div class=
"sect3" lang=
"en">
7695 <div class=
"titlepage"><div><div><h4 class=
"title">
7696 <a name=
"id2594730"></a>Textual expression of RRs
</h4></div></div></div>
7698 RRs are represented in binary form in the packets of the DNS
7699 protocol, and are usually represented in highly encoded form
7701 stored in a name server or resolver. In the examples provided
7703 RFC
1034, a style similar to that used in master files was
7705 in order to show the contents of RRs. In this format, most RRs
7706 are shown on a single line, although continuation lines are
7711 The start of the line gives the owner of the RR. If a line
7712 begins with a blank, then the owner is assumed to be the same as
7713 that of the previous RR. Blank lines are often included for
7717 Following the owner, we list the TTL, type, and class of the
7718 RR. Class and type use the mnemonics defined above, and TTL is
7719 an integer before the type field. In order to avoid ambiguity
7721 parsing, type and class mnemonics are disjoint, TTLs are
7723 and the type mnemonic is always last. The IN class and TTL
7725 are often omitted from examples in the interests of clarity.
7728 The resource data or RDATA section of the RR are given using
7729 knowledge of the typical representation for the data.
7732 For example, we might show the RRs carried in a message as:
7734 <div class=
"informaltable"><table border=
"1">
7744 <code class=
"literal">ISI.EDU.
</code>
7749 <code class=
"literal">MX
</code>
7754 <code class=
"literal">10 VENERA.ISI.EDU.
</code>
7764 <code class=
"literal">MX
</code>
7769 <code class=
"literal">10 VAXA.ISI.EDU
</code>
7776 <code class=
"literal">VENERA.ISI.EDU
</code>
7781 <code class=
"literal">A
</code>
7786 <code class=
"literal">128.9.0.32</code>
7796 <code class=
"literal">A
</code>
7801 <code class=
"literal">10.1.0.52</code>
7808 <code class=
"literal">VAXA.ISI.EDU
</code>
7813 <code class=
"literal">A
</code>
7818 <code class=
"literal">10.2.0.27</code>
7828 <code class=
"literal">A
</code>
7833 <code class=
"literal">128.9.0.33</code>
7840 The MX RRs have an RDATA section which consists of a
16-bit
7841 number followed by a domain name. The address RRs use a
7843 IP address format to contain a
32-bit internet address.
7846 The above example shows six RRs, with two RRs at each of three
7850 Similarly we might see:
7852 <div class=
"informaltable"><table border=
"1">
7862 <code class=
"literal">XX.LCS.MIT.EDU.
</code>
7867 <code class=
"literal">IN A
</code>
7872 <code class=
"literal">10.0.0.44</code>
7880 <code class=
"literal">CH A
</code>
7885 <code class=
"literal">MIT.EDU.
2420</code>
7892 This example shows two addresses for
7893 <code class=
"literal">XX.LCS.MIT.EDU
</code>, each of a different class.
7897 <div class=
"sect2" lang=
"en">
7898 <div class=
"titlepage"><div><div><h3 class=
"title">
7899 <a name=
"id2595387"></a>Discussion of MX Records
</h3></div></div></div>
7901 As described above, domain servers store information as a
7902 series of resource records, each of which contains a particular
7903 piece of information about a given domain name (which is usually,
7904 but not always, a host). The simplest way to think of a RR is as
7905 a typed pair of data, a domain name matched with a relevant datum,
7906 and stored with some additional type information to help systems
7907 determine when the RR is relevant.
7910 MX records are used to control delivery of email. The data
7911 specified in the record is a priority and a domain name. The
7913 controls the order in which email delivery is attempted, with the
7914 lowest number first. If two priorities are the same, a server is
7915 chosen randomly. If no servers at a given priority are responding,
7916 the mail transport agent will fall back to the next largest
7918 Priority numbers do not have any absolute meaning
— they are
7920 only respective to other MX records for that domain name. The
7922 name given is the machine to which the mail will be delivered.
7923 It
<span class=
"emphasis"><em>must
</em></span> have an associated address record
7924 (A or AAAA)
— CNAME is not sufficient.
7927 For a given domain, if there is both a CNAME record and an
7928 MX record, the MX record is in error, and will be ignored.
7930 the mail will be delivered to the server specified in the MX
7932 pointed to by the CNAME.
7935 <div class=
"informaltable"><table border=
"1">
7947 <code class=
"literal">example.com.
</code>
7952 <code class=
"literal">IN
</code>
7957 <code class=
"literal">MX
</code>
7962 <code class=
"literal">10</code>
7967 <code class=
"literal">mail.example.com.
</code>
7977 <code class=
"literal">IN
</code>
7982 <code class=
"literal">MX
</code>
7987 <code class=
"literal">10</code>
7992 <code class=
"literal">mail2.example.com.
</code>
8002 <code class=
"literal">IN
</code>
8007 <code class=
"literal">MX
</code>
8012 <code class=
"literal">20</code>
8017 <code class=
"literal">mail.backup.org.
</code>
8024 <code class=
"literal">mail.example.com.
</code>
8029 <code class=
"literal">IN
</code>
8034 <code class=
"literal">A
</code>
8039 <code class=
"literal">10.0.0.1</code>
8049 <code class=
"literal">mail2.example.com.
</code>
8054 <code class=
"literal">IN
</code>
8059 <code class=
"literal">A
</code>
8064 <code class=
"literal">10.0.0.2</code>
8074 Mail delivery will be attempted to
<code class=
"literal">mail.example.com
</code> and
8075 <code class=
"literal">mail2.example.com
</code> (in
8076 any order), and if neither of those succeed, delivery to
<code class=
"literal">mail.backup.org
</code> will
8080 <div class=
"sect2" lang=
"en">
8081 <div class=
"titlepage"><div><div><h3 class=
"title">
8082 <a name=
"Setting_TTLs"></a>Setting TTLs
</h3></div></div></div>
8084 The time-to-live of the RR field is a
32-bit integer represented
8085 in units of seconds, and is primarily used by resolvers when they
8086 cache RRs. The TTL describes how long a RR can be cached before it
8087 should be discarded. The following three types of TTL are
8089 used in a zone file.
8091 <div class=
"informaltable"><table border=
"1">
8105 The last field in the SOA is the negative
8106 caching TTL. This controls how long other servers will
8107 cache no-such-domain
8108 (NXDOMAIN) responses from you.
8111 The maximum time for
8112 negative caching is
3 hours (
3h).
8124 The $TTL directive at the top of the
8125 zone file (before the SOA) gives a default TTL for every
8139 Each RR can have a TTL as the second
8140 field in the RR, which will control how long other
8149 All of these TTLs default to units of seconds, though units
8150 can be explicitly specified, for example,
<code class=
"literal">1h30m
</code>.
8153 <div class=
"sect2" lang=
"en">
8154 <div class=
"titlepage"><div><div><h3 class=
"title">
8155 <a name=
"id2596003"></a>Inverse Mapping in IPv4
</h3></div></div></div>
8157 Reverse name resolution (that is, translation from IP address
8158 to name) is achieved by means of the
<span class=
"emphasis"><em>in-addr.arpa
</em></span> domain
8159 and PTR records. Entries in the in-addr.arpa domain are made in
8160 least-to-most significant order, read left to right. This is the
8161 opposite order to the way IP addresses are usually written. Thus,
8162 a machine with an IP address of
10.1.2.3 would have a
8164 in-addr.arpa name of
8165 3.2.1.10.in-addr.arpa. This name should have a PTR resource record
8166 whose data field is the name of the machine or, optionally,
8168 PTR records if the machine has more than one name. For example,
8169 in the [
<span class=
"optional">example.com
</span>] domain:
8171 <div class=
"informaltable"><table border=
"1">
8180 <code class=
"literal">$ORIGIN
</code>
8185 <code class=
"literal">2.1.10.in-addr.arpa
</code>
8192 <code class=
"literal">3</code>
8197 <code class=
"literal">IN PTR foo.example.com.
</code>
8203 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
8204 <h3 class=
"title">Note
</h3>
8206 The
<span><strong class=
"command">$ORIGIN
</strong></span> lines in the examples
8207 are for providing context to the examples only
— they do not
8209 appear in the actual usage. They are only used here to indicate
8210 that the example is relative to the listed origin.
8214 <div class=
"sect2" lang=
"en">
8215 <div class=
"titlepage"><div><div><h3 class=
"title">
8216 <a name=
"id2596130"></a>Other Zone File Directives
</h3></div></div></div>
8218 The Master File Format was initially defined in RFC
1035 and
8219 has subsequently been extended. While the Master File Format
8221 is class independent all records in a Master File must be of the
8226 Master File Directives include
<span><strong class=
"command">$ORIGIN
</strong></span>,
<span><strong class=
"command">$INCLUDE
</strong></span>,
8227 and
<span><strong class=
"command">$TTL.
</strong></span>
8229 <div class=
"sect3" lang=
"en">
8230 <div class=
"titlepage"><div><div><h4 class=
"title">
8231 <a name=
"id2596152"></a>The
<span><strong class=
"command">@
</strong></span> (at-sign)
</h4></div></div></div>
8233 When used in the label (or name) field, the asperand or
8234 at-sign (@) symbol represents the current origin.
8235 At the start of the zone file, it is the
8236 <<code class=
"varname">zone_name
</code>> (followed by
8240 <div class=
"sect3" lang=
"en">
8241 <div class=
"titlepage"><div><div><h4 class=
"title">
8242 <a name=
"id2596168"></a>The
<span><strong class=
"command">$ORIGIN
</strong></span> Directive
</h4></div></div></div>
8244 Syntax:
<span><strong class=
"command">$ORIGIN
</strong></span>
8245 <em class=
"replaceable"><code>domain-name
</code></em>
8246 [
<span class=
"optional"><em class=
"replaceable"><code>comment
</code></em></span>]
8248 <p><span><strong class=
"command">$ORIGIN
</strong></span>
8249 sets the domain name that will be appended to any
8250 unqualified records. When a zone is first read in there
8251 is an implicit
<span><strong class=
"command">$ORIGIN
</strong></span>
8252 <<code class=
"varname">zone_name
</code>><span><strong class=
"command">.
</strong></span>
8253 (followed by trailing dot).
8254 The current
<span><strong class=
"command">$ORIGIN
</strong></span> is appended to
8255 the domain specified in the
<span><strong class=
"command">$ORIGIN
</strong></span>
8256 argument if it is not absolute.
8258 <pre class=
"programlisting">
8259 $ORIGIN example.com.
8260 WWW CNAME MAIN-SERVER
8265 <pre class=
"programlisting">
8266 WWW.EXAMPLE.COM. CNAME MAIN-SERVER.EXAMPLE.COM.
8269 <div class=
"sect3" lang=
"en">
8270 <div class=
"titlepage"><div><div><h4 class=
"title">
8271 <a name=
"id2596229"></a>The
<span><strong class=
"command">$INCLUDE
</strong></span> Directive
</h4></div></div></div>
8273 Syntax:
<span><strong class=
"command">$INCLUDE
</strong></span>
8274 <em class=
"replaceable"><code>filename
</code></em>
8275 [
<span class=
"optional">
8276 <em class=
"replaceable"><code>origin
</code></em> </span>]
8277 [
<span class=
"optional"> <em class=
"replaceable"><code>comment
</code></em> </span>]
8280 Read and process the file
<code class=
"filename">filename
</code> as
8281 if it were included into the file at this point. If
<span><strong class=
"command">origin
</strong></span> is
8282 specified the file is processed with
<span><strong class=
"command">$ORIGIN
</strong></span> set
8283 to that value, otherwise the current
<span><strong class=
"command">$ORIGIN
</strong></span> is
8287 The origin and the current domain name
8288 revert to the values they had prior to the
<span><strong class=
"command">$INCLUDE
</strong></span> once
8289 the file has been read.
8291 <div class=
"note" style=
"margin-left: 0.5in; margin-right: 0.5in;">
8292 <h3 class=
"title">Note
</h3>
8294 RFC
1035 specifies that the current origin should be restored
8296 an
<span><strong class=
"command">$INCLUDE
</strong></span>, but it is silent
8297 on whether the current
8298 domain name should also be restored. BIND
9 restores both of
8300 This could be construed as a deviation from RFC
1035, a
8305 <div class=
"sect3" lang=
"en">
8306 <div class=
"titlepage"><div><div><h4 class=
"title">
8307 <a name=
"id2596298"></a>The
<span><strong class=
"command">$TTL
</strong></span> Directive
</h4></div></div></div>
8309 Syntax:
<span><strong class=
"command">$TTL
</strong></span>
8310 <em class=
"replaceable"><code>default-ttl
</code></em>
8311 [
<span class=
"optional">
8312 <em class=
"replaceable"><code>comment
</code></em> </span>]
8315 Set the default Time To Live (TTL) for subsequent records
8316 with undefined TTLs. Valid TTLs are of the range
0-
2147483647
8319 <p><span><strong class=
"command">$TTL
</strong></span>
8320 is defined in RFC
2308.
8324 <div class=
"sect2" lang=
"en">
8325 <div class=
"titlepage"><div><div><h3 class=
"title">
8326 <a name=
"id2596403"></a><acronym class=
"acronym">BIND
</acronym> Master File Extension: the
<span><strong class=
"command">$GENERATE
</strong></span> Directive
</h3></div></div></div>
8328 Syntax:
<span><strong class=
"command">$GENERATE
</strong></span>
8329 <em class=
"replaceable"><code>range
</code></em>
8330 <em class=
"replaceable"><code>lhs
</code></em>
8331 [
<span class=
"optional"><em class=
"replaceable"><code>ttl
</code></em></span>]
8332 [
<span class=
"optional"><em class=
"replaceable"><code>class
</code></em></span>]
8333 <em class=
"replaceable"><code>type
</code></em>
8334 <em class=
"replaceable"><code>rhs
</code></em>
8335 [
<span class=
"optional"><em class=
"replaceable"><code>comment
</code></em></span>]
8337 <p><span><strong class=
"command">$GENERATE
</strong></span>
8338 is used to create a series of resource records that only
8339 differ from each other by an
8340 iterator.
<span><strong class=
"command">$GENERATE
</strong></span> can be used to
8341 easily generate the sets of records required to support
8342 sub /
24 reverse delegations described in RFC
2317:
8343 Classless IN-ADDR.ARPA delegation.
8345 <pre class=
"programlisting">$ORIGIN
0.0.192.IN-ADDR.ARPA.
8346 $GENERATE
1-
2 @ NS SERVER$.EXAMPLE.
8347 $GENERATE
1-
127 $ CNAME $
.0</pre>
8351 <pre class=
"programlisting">0.0.0.192.IN-ADDR.ARPA. NS SERVER1.EXAMPLE.
8352 0.0.0.192.IN-ADDR.ARPA. NS SERVER2.EXAMPLE.
8353 1.0.0.192.IN-ADDR.ARPA. CNAME
1.0.0.0.192.IN-ADDR.ARPA.
8354 2.0.0.192.IN-ADDR.ARPA. CNAME
2.0.0.0.192.IN-ADDR.ARPA.
8356 127.0.0.192.IN-ADDR.ARPA. CNAME
127.0.0.0.192.IN-ADDR.ARPA.
8359 Generate a set of A and MX records. Note the MX's right hand
8360 side is a quoted string. The quotes will be stripped when the
8361 right hand side is processed.
8363 <pre class=
"programlisting">
8365 $GENERATE
1-
127 HOST-$ A
1.2.3.$
8366 $GENERATE
1-
127 HOST-$ MX
"0 ."</pre>
8370 <pre class=
"programlisting">HOST-
1.EXAMPLE. A
1.2.3.1
8371 HOST-
1.EXAMPLE. MX
0 .
8372 HOST-
2.EXAMPLE. A
1.2.3.2
8373 HOST-
2.EXAMPLE. MX
0 .
8374 HOST-
3.EXAMPLE. A
1.2.3.3
8375 HOST-
3.EXAMPLE. MX
0 .
8377 HOST-
127.EXAMPLE. A
1.2.3.127
8378 HOST-
127.EXAMPLE. MX
0 .
8380 <div class=
"informaltable"><table border=
"1">
8388 <p><span><strong class=
"command">range
</strong></span></p>
8392 This can be one of two forms: start-stop
8393 or start-stop/step. If the first form is used, then step
8395 1. All of start, stop and step must be positive.
8401 <p><span><strong class=
"command">lhs
</strong></span></p>
8405 describes the owner name of the resource records
8406 to be created. Any single
<span><strong class=
"command">$
</strong></span>
8408 symbols within the
<span><strong class=
"command">lhs
</strong></span> string
8409 are replaced by the iterator value.
8411 To get a $ in the output, you need to escape the
8412 <span><strong class=
"command">$
</strong></span> using a backslash
8413 <span><strong class=
"command">\
</strong></span>,
8414 e.g.
<span><strong class=
"command">\$
</strong></span>. The
8415 <span><strong class=
"command">$
</strong></span> may optionally be followed
8416 by modifiers which change the offset from the
8417 iterator, field width and base.
8419 Modifiers are introduced by a
8420 <span><strong class=
"command">{
</strong></span> (left brace) immediately following the
8421 <span><strong class=
"command">$
</strong></span> as
8422 <span><strong class=
"command">${offset[,width[,base]]}
</strong></span>.
8423 For example,
<span><strong class=
"command">${-
20,
3,d}
</strong></span>
8424 subtracts
20 from the current value, prints the
8425 result as a decimal in a zero-padded field of
8428 Available output forms are decimal
8429 (
<span><strong class=
"command">d
</strong></span>), octal
8430 (
<span><strong class=
"command">o
</strong></span>), hexadecimal
8431 (
<span><strong class=
"command">x
</strong></span> or
<span><strong class=
"command">X
</strong></span>
8432 for uppercase) and nibble
8433 (
<span><strong class=
"command">n
</strong></span> or
<span><strong class=
"command">N
</strong></span>\
8434 for uppercase). The default modifier is
8435 <span><strong class=
"command">${
0,
0,d}
</strong></span>. If the
8436 <span><strong class=
"command">lhs
</strong></span> is not absolute, the
8437 current
<span><strong class=
"command">$ORIGIN
</strong></span> is appended
8441 In nibble mode the value will be treated as
8442 if it was a reversed hexadecimal string
8443 with each hexadecimal digit as a separate
8444 label. The width field includes the label
8448 For compatibility with earlier versions,
8449 <span><strong class=
"command">$$
</strong></span> is still recognized as
8450 indicating a literal $ in the output.
8456 <p><span><strong class=
"command">ttl
</strong></span></p>
8460 Specifies the time-to-live of the generated records. If
8461 not specified this will be inherited using the
8462 normal TTL inheritance rules.
8464 <p><span><strong class=
"command">class
</strong></span>
8465 and
<span><strong class=
"command">ttl
</strong></span> can be
8466 entered in either order.
8472 <p><span><strong class=
"command">class
</strong></span></p>
8476 Specifies the class of the generated records.
8477 This must match the zone class if it is
8480 <p><span><strong class=
"command">class
</strong></span>
8481 and
<span><strong class=
"command">ttl
</strong></span> can be
8482 entered in either order.
8488 <p><span><strong class=
"command">type
</strong></span></p>
8498 <p><span><strong class=
"command">rhs
</strong></span></p>
8502 <span><strong class=
"command">rhs
</strong></span>, optionally, quoted string.
8509 The
<span><strong class=
"command">$GENERATE
</strong></span> directive is a
<acronym class=
"acronym">BIND
</acronym> extension
8510 and not part of the standard zone file format.
8513 BIND
8 does not support the optional TTL and CLASS fields.
8516 <div class=
"sect2" lang=
"en">
8517 <div class=
"titlepage"><div><div><h3 class=
"title">
8518 <a name=
"zonefile_format"></a>Additional File Formats
</h3></div></div></div>
8520 In addition to the standard textual format, BIND
9
8521 supports the ability to read or dump to zone files in
8522 other formats. The
<code class=
"constant">raw
</code> format is
8523 currently available as an additional format. It is a
8524 binary format representing BIND
9's internal data
8525 structure directly, thereby remarkably improving the
8529 For a primary server, a zone file in the
8530 <code class=
"constant">raw
</code> format is expected to be
8531 generated from a textual zone file by the
8532 <span><strong class=
"command">named-compilezone
</strong></span> command. For a
8533 secondary server or for a dynamic zone, it is automatically
8534 generated (if this format is specified by the
8535 <span><strong class=
"command">masterfile-format
</strong></span> option) when
8536 <span><strong class=
"command">named
</strong></span> dumps the zone contents after
8537 zone transfer or when applying prior updates.
8540 If a zone file in a binary format needs manual modification,
8541 it first must be converted to a textual form by the
8542 <span><strong class=
"command">named-compilezone
</strong></span> command. All
8543 necessary modification should go to the text file, which
8544 should then be converted to the binary form by the
8545 <span><strong class=
"command">named-compilezone
</strong></span> command again.
8548 Although the
<code class=
"constant">raw
</code> format uses the
8549 network byte order and avoids architecture-dependent
8550 data alignment so that it is as much portable as
8551 possible, it is primarily expected to be used inside
8552 the same single system. In order to export a zone
8553 file in the
<code class=
"constant">raw
</code> format or make a
8554 portable backup of the file, it is recommended to
8555 convert the file to the standard textual representation.
8559 <div class=
"sect1" lang=
"en">
8560 <div class=
"titlepage"><div><div><h2 class=
"title" style=
"clear: both">
8561 <a name=
"statistics"></a>BIND9 Statistics
</h2></div></div></div>
8563 <acronym class=
"acronym">BIND
</acronym> 9 maintains lots of statistics
8564 information and provides several interfaces for users to
8565 get access to the statistics.
8566 The available statistics include all statistics counters
8567 that were available in
<acronym class=
"acronym">BIND
</acronym> 8 and
8568 are meaningful in
<acronym class=
"acronym">BIND
</acronym> 9,
8569 and other information that is considered useful.
8572 The statistics information is categorized into the following
8575 <div class=
"informaltable"><table border=
"1">
8583 <p>Incoming Requests
</p>
8587 The number of incoming DNS requests for each OPCODE.
8593 <p>Incoming Queries
</p>
8597 The number of incoming queries for each RR type.
8603 <p>Outgoing Queries
</p>
8607 The number of outgoing queries for each RR
8608 type sent from the internal resolver.
8609 Maintained per view.
8615 <p>Name Server Statistics
</p>
8619 Statistics counters about incoming request processing.
8625 <p>Zone Maintenance Statistics
</p>
8629 Statistics counters regarding zone maintenance
8630 operations such as zone transfers.
8636 <p>Resolver Statistics
</p>
8640 Statistics counters about name resolution
8641 performed in the internal resolver.
8642 Maintained per view.
8648 <p>Cache DB RRsets
</p>
8652 The number of RRsets per RR type and nonexistent
8653 names stored in the cache database.
8654 If the exclamation mark (!) is printed for a RR
8655 type, it means that particular type of RRset is
8656 known to be nonexistent (this is also known as
8658 Maintained per view.
8664 <p>Socket I/O Statistics
</p>
8668 Statistics counters about network related events.
8675 A subset of Name Server Statistics is collected and shown
8676 per zone for which the server has the authority when
8677 <span><strong class=
"command">zone-statistics
</strong></span> is set to
8678 <strong class=
"userinput"><code>yes
</code></strong>.
8679 These statistics counters are shown with their zone and view
8681 In some cases the view names are omitted for the default view.
8684 There are currently two user interfaces to get access to the
8686 One is in the plain text format dumped to the file specified
8687 by the
<span><strong class=
"command">statistics-file
</strong></span> configuration option.
8688 The other is remotely accessible via a statistics channel
8689 when the
<span><strong class=
"command">statistics-channels
</strong></span> statement
8690 is specified in the configuration file
8691 (see
<a href=
"Bv9ARM.ch06.html#statschannels" title=
"statistics-channels Statement Grammar">the section called
“<span><strong class=
"command">statistics-channels
</strong></span> Statement Grammar
”</a>.)
8693 <div class=
"sect3" lang=
"en">
8694 <div class=
"titlepage"><div><div><h4 class=
"title">
8695 <a name=
"statsfile"></a>The Statistics File
</h4></div></div></div>
8697 The text format statistics dump begins with a line, like:
8700 <span><strong class=
"command">+++ Statistics Dump +++ (
973798949)
</strong></span>
8703 The number in parentheses is a standard
8704 Unix-style timestamp, measured as seconds since January
1,
1970.
8707 that line is a set of statistics information, which is categorized
8709 Each section begins with a line, like:
8712 <span><strong class=
"command">++ Name Server Statistics ++
</strong></span>
8715 Each section consists of lines, each containing the statistics
8716 counter value followed by its textual description.
8717 See below for available counters.
8718 For brevity, counters that have a value of
0 are not shown
8719 in the statistics file.
8722 The statistics dump ends with the line where the
8723 number is identical to the number in the beginning line; for example:
8726 <span><strong class=
"command">--- Statistics Dump --- (
973798949)
</strong></span>
8729 <div class=
"sect2" lang=
"en">
8730 <div class=
"titlepage"><div><div><h3 class=
"title">
8731 <a name=
"statistics_counters"></a>Statistics Counters
</h3></div></div></div>
8733 The following tables summarize statistics counters that
8734 <acronym class=
"acronym">BIND
</acronym> 9 provides.
8735 For each row of the tables, the leftmost column is the
8736 abbreviated symbol name of that counter.
8737 These symbols are shown in the statistics information
8738 accessed via an HTTP statistics channel.
8739 The rightmost column gives the description of the counter,
8740 which is also shown in the statistics file
8741 (but, in this document, possibly with slight modification
8742 for better readability).
8743 Additional notes may also be provided in this column.
8744 When a middle column exists between these two columns,
8745 it gives the corresponding counter name of the
8746 <acronym class=
"acronym">BIND
</acronym> 8 statistics, if applicable.
8748 <div class=
"sect3" lang=
"en">
8749 <div class=
"titlepage"><div><div><h4 class=
"title">
8750 <a name=
"id2597356"></a>Name Server Statistics Counters
</h4></div></div></div>
8751 <div class=
"informaltable"><table border=
"1">
8761 <span class=
"emphasis"><em>Symbol
</em></span>
8766 <span class=
"emphasis"><em>BIND8 Symbol
</em></span>
8771 <span class=
"emphasis"><em>Description
</em></span>
8777 <p><span><strong class=
"command">Requestv4
</strong></span></p>
8780 <p><span><strong class=
"command">RQ
</strong></span></p>
8784 IPv4 requests received.
8785 Note: this also counts non query requests.
8791 <p><span><strong class=
"command">Requestv6
</strong></span></p>
8794 <p><span><strong class=
"command">RQ
</strong></span></p>
8798 IPv6 requests received.
8799 Note: this also counts non query requests.
8805 <p><span><strong class=
"command">ReqEdns0
</strong></span></p>
8808 <p><span><strong class=
"command"></strong></span></p>
8812 Requests with EDNS(
0) received.
8818 <p><span><strong class=
"command">ReqBadEDNSVer
</strong></span></p>
8821 <p><span><strong class=
"command"></strong></span></p>
8825 Requests with unsupported EDNS version received.
8831 <p><span><strong class=
"command">ReqTSIG
</strong></span></p>
8834 <p><span><strong class=
"command"></strong></span></p>
8838 Requests with TSIG received.
8844 <p><span><strong class=
"command">ReqSIG0
</strong></span></p>
8847 <p><span><strong class=
"command"></strong></span></p>
8851 Requests with SIG(
0) received.
8857 <p><span><strong class=
"command">ReqBadSIG
</strong></span></p>
8860 <p><span><strong class=
"command"></strong></span></p>
8864 Requests with invalid (TSIG or SIG(
0)) signature.
8870 <p><span><strong class=
"command">ReqTCP
</strong></span></p>
8873 <p><span><strong class=
"command">RTCP
</strong></span></p>
8877 TCP requests received.
8883 <p><span><strong class=
"command">AuthQryRej
</strong></span></p>
8886 <p><span><strong class=
"command">RUQ
</strong></span></p>
8890 Authoritative (non recursive) queries rejected.
8896 <p><span><strong class=
"command">RecQryRej
</strong></span></p>
8899 <p><span><strong class=
"command">RURQ
</strong></span></p>
8903 Recursive queries rejected.
8909 <p><span><strong class=
"command">XfrRej
</strong></span></p>
8912 <p><span><strong class=
"command">RUXFR
</strong></span></p>
8916 Zone transfer requests rejected.
8922 <p><span><strong class=
"command">UpdateRej
</strong></span></p>
8925 <p><span><strong class=
"command">RUUpd
</strong></span></p>
8929 Dynamic update requests rejected.
8935 <p><span><strong class=
"command">Response
</strong></span></p>
8938 <p><span><strong class=
"command">SAns
</strong></span></p>
8948 <p><span><strong class=
"command">RespTruncated
</strong></span></p>
8951 <p><span><strong class=
"command"></strong></span></p>
8955 Truncated responses sent.
8961 <p><span><strong class=
"command">RespEDNS0
</strong></span></p>
8964 <p><span><strong class=
"command"></strong></span></p>
8968 Responses with EDNS(
0) sent.
8974 <p><span><strong class=
"command">RespTSIG
</strong></span></p>
8977 <p><span><strong class=
"command"></strong></span></p>
8981 Responses with TSIG sent.
8987 <p><span><strong class=
"command">RespSIG0
</strong></span></p>
8990 <p><span><strong class=
"command"></strong></span></p>
8994 Responses with SIG(
0) sent.
9000 <p><span><strong class=
"command">QrySuccess
</strong></span></p>
9003 <p><span><strong class=
"command"></strong></span></p>
9007 Queries resulted in a successful answer.
9008 This means the query which returns a NOERROR response
9009 with at least one answer RR.
9010 This corresponds to the
9011 <span><strong class=
"command">success
</strong></span> counter
9012 of previous versions of
9013 <acronym class=
"acronym">BIND
</acronym> 9.
9019 <p><span><strong class=
"command">QryAuthAns
</strong></span></p>
9022 <p><span><strong class=
"command"></strong></span></p>
9026 Queries resulted in authoritative answer.
9032 <p><span><strong class=
"command">QryNoauthAns
</strong></span></p>
9035 <p><span><strong class=
"command">SNaAns
</strong></span></p>
9039 Queries resulted in non authoritative answer.
9045 <p><span><strong class=
"command">QryReferral
</strong></span></p>
9048 <p><span><strong class=
"command"></strong></span></p>
9052 Queries resulted in referral answer.
9053 This corresponds to the
9054 <span><strong class=
"command">referral
</strong></span> counter
9055 of previous versions of
9056 <acronym class=
"acronym">BIND
</acronym> 9.
9062 <p><span><strong class=
"command">QryNxrrset
</strong></span></p>
9065 <p><span><strong class=
"command"></strong></span></p>
9069 Queries resulted in NOERROR responses with no data.
9070 This corresponds to the
9071 <span><strong class=
"command">nxrrset
</strong></span> counter
9072 of previous versions of
9073 <acronym class=
"acronym">BIND
</acronym> 9.
9079 <p><span><strong class=
"command">QrySERVFAIL
</strong></span></p>
9082 <p><span><strong class=
"command">SFail
</strong></span></p>
9086 Queries resulted in SERVFAIL.
9092 <p><span><strong class=
"command">QryFORMERR
</strong></span></p>
9095 <p><span><strong class=
"command">SFErr
</strong></span></p>
9099 Queries resulted in FORMERR.
9105 <p><span><strong class=
"command">QryNXDOMAIN
</strong></span></p>
9108 <p><span><strong class=
"command">SNXD
</strong></span></p>
9112 Queries resulted in NXDOMAIN.
9113 This corresponds to the
9114 <span><strong class=
"command">nxdomain
</strong></span> counter
9115 of previous versions of
9116 <acronym class=
"acronym">BIND
</acronym> 9.
9122 <p><span><strong class=
"command">QryRecursion
</strong></span></p>
9125 <p><span><strong class=
"command">RFwdQ
</strong></span></p>
9129 Queries which caused the server
9130 to perform recursion in order to find the final answer.
9131 This corresponds to the
9132 <span><strong class=
"command">recursion
</strong></span> counter
9133 of previous versions of
9134 <acronym class=
"acronym">BIND
</acronym> 9.
9140 <p><span><strong class=
"command">QryDuplicate
</strong></span></p>
9143 <p><span><strong class=
"command">RDupQ
</strong></span></p>
9147 Queries which the server attempted to
9148 recurse but discovered an existing query with the same
9149 IP address, port, query ID, name, type and class
9150 already being processed.
9151 This corresponds to the
9152 <span><strong class=
"command">duplicate
</strong></span> counter
9153 of previous versions of
9154 <acronym class=
"acronym">BIND
</acronym> 9.
9160 <p><span><strong class=
"command">QryDropped
</strong></span></p>
9163 <p><span><strong class=
"command"></strong></span></p>
9167 Recursive queries for which the server
9168 discovered an excessive number of existing
9169 recursive queries for the same name, type and
9170 class and were subsequently dropped.
9171 This is the number of dropped queries due to
9172 the reason explained with the
9173 <span><strong class=
"command">clients-per-query
</strong></span>
9175 <span><strong class=
"command">max-clients-per-query
</strong></span>
9177 (see the description about
9178 <a href=
"Bv9ARM.ch06.html#clients-per-query"><span><strong class=
"command">clients-per-query
</strong></span></a>.)
9179 This corresponds to the
9180 <span><strong class=
"command">dropped
</strong></span> counter
9181 of previous versions of
9182 <acronym class=
"acronym">BIND
</acronym> 9.
9188 <p><span><strong class=
"command">QryFailure
</strong></span></p>
9191 <p><span><strong class=
"command"></strong></span></p>
9195 Other query failures.
9196 This corresponds to the
9197 <span><strong class=
"command">failure
</strong></span> counter
9198 of previous versions of
9199 <acronym class=
"acronym">BIND
</acronym> 9.
9200 Note: this counter is provided mainly for
9201 backward compatibility with the previous versions.
9202 Normally a more fine-grained counters such as
9203 <span><strong class=
"command">AuthQryRej
</strong></span> and
9204 <span><strong class=
"command">RecQryRej
</strong></span>
9205 that would also fall into this counter are provided,
9206 and so this counter would not be of much
9207 interest in practice.
9213 <p><span><strong class=
"command">XfrReqDone
</strong></span></p>
9216 <p><span><strong class=
"command"></strong></span></p>
9220 Requested zone transfers completed.
9226 <p><span><strong class=
"command">UpdateReqFwd
</strong></span></p>
9229 <p><span><strong class=
"command"></strong></span></p>
9233 Update requests forwarded.
9239 <p><span><strong class=
"command">UpdateRespFwd
</strong></span></p>
9242 <p><span><strong class=
"command"></strong></span></p>
9246 Update responses forwarded.
9252 <p><span><strong class=
"command">UpdateFwdFail
</strong></span></p>
9255 <p><span><strong class=
"command"></strong></span></p>
9259 Dynamic update forward failed.
9265 <p><span><strong class=
"command">UpdateDone
</strong></span></p>
9268 <p><span><strong class=
"command"></strong></span></p>
9272 Dynamic updates completed.
9278 <p><span><strong class=
"command">UpdateFail
</strong></span></p>
9281 <p><span><strong class=
"command"></strong></span></p>
9285 Dynamic updates failed.
9291 <p><span><strong class=
"command">UpdateBadPrereq
</strong></span></p>
9294 <p><span><strong class=
"command"></strong></span></p>
9298 Dynamic updates rejected due to prerequisite failure.
9305 <div class=
"sect3" lang=
"en">
9306 <div class=
"titlepage"><div><div><h4 class=
"title">
9307 <a name=
"id2598898"></a>Zone Maintenance Statistics Counters
</h4></div></div></div>
9308 <div class=
"informaltable"><table border=
"1">
9317 <span class=
"emphasis"><em>Symbol
</em></span>
9322 <span class=
"emphasis"><em>Description
</em></span>
9328 <p><span><strong class=
"command">NotifyOutv4
</strong></span></p>
9338 <p><span><strong class=
"command">NotifyOutv6
</strong></span></p>
9348 <p><span><strong class=
"command">NotifyInv4
</strong></span></p>
9352 IPv4 notifies received.
9358 <p><span><strong class=
"command">NotifyInv6
</strong></span></p>
9362 IPv6 notifies received.
9368 <p><span><strong class=
"command">NotifyRej
</strong></span></p>
9372 Incoming notifies rejected.
9378 <p><span><strong class=
"command">SOAOutv4
</strong></span></p>
9382 IPv4 SOA queries sent.
9388 <p><span><strong class=
"command">SOAOutv6
</strong></span></p>
9392 IPv6 SOA queries sent.
9398 <p><span><strong class=
"command">AXFRReqv4
</strong></span></p>
9402 IPv4 AXFR requested.
9408 <p><span><strong class=
"command">AXFRReqv6
</strong></span></p>
9412 IPv6 AXFR requested.
9418 <p><span><strong class=
"command">IXFRReqv4
</strong></span></p>
9422 IPv4 IXFR requested.
9428 <p><span><strong class=
"command">IXFRReqv6
</strong></span></p>
9432 IPv6 IXFR requested.
9438 <p><span><strong class=
"command">XfrSuccess
</strong></span></p>
9442 Zone transfer requests succeeded.
9448 <p><span><strong class=
"command">XfrFail
</strong></span></p>
9452 Zone transfer requests failed.
9459 <div class=
"sect3" lang=
"en">
9460 <div class=
"titlepage"><div><div><h4 class=
"title">
9461 <a name=
"id2599417"></a>Resolver Statistics Counters
</h4></div></div></div>
9462 <div class=
"informaltable"><table border=
"1">
9472 <span class=
"emphasis"><em>Symbol
</em></span>
9477 <span class=
"emphasis"><em>BIND8 Symbol
</em></span>
9482 <span class=
"emphasis"><em>Description
</em></span>
9488 <p><span><strong class=
"command">Queryv4
</strong></span></p>
9491 <p><span><strong class=
"command">SFwdQ
</strong></span></p>
9501 <p><span><strong class=
"command">Queryv6
</strong></span></p>
9504 <p><span><strong class=
"command">SFwdQ
</strong></span></p>
9514 <p><span><strong class=
"command">Responsev4
</strong></span></p>
9517 <p><span><strong class=
"command">RR
</strong></span></p>
9521 IPv4 responses received.
9527 <p><span><strong class=
"command">Responsev6
</strong></span></p>
9530 <p><span><strong class=
"command">RR
</strong></span></p>
9534 IPv6 responses received.
9540 <p><span><strong class=
"command">NXDOMAIN
</strong></span></p>
9543 <p><span><strong class=
"command">RNXD
</strong></span></p>
9553 <p><span><strong class=
"command">SERVFAIL
</strong></span></p>
9556 <p><span><strong class=
"command">RFail
</strong></span></p>
9566 <p><span><strong class=
"command">FORMERR
</strong></span></p>
9569 <p><span><strong class=
"command">RFErr
</strong></span></p>
9579 <p><span><strong class=
"command">OtherError
</strong></span></p>
9582 <p><span><strong class=
"command">RErr
</strong></span></p>
9586 Other errors received.
9592 <p><span><strong class=
"command">EDNS0Fail
</strong></span></p>
9595 <p><span><strong class=
"command"></strong></span></p>
9599 EDNS(
0) query failures.
9605 <p><span><strong class=
"command">Mismatch
</strong></span></p>
9608 <p><span><strong class=
"command">RDupR
</strong></span></p>
9612 Mismatch responses received.
9613 The DNS ID, response's source address,
9614 and/or the response's source port does not
9615 match what was expected.
9616 (The port must be
53 or as defined by
9617 the
<span><strong class=
"command">port
</strong></span> option.)
9618 This may be an indication of a cache
9625 <p><span><strong class=
"command">Truncated
</strong></span></p>
9628 <p><span><strong class=
"command"></strong></span></p>
9632 Truncated responses received.
9638 <p><span><strong class=
"command">Lame
</strong></span></p>
9641 <p><span><strong class=
"command">RLame
</strong></span></p>
9645 Lame delegations received.
9651 <p><span><strong class=
"command">Retry
</strong></span></p>
9654 <p><span><strong class=
"command">SDupQ
</strong></span></p>
9658 Query retries performed.
9664 <p><span><strong class=
"command">QueryAbort
</strong></span></p>
9667 <p><span><strong class=
"command"></strong></span></p>
9671 Queries aborted due to quota control.
9677 <p><span><strong class=
"command">QuerySockFail
</strong></span></p>
9680 <p><span><strong class=
"command"></strong></span></p>
9684 Failures in opening query sockets.
9685 One common reason for such failures is a
9686 failure of opening a new socket due to a
9687 limitation on file descriptors.
9693 <p><span><strong class=
"command">QueryTimeout
</strong></span></p>
9696 <p><span><strong class=
"command"></strong></span></p>
9706 <p><span><strong class=
"command">GlueFetchv4
</strong></span></p>
9709 <p><span><strong class=
"command">SSysQ
</strong></span></p>
9713 IPv4 NS address fetches invoked.
9719 <p><span><strong class=
"command">GlueFetchv6
</strong></span></p>
9722 <p><span><strong class=
"command">SSysQ
</strong></span></p>
9726 IPv6 NS address fetches invoked.
9732 <p><span><strong class=
"command">GlueFetchv4Fail
</strong></span></p>
9735 <p><span><strong class=
"command"></strong></span></p>
9739 IPv4 NS address fetch failed.
9745 <p><span><strong class=
"command">GlueFetchv6Fail
</strong></span></p>
9748 <p><span><strong class=
"command"></strong></span></p>
9752 IPv6 NS address fetch failed.
9758 <p><span><strong class=
"command">ValAttempt
</strong></span></p>
9761 <p><span><strong class=
"command"></strong></span></p>
9765 DNSSEC validation attempted.
9771 <p><span><strong class=
"command">ValOk
</strong></span></p>
9774 <p><span><strong class=
"command"></strong></span></p>
9778 DNSSEC validation succeeded.
9784 <p><span><strong class=
"command">ValNegOk
</strong></span></p>
9787 <p><span><strong class=
"command"></strong></span></p>
9791 DNSSEC validation on negative information succeeded.
9797 <p><span><strong class=
"command">ValFail
</strong></span></p>
9800 <p><span><strong class=
"command"></strong></span></p>
9804 DNSSEC validation failed.
9810 <p><span><strong class=
"command">QryRTTnn
</strong></span></p>
9813 <p><span><strong class=
"command"></strong></span></p>
9817 Frequency table on round trip times (RTTs) of
9819 Each
<span><strong class=
"command">nn
</strong></span> specifies the corresponding
9822 <span><strong class=
"command">nn_1
</strong></span>,
9823 <span><strong class=
"command">nn_2
</strong></span>,
9825 <span><strong class=
"command">nn_m
</strong></span>,
9826 the value of
<span><strong class=
"command">nn_i
</strong></span> is the
9827 number of queries whose RTTs are between
9828 <span><strong class=
"command">nn_(i-
1)
</strong></span> (inclusive) and
9829 <span><strong class=
"command">nn_i
</strong></span> (exclusive) milliseconds.
9830 For the sake of convenience we define
9831 <span><strong class=
"command">nn_0
</strong></span> to be
0.
9832 The last entry should be represented as
9833 <span><strong class=
"command">nn_m+
</strong></span>, which means the
9834 number of queries whose RTTs are equal to or over
9835 <span><strong class=
"command">nn_m
</strong></span> milliseconds.
9842 <div class=
"sect3" lang=
"en">
9843 <div class=
"titlepage"><div><div><h4 class=
"title">
9844 <a name=
"id2600439"></a>Socket I/O Statistics Counters
</h4></div></div></div>
9846 Socket I/O statistics counters are defined per socket
9848 <span><strong class=
"command">UDP4
</strong></span> (UDP/IPv4),
9849 <span><strong class=
"command">UDP6
</strong></span> (UDP/IPv6),
9850 <span><strong class=
"command">TCP4
</strong></span> (TCP/IPv4),
9851 <span><strong class=
"command">TCP6
</strong></span> (TCP/IPv6),
9852 <span><strong class=
"command">Unix
</strong></span> (Unix Domain), and
9853 <span><strong class=
"command">FDwatch
</strong></span> (sockets opened outside the
9855 In the following table
<span><strong class=
"command"><TYPE
></strong></span>
9856 represents a socket type.
9857 Not all counters are available for all socket types;
9858 exceptions are noted in the description field.
9860 <div class=
"informaltable"><table border=
"1">
9869 <span class=
"emphasis"><em>Symbol
</em></span>
9874 <span class=
"emphasis"><em>Description
</em></span>
9880 <p><span><strong class=
"command"><TYPE
>Open
</strong></span></p>
9884 Sockets opened successfully.
9885 This counter is not applicable to the
9886 <span><strong class=
"command">FDwatch
</strong></span> type.
9892 <p><span><strong class=
"command"><TYPE
>OpenFail
</strong></span></p>
9896 Failures of opening sockets.
9897 This counter is not applicable to the
9898 <span><strong class=
"command">FDwatch
</strong></span> type.
9904 <p><span><strong class=
"command"><TYPE
>Close
</strong></span></p>
9914 <p><span><strong class=
"command"><TYPE
>BindFail
</strong></span></p>
9918 Failures of binding sockets.
9924 <p><span><strong class=
"command"><TYPE
>ConnFail
</strong></span></p>
9928 Failures of connecting sockets.
9934 <p><span><strong class=
"command"><TYPE
>Conn
</strong></span></p>
9938 Connections established successfully.
9944 <p><span><strong class=
"command"><TYPE
>AcceptFail
</strong></span></p>
9948 Failures of accepting incoming connection requests.
9949 This counter is not applicable to the
9950 <span><strong class=
"command">UDP
</strong></span> and
9951 <span><strong class=
"command">FDwatch
</strong></span> types.
9957 <p><span><strong class=
"command"><TYPE
>Accept
</strong></span></p>
9961 Incoming connections successfully accepted.
9962 This counter is not applicable to the
9963 <span><strong class=
"command">UDP
</strong></span> and
9964 <span><strong class=
"command">FDwatch
</strong></span> types.
9970 <p><span><strong class=
"command"><TYPE
>SendErr
</strong></span></p>
9974 Errors in socket send operations.
9975 This counter corresponds
9976 to
<span><strong class=
"command">SErr
</strong></span> counter of
9977 <span><strong class=
"command">BIND
</strong></span> 8.
9983 <p><span><strong class=
"command"><TYPE
>RecvErr
</strong></span></p>
9987 Errors in socket receive operations.
9988 This includes errors of send operations on a
9989 connected UDP socket notified by an ICMP error
9997 <div class=
"sect3" lang=
"en">
9998 <div class=
"titlepage"><div><div><h4 class=
"title">
9999 <a name=
"id2600881"></a>Compatibility with
<span class=
"emphasis"><em>BIND
</em></span> 8 Counters
</h4></div></div></div>
10001 Most statistics counters that were available
10002 in
<span><strong class=
"command">BIND
</strong></span> 8 are also supported in
10003 <span><strong class=
"command">BIND
</strong></span> 9 as shown in the above tables.
10004 Here are notes about other counters that do not appear
10007 <div class=
"variablelist"><dl>
10008 <dt><span class=
"term"><span><strong class=
"command">RFwdR,SFwdR
</strong></span></span></dt>
10010 These counters are not supported
10011 because
<span><strong class=
"command">BIND
</strong></span> 9 does not adopt
10012 the notion of
<span class=
"emphasis"><em>forwarding
</em></span>
10013 as
<span><strong class=
"command">BIND
</strong></span> 8 did.
10015 <dt><span class=
"term"><span><strong class=
"command">RAXFR
</strong></span></span></dt>
10017 This counter is accessible in the Incoming Queries section.
10019 <dt><span class=
"term"><span><strong class=
"command">RIQ
</strong></span></span></dt>
10021 This counter is accessible in the Incoming Requests section.
10023 <dt><span class=
"term"><span><strong class=
"command">ROpts
</strong></span></span></dt>
10025 This counter is not supported
10026 because
<span><strong class=
"command">BIND
</strong></span> 9 does not care
10027 about IP options in the first place.
10034 <div class=
"navfooter">
10036 <table width=
"100%" summary=
"Navigation footer">
10038 <td width=
"40%" align=
"left">
10039 <a accesskey=
"p" href=
"Bv9ARM.ch05.html">Prev
</a> </td>
10040 <td width=
"20%" align=
"center"> </td>
10041 <td width=
"40%" align=
"right"> <a accesskey=
"n" href=
"Bv9ARM.ch07.html">Next
</a>
10045 <td width=
"40%" align=
"left" valign=
"top">Chapter
5. The
<acronym class=
"acronym">BIND
</acronym> 9 Lightweight Resolver
</td>
10046 <td width=
"20%" align=
"center"><a accesskey=
"h" href=
"Bv9ARM.html">Home
</a></td>
10047 <td width=
"40%" align=
"right" valign=
"top"> Chapter
7.
<acronym class=
"acronym">BIND
</acronym> 9 Security Considerations
</td>