head 1.14; access; symbols cjep_sun2x:1.14.0.42 cjep_sun2x-base:1.14 cjep_staticlib_x-base1:1.14 cjep_staticlib_x:1.14.0.40 cjep_staticlib_x-base:1.14 phil-wifi-20200421:1.14 phil-wifi-20200411:1.14 phil-wifi-20200406:1.14 pgoyette-compat-merge-20190127:1.14 pgoyette-compat-20190127:1.14 pgoyette-compat-20190118:1.14 pgoyette-compat-1226:1.14 pgoyette-compat-1126:1.14 pgoyette-compat-1020:1.14 pgoyette-compat-0930:1.14 pgoyette-compat-0906:1.14 pgoyette-compat-0728:1.14 pgoyette-compat-0625:1.14 pgoyette-compat-0521:1.14 pgoyette-compat-0502:1.14 pgoyette-compat-0422:1.14 pgoyette-compat-0415:1.14 pgoyette-compat-0407:1.14 pgoyette-compat-0330:1.14 pgoyette-compat-0322:1.14 pgoyette-compat-0315:1.14 pgoyette-compat:1.14.0.38 pgoyette-compat-base:1.14 prg-localcount2-base3:1.14 prg-localcount2-base2:1.14 prg-localcount2-base1:1.14 prg-localcount2:1.14.0.36 prg-localcount2-base:1.14 pgoyette-localcount-20170426:1.14 bouyer-socketcan-base1:1.14 pgoyette-localcount-20170320:1.14 bouyer-socketcan:1.14.0.34 bouyer-socketcan-base:1.14 pgoyette-localcount-20170107:1.14 pgoyette-localcount-20161104:1.14 localcount-20160914:1.14 pgoyette-localcount-20160806:1.14 pgoyette-localcount-20160726:1.14 pgoyette-localcount:1.14.0.32 pgoyette-localcount-base:1.14 netbsd-5-2-3-RELEASE:1.14 netbsd-5-1-5-RELEASE:1.14 yamt-pagecache-base9:1.14 yamt-pagecache-tag8:1.14 tls-earlyentropy:1.14.0.28 tls-earlyentropy-base:1.14 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.14 riastradh-drm2-base3:1.14 netbsd-5-2-2-RELEASE:1.14 netbsd-5-1-4-RELEASE:1.14 netbsd-5-2-1-RELEASE:1.14 netbsd-5-1-3-RELEASE:1.14 agc-symver:1.14.0.30 agc-symver-base:1.14 tls-maxphys-base:1.14 yamt-pagecache-base8:1.14 netbsd-5-2:1.14.0.26 yamt-pagecache-base7:1.14 netbsd-5-2-RELEASE:1.14 netbsd-5-2-RC1:1.14 yamt-pagecache-base6:1.14 yamt-pagecache-base5:1.14 yamt-pagecache-base4:1.14 netbsd-5-1-2-RELEASE:1.14 netbsd-5-1-1-RELEASE:1.14 yamt-pagecache-base3:1.14 yamt-pagecache-base2:1.14 yamt-pagecache:1.14.0.24 yamt-pagecache-base:1.14 bouyer-quota2-nbase:1.14 bouyer-quota2:1.14.0.22 bouyer-quota2-base:1.14 matt-nb5-pq3:1.14.0.20 matt-nb5-pq3-base:1.14 netbsd-5-1:1.14.0.18 netbsd-5-1-RELEASE:1.14 netbsd-5-1-RC4:1.14 netbsd-5-1-RC3:1.14 netbsd-5-1-RC2:1.14 netbsd-5-1-RC1:1.14 netbsd-5-0-2-RELEASE:1.14 netbsd-5-0-1-RELEASE:1.14 jym-xensuspend-nbase:1.14 netbsd-5-0:1.14.0.16 netbsd-5-0-RELEASE:1.14 netbsd-5-0-RC4:1.14 netbsd-5-0-RC3:1.14 netbsd-5-0-RC2:1.14 jym-xensuspend:1.14.0.14 jym-xensuspend-base:1.14 netbsd-5-0-RC1:1.14 netbsd-5:1.14.0.12 netbsd-5-base:1.14 mjf-devfs2:1.14.0.10 mjf-devfs2-base:1.14 yamt-pf42-base4:1.14 yamt-pf42-base3:1.14 hpcarm-cleanup-nbase:1.14 yamt-pf42-base2:1.14 yamt-pf42:1.14.0.8 yamt-pf42-base:1.14 keiichi-mipv6:1.14.0.6 keiichi-mipv6-base:1.14 cube-autoconf:1.14.0.4 cube-autoconf-base:1.14 hpcarm-cleanup:1.14.0.2 hpcarm-cleanup-base:1.14 netbsd-2-0-3-RELEASE:1.13 netbsd-2-1:1.13.0.6 netbsd-2-1-RELEASE:1.13 netbsd-2-1-RC6:1.13 netbsd-2-1-RC5:1.13 netbsd-2-1-RC4:1.13 netbsd-2-1-RC3:1.13 netbsd-2-1-RC2:1.13 netbsd-2-1-RC1:1.13 netbsd-2-0-2-RELEASE:1.13 netbsd-2-0-1-RELEASE:1.13 netbsd-2:1.13.0.4 netbsd-2-base:1.13 netbsd-2-0-RELEASE:1.13 netbsd-2-0-RC5:1.13 netbsd-2-0-RC4:1.13 netbsd-2-0-RC3:1.13 netbsd-2-0-RC2:1.13 netbsd-2-0-RC1:1.13 bind-8-latest:1.13 netbsd-2-0:1.13.0.2 netbsd-2-0-base:1.13 netbsd-1-6-PATCH002-RELEASE:1.5.2.3 netbsd-1-6-PATCH002:1.5.2.3 netbsd-1-6-PATCH002-RC4:1.5.2.3 netbsd-1-6-PATCH002-RC3:1.5.2.3 bind-8-3-7:1.1.1.5 netbsd-1-6-PATCH002-RC2:1.5.2.3 netbsd-1-6-PATCH002-RC1:1.5.2.3 bind-8-3-6:1.1.1.5 bind-8-3-5:1.1.1.5 netbsd-1-6-PATCH001:1.5.2.2 netbsd-1-6-PATCH001-RELEASE:1.5.2.2 netbsd-1-6-PATCH001-RC3:1.5.2.2 netbsd-1-6-PATCH001-RC2:1.5.2.2 netbsd-1-6-PATCH001-RC1:1.5.2.2 fvdl_fs64_base:1.9 bind-8-3-4:1.1.1.4 netbsd-1-6-RELEASE:1.5.2.1 netbsd-1-6-RC3:1.5.2.1 netbsd-1-6-RC2:1.5.2.1 netbsd-1-6-RC1:1.5.2.1 bind-8-3-3:1.1.1.3 bind-8-3-2:1.1.1.3 netbsd-1-6:1.5.0.2 netbsd-1-6-base:1.5 netbsd-1-5-PATCH003:1.2.8.2 netbsd-1-5-PATCH002:1.2.8.1 netbsd-1-5-PATCH001:1.2.8.1 bind-8-2-4:1.1.1.2 bind-8-2-3:1.1.1.2 netbsd-1-5-RELEASE:1.2 bind-8-2-2-P7:1.1.1.1 netbsd-1-5-BETA2:1.2 netbsd-1-5-BETA:1.2 netbsd-1-4-PATCH003:1.2.2.2 netbsd-1-5-ALPHA2:1.2 netbsd-1-5:1.2.0.8 netbsd-1-5-base:1.2 minoura-xpg4dl:1.2.0.6 minoura-xpg4dl-base:1.2 netbsd-1-4-PATCH002:1.2.2.2 wrstuden-devbsize-base:1.2 wrstuden-devbsize:1.2.0.4 wrstuden-devbsize-19991221:1.2 netbsd-1-4:1.2.0.2 bind-8-2-2-P5:1.1.1.1 ISC:1.1.1; locks; strict; comment @.\" @; 1.14 date 2004.05.18.00.04.00; author christos; state dead; branches; next 1.13; 1.13 date 2003.06.03.07.34.16; author itojun; state Exp; branches; next 1.12; 1.12 date 2003.04.06.19.39.46; author wiz; state Exp; branches; next 1.11; 1.11 date 2003.03.31.17.54.04; author perry; state Exp; branches; next 1.10; 1.10 date 2003.03.15.19.24.21; author wiz; state Exp; branches; next 1.9; 1.9 date 2002.12.21.13.30.51; author wiz; state Exp; branches; next 1.8; 1.8 date 2002.11.17.14.09.53; author itojun; state Exp; branches; next 1.7; 1.7 date 2002.06.20.12.01.50; author itojun; state Exp; branches; next 1.6; 1.6 date 2002.06.20.11.43.09; author itojun; state Exp; branches; next 1.5; 1.5 date 2001.12.07.19.18.14; author wiz; state Exp; branches 1.5.2.1; next 1.4; 1.4 date 2001.06.05.11.13.41; author wiz; state Exp; branches; next 1.3; 1.3 date 2001.01.27.07.22.05; author itojun; state Exp; branches; next 1.2; 1.2 date 99.11.29.18.28.18; author christos; state Exp; branches 1.2.2.1 1.2.4.1 1.2.8.1; next 1.1; 1.1 date 99.11.20.18.53.57; author veego; state Exp; branches 1.1.1.1; next ; 1.5.2.1 date 2002.06.28.12.00.03; author lukem; state Exp; branches; next 1.5.2.2; 1.5.2.2 date 2002.12.12.22.07.48; author he; state Exp; branches; next 1.5.2.3; 1.5.2.3 date 2003.10.27.04.40.23; author jmc; state Exp; branches; next ; 1.2.2.1 date 99.11.29.18.28.18; author he; state dead; branches; next 1.2.2.2; 1.2.2.2 date 99.12.04.17.10.21; author he; state Exp; branches; next 1.2.2.3; 1.2.2.3 date 2001.01.28.17.09.20; author he; state Exp; branches; next ; 1.2.4.1 date 99.12.27.18.27.50; author wrstuden; state Exp; branches; next ; 1.2.8.1 date 2001.01.28.15.52.42; author he; state Exp; branches; next 1.2.8.2; 1.2.8.2 date 2002.07.01.17.15.44; author he; state Exp; branches; next 1.2.8.3; 1.2.8.3 date 2002.11.17.14.27.16; author itojun; state Exp; branches; next 1.2.8.4; 1.2.8.4 date 2003.11.27.17.54.39; author cyber; state Exp; branches; next ; 1.1.1.1 date 99.11.20.18.53.57; author veego; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2001.01.27.06.15.54; author itojun; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2002.06.20.10.29.17; author itojun; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2002.11.17.14.04.14; author itojun; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2003.06.03.07.04.22; author itojun; state Exp; branches; next ; desc @@ 1.14 log @Resolve conflicts @ text @.\" $NetBSD: named.conf.5,v 1.13 2003/06/03 07:34:16 itojun Exp $ .\" .\" Copyright (c) 1999-2000 by Internet Software Consortium .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS .\" ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES .\" OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE .\" CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL .\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR .\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS .\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS .\" SOFTWARE. .Dd January 7, 1999 .Dt NAMED.CONF 5 .Os .Sh NAME .Nm named.conf .Nd configuration file for .Xr named 8 .Sh OVERVIEW BIND 8 is much more configurable than previous release of BIND. There are entirely new areas of configuration, such as access control lists and categorized logging. Many options that previously applied to all zones can now be used selectively. These features, plus a consideration of future configuration needs led to the creation of a new configuration file format. .Ss General Syntax A BIND 8 configuration consists of two general features, statements and comments. All statements end with a semicolon. Many statements can contain substatements, which are each also terminated with a semicolon. .Pp The following statements are supported: .Bl -tag -width 0n .It Ic logging specifies what the server logs, and where the log messages are sent .It Ic options controls global server configuration options and sets defaults for other statements .It Ic zone defines a zone .It Ic acl defines a named IP address matching list, for access control and other uses .It Ic key specifies key information for use in authentication and authorization .It Ic trusted-keys defines DNSSEC keys that are preconfigured into the server and implicitly trusted .It Ic server sets certain configuration options for individual remote servers .It Ic controls declares control channels to be used by the .Nm ndc utility .It Ic include includes another file .El .Pp The .Ic logging and .Ic options statements may only occur once per configuration, while the rest may appear numerous times. Further detail on each statement is provided in individual sections below. .Pp Comments may appear anywhere that whitespace may appear in a BIND configuration file. To appeal to programmers of all kinds, they can be written in C, C++, or shell/perl constructs. .Pp C-style comments start with the two characters .Li /* (slash, star) and end with .Li */ (star, slash). Because they are completely delimited with these characters, they can be used to comment only a portion of a line or to span multiple lines. .Pp C-style comments cannot be nested. For example, the following is not valid because the entire comment ends with the first .Li */ : .Bd -literal -offset indent /* This is the start of a comment. This is still part of the comment. /* This is an incorrect attempt at nesting a comment. */ This is no longer in any comment. */ .Ed .Pp C++-style comments start with the two characters .Li // (slash, slash) and continue to the end of the physical line. They cannot be continued across multiple physical lines; to have one logical comment span multiple lines, each line must use the .Li // pair. For example: .Bd -literal -offset indent // This is the start of a comment. The next line // is a new comment, even though it is logically // part of the previous comment. .Ed .Pp Shell-style (or perl-style, if you prefer) comments start with the character .Li # (hash or pound or number or octothorpe or whatever) and continue to the end of the physical line, like C++ comments. For example: .Bd -literal -offset indent # This is the start of a comment. The next line # is a new comment, even though it is logically # part of the previous comment. .Ed .Pp .Em WARNING : you cannot use the .Li ; (semicolon) character to start a comment such as you would in a zone file. The semicolon indicates the end of a configuration statement, so whatever follows it will be interpreted as the start of the next statement. .Ss Converting from BIND 4.9.x BIND 4.9.x configuration files can be converted to the new format by using .Pa src/bin/named/named-bootconf , a shell script that is part of the BIND 8.2.x source kit. .Sh DOCUMENTATION DEFINITIONS Described below are elements used throughout the BIND configuration file documentation. Elements which are only associated with one statement are described only in the section describing that statement. .Bl -tag -width 0n .It Va acl_name The name of an .Va address_match_list as defined by the .Ic acl statement. .It Va address_match_list A list of one or more .Va ip_addr , .Va ip_prefix , .Va key_id , or .Va acl_name elements, as described in the .Sx ADDRESS MATCH LISTS section. .It Va dotted-decimal One or more integers valued 0 through 255 separated only by dots (``.''), such as .Li 123 , .Li 45.67 or .Li 89.123.45.67 . .It Va domain_name A quoted string which will be used as a DNS name, for example .Qq Li my.test.domain . .It Va path_name A quoted string which will be used as a pathname, such as .Qq Li zones/master/my.test.domain . .It Va ip_addr An IP address with exactly four elements in .Va dotted-decimal notation. .It Va ip_port An IP port .Va number . .Va number is limited to .Li 0 through .Li 65535 , with values below 1024 typically restricted to root-owned processes. In some cases an asterisk (``*'') character can be used as a place holder to select a random high-numbered port. .It Va ip_prefix An IP network specified in .Va dotted-decimal form, followed by ``/'' and then the number of bits in the netmask. E.g. .Li 127/8 is the network .Li 127.0.0.0 with netmask .Li 255.0.0.0 . .Li 1.2.3.0/28 is network .Li 1.2.3.0 with netmask .Li 255.255.255.240. .It Va key_name A string representing the name of a shared key, to be used for transaction security. .It Va number A non-negative integer with an entire range limited by the range of a C language signed integer (2,147,483,647 on a machine with 32 bit integers). Its acceptable value might further be limited by the context in which it is used. .It Va size_spec A .Va number , the word .Li unlimited , or the word .Li default . .Pp The maximum value of .Va size_spec is that of unsigned long integers on the machine. .Li unlimited requests unlimited use, or the maximum available amount. .Li default uses the limit that was in force when the server was started. .Pp A .Va number can optionally be followed by a scaling factor: .Li K or .Li k for kilobytes, .Li M or .Li m for megabytes, and .Li G or .Li g for gigabytes, which scale by 1024, 1024*1024, and 1024*1024*1024 respectively. .Pp Integer storage overflow is currently silently ignored during conversion of scaled values, resulting in values less than intended, possibly even negative. Using .Li unlimited is the best way to safely set a really large number. .It Va yes_or_no Either .Li yes or .Li no . The words .Li true and .Li false are also accepted, as are the numbers .Li 1 and .Li 0 . .El .Sh ADDRESS MATCH LISTS .Ss Syntax .Bd -literal \fIaddress_match_list\fR = 1\&*\fIaddress_match_element\fR .Pp \fIaddress_match_element\fR = [ \&"!\&" ] ( \fIaddress_match_list\fR / \fIip_address\fR / \fIip_prefix\fR / \fIacl_name\fR / \&"key \&" \fIkey_id\fR ) \&";\&" .Ed .Ss Definition and Usage Address match lists are primarily used to determine access control for various server operations. They are also used to define priorities for querying other nameservers and to set the addresses on which .Nm named will listen for queries. The elements which constitute an address match list can be any of the following: .Bl -bullet .It an .Va ip-address (in .Va dotted-decimal notation, .It an .Va ip-prefix (in the '/'-notation), .It A .Va key_id , as defined by the .Ic key statement, .It the name of an address match list previously defined with the .Ic acl statement, or .It another .Va address_match_list . .El .Pp Elements can be negated with a leading exclamation mark (``!''), and the match list names .Li any , .Li none , .Li localhost and .Li localnets are predefined. More information on those names can be found in the description of the .Ic acl statement. .Pp The addition of the .Ic key clause made the name of this syntactic element something of a misnomer, since security keys can be used to validate access without regard to a host or network address. Nonetheless, the term ``address match list'' is still used throughout the documentation. .Pp When a given IP address or prefix is compared to an address match list, the list is traversed in order until an element matches. The interpretation of a match depends on whether the list is being used for access control, defining .Ic listen-on ports, or as a topology, and whether the element was negated. .Pp When used as an access control list, a non-negated match allows access and a negated match denies access. If there is no match at all in the list, access is denied. The clauses .Ic allow-query , .Ic allow-transfer , .Ic allow-update , .Ic allow-recursion , and .Ic blackhole all use address match lists like this. Similarly, the .Ic listen-on option will cause the server to not accept queries on any of the machine's addresses which do not match the list. .Pp When used with the .Ic topology option, a non-negated match returns a distance based on its position on the list (the closer the match is to the start of the list, the shorter the distance is between it and the server). A negated match will be assigned the maximum distance from the server. If there is no match, the address will get a distance which is further than any non-negated list element, and closer than any negated element. .Pp Because of the first-match aspect of the algorithm, an element that defines a subset of another element in the list should come before the broader element, regardless of whether either is negated. For example, in .Dl 1.2.3/24; !1.2.3.13 the 1.2.3.13 element is completely useless, because the algorithm will match any lookup for 1.2.3.13 to the 1.2.3/24 element. Using .Dl !1.2.3.13; 1.2.3/24 fixes that problem by having 1.2.3.13 blocked by the negation but all other 1.2.3.* hosts fall through. .Sh THE LOGGING STATEMENT .Ss Syntax .Bd -literal logging { [ channel \fIchannel_name\fR { ( file \fIpath_name\fR [ versions ( \fInumber\fR | unlimited ) ] [ size \fIsize_spec\fR ] | syslog ( kern | user | mail | daemon | auth | syslog | lpr | news | uucp | cron | authpriv | ftp | local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7 ) | null ); .Pp [ severity ( critical | error | warning | notice | info | debug [ \fIlevel\fR ] | dynamic ); ] [ print-category \fIyes_or_no\fR; ] [ print-severity \fIyes_or_no\fR; ] [ print-time \fIyes_or_no\fR; ] }; ] .Pp [ category \fIcategory_name\fR { \fIchannel_name\fR; [ \fIchannel_name\fR; ... ] }; ] ... }; .Ed .Ss Definition and Usage The .Ic logging statement configures a wide variety of logging options for the nameserver. Its .Ic channel phrase associates output methods, format options and severity levels with a name that can then be used with the .Ic category phrase to select how various classes of messages are logged. .Pp Only one .Ic logging statement is used to define as many channels and categories as are wanted. If there are multiple logging statements in a configuration, the first defined determines the logging, and warnings are issued for the others. If there is no logging statement, the logging configuration will be: .Bd -literal logging { category default { default_syslog; default_debug; }; category panic { default_syslog; default_stderr; }; category packet { default_debug; }; category eventlib { default_debug; }; }; .Ed .Pp The logging configuration is established as soon as the .Ic logging statement is parsed. If you want to redirect messages about processing of the entire configuration file, the .Ic logging statement must appear first. Even if you do not redirect configuration file parsing messages, we recommend always putting the .Ic logging statement first so that this rule need not be consciously recalled if you ever do want the parser's messages relocated. .Ss The channel phrase All log output goes to one or more ``channels''; you can make as many of them as you want. .Pp Every channel definition must include a clause that says whether messages selected for the channel go to a file, to a particular syslog facility, or are discarded. It can optionally also limit the message severity level that will be accepted by the channel (default is .Li info ) , and whether to include a time stamp generated by .Nm named , the category name, or severity level. The default is not to include any of those three. .Pp The word .Li null as the destination option for the channel will cause all messages sent to it to be discarded; other options for the channel are meaningless. .Pp The .Ic file clause can include limitations both on how large the file is allowed to become, and how many versions of the file will be saved each time the file is opened. .Pp The .Ic size option for files is simply a hard ceiling on log growth. If the file ever exceeds the size, then .Nm named will just not write anything more to it until the file is reopened; exceeding the size does not automatically trigger a reopen. The default behavior is to not limit the size of the file. .Pp If you use the .Ic version logfile option, then .Nm named will retain that many backup versions of the file by renaming them when opening. For example, if you choose to keep 3 old versions of the file lamers.log then just before it is opened lamers.log.1 is renamed to lames.log.2, lamers.log.0 is renamed to lamers.log.1, and lamers.log is renamed to lamers.log.0. No rolled versions are kept by default; any existing log file is simply appended. The .Li unlimited keyword is synonymous with .Li 99 in current BIND releases. Example usage of size and versions options: .Bd -literal channel an_example_level { file "lamers.log" versions 3 size 20m; print-time yes; print-category yes; }; .Ed .Pp The argument for the .Ic syslog clause is a syslog facility as described in the .Xr syslog 3 manual page. How .Nm syslogd will handle messages sent to this facility is described in the .Xr syslog.conf 5 manual page. If you have a system which uses a very old version of syslog that only uses two arguments to the .Fn openlog function, then this clause is silently ignored. .Pp The .Ic severity clause works like syslog's ``priorities'', except that they can also be used if you are writing straight to a file rather than using syslog. Messages which are not at least of the severity level given will not be selected for the channel; messages of higher severity levels will be accepted. .Pp If you are using syslog, then the .Pa syslog.conf priorities will also determine what eventually passes through. For example, defining a channel facility and severity as .Li daemon and .Li debug but only logging .Li daemon.warning via .Pa syslog.conf will cause messages of severity .Li info and .Li notice to be dropped. If the situation were reversed, with .Nm named writing messages of only .Li warning or higher, then .Nm syslogd would print all messages it received from the channel. .Pp The server can supply extensive debugging information when it is in debugging mode. If the server's global debug level is greater than zero, then debugging mode will be active. The global debug level is set either by starting the .Nm named server with the .Fl d flag followed by a positive integer, or by sending the running server the .Dv SIGUSR1 signal (for example, by using .Ic ndc trace ) . The global debug level can be set to zero, and debugging mode turned off, by sending the server the .Dv SIGUSR2 signal (as with .Ic ndc notrace ) . All debugging messages in the server have a debug level, and higher debug levels give more more detailed output. Channels that specify a specific debug severity, e.g. .Bd -literal channel specific_debug_level { file \&"foo\&"; severity debug 3; }; .Ed .Pp will get debugging output of level 3 or less any time the server is in debugging mode, regardless of the global debugging level. Channels with .Li dynamic severity use the server's global level to determine what messages to print. .Pp If .Ic print-time has been turned on, then the date and time will be logged. .Ic print-time may be specified for a syslog channel, but is usually pointless since syslog also prints the date and time. If .Ic print-category is requested, then the category of the message will be logged as well. Finally, if .Ic print-severity is on, then the severity level of the message will be logged. The .Ic print- options may be used in any combination, and will always be printed in the following order: time, category, severity. Here is an example where all three .Ic print- options are on: .Bd -literal 28-Apr-1997 15:05:32.863 default: notice: Ready to answer queries. .Ed .Pp There are four predefined channels that are used for default logging as follows. How they are used used is described in the next section, .Sx The category phrase . .Bd -literal channel default_syslog { syslog daemon; # send to syslog's daemon facility severity info; # only send priority info and higher }; .Pp channel default_debug { file \&"named.run\&"; # write to named.run in the working directory # Note: stderr is used instead of \&"named.run\&" # if the server is started with the -f option. severity dynamic; # log at the server's current debug level }; .Pp channel default_stderr { # writes to stderr file \&"\&"; # this is illustrative only; there's currently # no way of specifying an internal file # descriptor in the configuration language. severity info; # only send priority info and higher }; .Pp channel null { null; # toss anything sent to this channel }; .Ed .Pp Once a channel is defined, it cannot be redefined. Thus you cannot alter the built-in channels directly, but you can modify the default logging by pointing categories at channels you have defined. .Ss The category phrase There are many categories, so you can send the logs you want to see wherever you want, without seeing logs you don't want. If you don't specify a list of channels for a category, then log messages in that category will be sent to the .Li default category instead. If you don't specify a default category, the following ``default default'' is used: .Bd -literal category default { default_syslog; default_debug; }; .Ed .Pp As an example, let's say you want to log security events to a file, but you also want keep the default logging behavior. You'd specify the following: .Bd -literal channel my_security_channel { file \&"my_security_file\&"; severity info; }; category security { my_security_channel; default_syslog; default_debug; }; .Ed .Pp To discard all messages in a category, specify the .Li null channel: .Bd -literal category lame-servers { null; }; category cname { null; }; .Ed .Pp The following categories are available: .Bl -tag -width 0n .It Ic default The catch-all. Many things still aren't classified into categories, and they all end up here. Also, if you don't specify any channels for a category, the default category is used instead. If you do not define the default category, the following definition is used: .Dl category default { default_syslog; default_debug; }; .It Ic config High-level configuration file processing. .It Ic parser Low-level configuration file processing. .It Ic queries A short log message is generated for every query the server receives. .It Ic lame-servers Messages like ``Lame server on ...'' .It Ic statistics Statistics. .It Ic panic If the server has to shut itself down due to an internal problem, it will log the problem in this category as well as in the problem's native category. If you do not define the panic category, the following definition is used: .Dl category panic { default_syslog; default_stderr; }; .It Ic update Dynamic updates. .It Ic update-security Denied dynamic updates due to access controls. .It Ic ncache Negative caching. .It Ic xfer-in Zone transfers the server is receiving. .It Ic xfer-out Zone transfers the server is sending. .It Ic db All database operations. .It Ic eventlib Debugging info from the event system. Only one channel may be specified for this category, and it must be a file channel. If you do not define the eventlib category, the following definition is used: .Dl category eventlib { default_debug; }; .It Ic packet Dumps of packets received and sent. Only one channel may be specified for this category, and it must be a file channel. If you do not define the packet category, the following definition is used: .Dl category packet { default_debug; }; .It Ic notify The NOTIFY protocol. .It Ic cname Messages like ``... points to a CNAME''. .It Ic security Approved/unapproved requests. .It Ic os Operating system problems. .It Ic insist Internal consistency check failures. .It Ic maintenance Periodic maintenance events. .It Ic load Zone loading messages. .It Ic response-checks Messages arising from response checking, such as ``Malformed response ...'', ``wrong ans. name ...'', ``unrelated additional info ...'', ``invalid RR type ...'', and ``bad referral ...''. .El .Sh THE OPTIONS STATEMENT .Ss Syntax .Bd -literal options { [ hostname \fIhostname_string\fR; ] [ version \fIversion_string\fR; ] [ directory \fIpath_name\fR; ] [ named-xfer \fIpath_name\fR; ] [ dump-file \fIpath_name\fR; ] [ memstatistics-file \fIpath_name\fR; ] [ pid-file \fIpath_name\fR; ] [ statistics-file \fIpath_name\fR; ] [ auth-nxdomain \fIyes_or_no\fR; ] [ deallocate-on-exit \fIyes_or_no\fR; ] [ dialup \fIyes_or_no\fR; ] [ fake-iquery \fIyes_or_no\fR; ] [ fetch-glue \fIyes_or_no\fR; ] [ has-old-clients \fIyes_or_no\fR; ] [ host-statistics \fIyes_or_no\fR; ] [ host-statistics-max \fInumber\fR; ] [ multiple-cnames \fIyes_or_no\fR; ] [ notify ( \fIyes_or_no\fR | explicit ); ] [ suppress-initial-notify \fIyes_or_no\fR; ] [ recursion \fIyes_or_no\fR; ] [ rfc2308-type1 \fIyes_or_no\fR; ] [ use-id-pool \fIyes_or_no\fR; ] [ treat-cr-as-space \fIyes_or_no\fR; ] [ also-notify \fIyes_or_no\fR; ] [ forward ( only | first ); ] [ forwarders { [ \fIin_addr\fR ; [ \fIin_addr\fR ; ... ] ] }; ] [ check-names ( master | slave | response ) ( warn | fail | ignore ); ] [ allow-query { \fIaddress_match_list\fR }; ] [ allow-recursion { \fIaddress_match_list\fR }; ] [ allow-transfer { \fIaddress_match_list\fR }; ] [ blackhole { \fIaddress_match_list\fR }; ] [ listen-on [ port \fIip_port\fR ] { \fIaddress_match_list\fR }; ] [ query-source [ address ( \fIip_addr\fR | * ) ] [ port ( \fIip_port\fR | * ) ] ; ] [ lame-ttl \fInumber\fR; ] [ max-transfer-time-in \fInumber\fR; ] [ max-ncache-ttl \fInumber\fR; ] [ min-roots \fInumber\fR; ] [ serial-queries \fInumber\fR; ] [ transfer-format ( one-answer | many-answers ); ] [ transfers-in \fInumber\fR; ] [ transfers-out \fInumber\fR; ] [ transfers-per-ns \fInumber\fR; ] [ transfer-source \fIip_addr\fR; ] [ maintain-ixfr-base \fIyes_or_no\fR; ] [ max-ixfr-log-size \fInumber\fR; ] [ coresize \fIsize_spec\fR ; ] [ datasize \fIsize_spec\fR ; ] [ files \fIsize_spec\fR ; ] [ stacksize \fIsize_spec\fR ; ] [ cleaning-interval \fInumber\fR; ] [ heartbeat-interval \fInumber\fR; ] [ interface-interval \fInumber\fR; ] [ statistics-interval \fInumber\fR; ] [ topology { \fIaddress_match_list\fR }; ] [ sortlist { \fIaddress_match_list\fR }; ] [ rrset-order { \fIorder_spec\fR ; [ \fIorder_spec\fR ; ... ] }; ] [ preferred-glue ( A | AAAA ); ] [ edns-udp-size \fInumber\fR; ] }; .Ed .Ss Definition and Usage The options statement sets up global options to be used by BIND. This statement may appear at only once in a configuration file; if more than one occurrence is found, the first occurrence determines the actual options used, and a warning will be generated. If there is no options statement, an options block with each option set to its default will be used. .Ss Server Information .Bl -tag -width 0n .It Ic hostname This defaults to the hostname of the machine hosting the nameserver as found by gethostname(). Its prime purpose is to be able to identify which of a number of anycast servers is actually answering your queries by sending a txt query for .Pa hostname.bind in class chaos to the anycast server and getting back a unique name. Setting the hostname to a empty string ("") will disable processing of the queries. .It Ic version The version the server should report via the ndc command or via a query of name .Pa version.bind in class chaos. The default is the real version number of the server, but some server operators prefer the string ( .Ic surely you must be joking ). .El .Ss Pathnames .Bl -tag -width 0n .It Ic directory The working directory of the server. Any non-absolute pathnames in the configuration file will be taken as relative to this directory. The default location for most server output files (e.g. .Pa named.run ) is this directory. If a directory is not specified, the working directory defaults to .Pa \&. , the directory from which the server was started. The directory specified should be an absolute path. .It Ic named-xfer The pathname to the named-xfer program that the server uses for inbound zone transfers. If not specified, the default is system dependent (e.g. .Pa /usr/sbin/named-xfer ). .It Ic dump-file The pathname of the file the server dumps the database to when it receives .Dv SIGINT signal (as sent by .Ic ndc dumpdb ). If not specified, the default is .Pa named_dump.db . .It Ic memstatistics-file The pathname of the file the server writes memory usage statistics to on exit, if .Ic deallocate-on-exit is .Li yes . If not specified, the default is .Pa named.memstats . .It Ic pid-file The pathname of the file the server writes its process ID in. If not specified, the default is operating system dependent, but is usually .Pa /var/run/named.pid or .Pa /etc/named.pid . The pid-file is used by programs like .Nm ndc that want to send signals to the running nameserver. .It Ic statistics-file The pathname of the file the server appends statistics to when it receives .Dv SIGILL signal (from .Ic ndc stats ) . If not specified, the default is .Pa named.stats . .El .Ss Boolean Options .Bl -tag -width 0n .It Ic auth-nxdomain If .Li yes , then the .Li AA bit is always set on .Dv NXDOMAIN responses, even if the server is not actually authoritative. The default is .Li no . Turning .Lc auth-nxdomain will allow older clients that require .Li AA to be set to accept .Dv NXDOMAIN responses to work. .It Ic deallocate-on-exit If .Li yes , then when the server exits it will painstakingly deallocate every object it allocated, and then write a memory usage report to the .Ic memstatistics-file . The default is .Li no , because it is faster to let the operating system clean up. .Ic deallocate-on-exit is handy for detecting memory leaks. .It Ic dialup If .Li yes , then the server treats all zones as if they are doing zone transfers across a dial on demand dialup link, which can be brought up by traffic originating from this server. This has different effects according to zone type and concentrates the zone maintenance so that it all happens in a short interval, once every .Ic heartbeat-interval and hopefully during the one call. It also suppresses some of the normal zone maintenance traffic. The default is .Li no . The .Ic dialup option may also be specified in the .Ic zone statement, in which case it overrides the .Ic options dialup statement. .Pp If the zone is a .Ic master then the server will send out .Dv NOTIFY request to all the slaves. This will trigger the zone up to date checking in the slave (providing it supports .Dv NOTIFY ) allowing the slave to verify the zone while the call us up. .Pp If the zone is a .Ic slave or .Ic stub then the server will suppress the zone regular zone up to date queries and only perform the when the .Ic heartbeat-interval expires. .It Ic fake-iquery If .Li yes , the server will simulate the obsolete DNS query type .Dv IQUERY . The default is .Li no . .It Ic fetch-glue If .Li yes (the default), the server will fetch ``glue'' resource records it doesn't have when constructing the additional data section of a response. .Ic fetch-glue no can be used in conjunction with .Ic recursion no to prevent the server's cache from growing or becoming corrupted (at the cost of requiring more work from the client). .It Ic has-old-clients Setting the option to .Li yes , is equivalent to setting the following three options: .Ic auth-nxdomain yes ; , .Ic maintain-ixfr-base yes ; , and .Ic rfc2308-type1 no ; .Pp The use of .Ic has-old-clients with .Ic auth-nxdomain , .Ic maintain-ixfr-base , and .Ic rfc2308-type1 is order dependent. .It Ic host-statistics If .Li yes , then statistics are kept for every host that the the nameserver interacts with. The default is .Li no . .Em Note : turning on .Ic host-statistics can consume huge amounts of memory. .It Ic maintain-ixfr-base If .Li yes , a IXFR database file is kept for all dynamically updated zones. This enables the server to answer IXFR queries which can speed up zone transfers enormously. The default is .Li no . .It Ic multiple-cnames If .Li yes , then multiple CNAME resource records will be allowed for a domain name. The default is .Li no . Allowing multiple CNAME records is against standards and is not recommended. Multiple CNAME support is available because previous versions of BIND allowed multiple CNAME records, and these records have been used for load balancing by a number of sites. .It Ic notify If .Li yes (the default), DNS NOTIFY messages are sent when a zone the server is authoritative for changes. The use of NOTIFY speeds convergence between the master and its slaves. Slave servers that receive a NOTIFY message and understand it will contact the master server for the zone and see if they need to do a zone transfer, and if they do, they will initiate it immediately. If .Li explicit , the DNS NOTIFY messages will only be sent to the addresses in the .Ic also-notify list. The .Ic notify option may also be specified in the .Ic zone statement, in which case it overrides the .Ic options notify statement. .It Ic suppress-initial-notify If .Li yes , suppress the initial notify messages when the server first loads. The default is .Li no . .It Ic recursion If .Li yes , and a DNS query requests recursion, then the server will attempt to do all the work required to answer the query. If recursion is not on, the server will return a referral to the client if it doesn't know the answer. The default is .Li yes . See also .Ic fetch-glue above. .It Ic rfc2308-type1 If .Li yes, the server will send NS records along with the SOA record for negative answers. You need to set this to no if you have an old BIND server using you as a forwarder that does not understand negative answers which contain both SOA and NS records or you have an old version of sendmail. The correct fix is to upgrade the broken server or sendmail. The default is .Li no . .It Ic use-id-pool If .Li yes, the server will keep track of its own outstanding query ID's to avoid duplication and increase randomness. This will result in 128KB more memory being consumed by the server. The default is .Li no . .It Ic treat-cr-as-space If .Li yes, the server will treat CR characters the same way it treats a space or tab. This may be necessary when loading zone files on a UNIX system that were generated on an NT or DOS machine. The default is .Li no . .El .Ss Also-Notify .Ic also-notify .Pp Defines a global list of IP addresses that also get sent NOTIFY messages whenever a fresh copy of the zone is loaded. This helps to ensure that copies of the zones will quickly converge on ``stealth'' servers. If an .Ic also-notify list is given in a .Ic zone statement, it will override the .Ic options also-notify statement. When a .Ic zone notify statement is set to .Ic no , the IP addresses in the global .Ic also-notify list will not get sent NOTIFY messages for that zone. The default is the empty list (no global notification list). .Ss Forwarding The forwarding facility can be used to create a large site-wide cache on a few servers, reducing traffic over links to external nameservers. It can also be used to allow queries by servers that do not have direct access to the Internet, but wish to look up exterior names anyway. Forwarding occurs only on those queries for which the server is not authoritative and does not have the answer in its cache. .Bl -tag -width 0n .It Ic forward This option is only meaningful if the .Ic forwarders list is not empty. A value of .Li first , the default, causes the server to query the forwarders first, and if that doesn't answer the question the server will then look for the answer itself. If .Li only is specified, the server will only query the forwarders. .It Ic forwarders Specifies the IP addresses to be used for forwarding. The default is the empty list (no forwarding). .El .Pp Forwarding can also be configured on a per-zone basis, allowing for the global forwarding options to be overridden in a variety of ways. You can set particular zones to use different forwarders, or have different .Ic forward only/first behavior, or to not forward at all. See .Sx THE ZONE STATEMENT section for more information. .Pp Future versions of BIND 8 will provide a more powerful forwarding system. The syntax described above will continue to be supported. .Ss Name Checking The server can check domain names based upon their expected client contexts. For example, a domain name used as a hostname can be checked for compliance with the RFCs defining valid hostnames. .Pp Three checking methods are available: .Bl -tag -width 0n .It Ic ignore No checking is done. .It Ic warn Names are checked against their expected client contexts. Invalid names are logged, but processing continues normally. .It Ic fail Names are checked against their expected client contexts. Invalid names are logged, and the offending data is rejected. .El .Pp The server can check names three areas: master zone files, slave zone files, and in responses to queries the server has initiated. If .Ic check-names response fail has been specified, and answering the client's question would require sending an invalid name to the client, the server will send a .Dv REFUSED response code to the client. .Pp The defaults are: .Bd -literal check-names master fail; check-names slave warn; check-names response ignore; .Ed .Pp .Ic check-names may also be specified in the .Ic zone statement, in which case it overrides the .Ic options check-names statement. When used in a .Ic zone statement, the area is not specified (because it can be deduced from the zone type). .Ss Access Control Access to the server can be restricted based on the IP address of the requesting system or via shared secret keys. See .Sx ADDRESS MATCH LISTS for details on how to specify access criteria. .Bl -tag -width 0n .It Ic allow-query Specifies which hosts are allowed to ask ordinary questions. .Ic allow-query may also be specified in the .Ic zone statement, in which case it overrides the .Ic options allow-query statement. If not specified, the default is to allow queries from all hosts. .Bl -tag -width 0n .It Ic allow-recursion Specifies which hosts are allowed to ask recursive questions. If not specified, the default is to allow recursive queries from all hosts. .It Ic allow-transfer Specifies which hosts are allowed to receive zone transfers from the server. .Ic allow-transfer may also be specified in the .Ic zone statement, in which case it overrides the .Ic options allow-transfer statement. If not specified, the default is to allow transfers from all hosts. .It Ic blackhole Specifies a list of addresses that the server will not accept queries from or use to resolve a query. Queries from these addresses will not be responded to. .El .El .Ss Interfaces The interfaces and ports that the server will answer queries from may be specified using the .Ic listen-on option. .Ic listen-on takes an optional port, and an address match list. The server will listen on all interfaces allowed by the address match list. If a port is not specified, port 53 will be used. .Pp Multiple .Ic listen-on statements are allowed. For example, .Bd -literal listen-on { 5.6.7.8; }; listen-on port 1234 { !1.2.3.4; 1.2/16; }; .Ed .Pp will enable the nameserver on port 53 for the IP address 5.6.7.8, and on port 1234 of an address on the machine in net 1.2 that is not 1.2.3.4. .Pp If no .Ic listen-on is specified, the server will listen on port 53 on all interfaces. .Ss Query Address If the server doesn't know the answer to a question, it will query other nameservers. .Ic query-source specifies the address and port used for such queries. If .Ic address is .Li * or is omitted, a wildcard IP address ( .Dv INADDR_ANY ) will be used. If .Va port is .Li * or is omitted, a random unprivileged port will be used. The default is .Dl query-source address * port *; .Pp Note: .Ic query-source currently applies only to UDP queries; TCP queries always use a wildcard IP address and a random unprivileged port. .Ss Zone Transfers .Bl -tag -width 0n .It Ic max-transfer-time-in Inbound zone transfers ( .Nm named-xfer processes) running longer than this many minutes will be terminated. The default is 120 minutes (2 hours). .It Ic transfer-format The server supports two zone transfer methods. .Li one-answer uses one DNS message per resource record transferred. .Li many-answers packs as many resource records as possible into a message. .Li many-answers is more efficient, but is only known to be understood by BIND 8.1 and patched versions of BIND 4.9.5. The default is .Li one-answer . .Ic transfer-format may be overridden on a per-server basis by using the .Ic server statement. .It Ic transfers-in The maximum number of inbound zone transfers that can be running concurrently. The default value is 10. Increasing .Ic transfers-in may speed up the convergence of slave zones, but it also may increase the load on the local system. .It Ic transfers-out This option will be used in the future to limit the number of concurrent outbound zone transfers. It is checked for syntax, but is otherwise ignored. .It Ic transfers-per-ns The maximum number of inbound zone transfers ( .Nm named-xfer processes) that can be concurrently transferring from a given remote nameserver. The default value is 2. Increasing .Ic transfers-per-ns may speed up the convergence of slave zones, but it also may increase the load on the remote nameserver. .Ic transfers-per-ns may be overridden on a per-server basis by using the .Ic transfers phrase of the .Ic server statement. .It Ic transfer-source .Nm transfer-source determines which local address will be bound to the TCP connection used to fetch all zones transferred inbound by the server. If not set, it defaults to a system controlled value which will usually be the address of the interface ``closest to`` the remote end. This address must appear in the remote end's .Nm allow-transfer option for the zones being transferred, if one is specified. This statement sets the .Nm transfer-source for all zones, but can be overridden on a per-zone basis by including a .Nm transfer-source statement within the zone block in the configuration file. .El .Ss Resource Limits The server's usage of many system resources can be limited. Some operating systems don't support some of the limits. On such systems, a warning will be issued if the unsupported limit is used. Some operating systems don't support limiting resources, and on these systems a .D1 cannot set resource limits on this system message will be logged. .Pp Scaled values are allowed when specifying resource limits. For example, .Li 1G can be used instead of .Li 1073741824 to specify a limit of one gigabyte. .Li unlimited requests unlimited use, or the maximum available amount. .Li default uses the limit that was in force when the server was started. See the definition of .Va size_spec in the .Sx DOCUMENTATION DEFINITIONS section for more details. .Bl -tag -width 0n .It Ic coresize The maximum size of a core dump. The default value is .Li default . .It Ic datasize The maximum amount of data memory the server may use. The default value is .Li default . .It Ic files The maximum number of files the server may have open concurrently. The default value is .Li unlimited . Note that on some operating systems the server cannot set an unlimited value and cannot determine the maximum number of open files the kernel can support. On such systems, choosing .Li unlimited will cause the server to use the larger of the .Va rlim_max from .Fn getrlimit RLIMIT_NOFILE and the value returned by .Fn sysconf _SC_OPEN_MAX . If the actual kernel limit is larger than this value, use .Ic limit files to specify the limit explicitly. .It Ic max-ixfr-log-size The .Li max-ixfr-log-size will be used in a future release of the server to limit the size of the transaction log kept for Incremental Zone Transfer. .It Ic stacksize The maximum amount of stack memory the server may use. The default value is .Li default . .El .Ss Periodic Task Intervals .Bl -tag -width 0n .It Ic cleaning-interval The server will remove expired resource records from the cache every .Ic cleaning-interval minutes. The default is 60 minutes. If set to 0, no periodic cleaning will occur. .It Ic heartbeat-interval The server will perform zone maintenance tasks for all zones marked .Ic dialup yes whenever this interval expires. The default is 60 minutes. Reasonable values are up to 1 day (1440 minutes). If set to 0, no zone maintenance for these zones will occur. .It Ic interface-interval The server will scan the network interface list every .Ic interface-interval minutes. The default is 60 minutes. If set to 0, interface scanning will only occur when the configuration file is loaded. After the scan, listeners will be started on any new interfaces (provided they are allowed by the .Ic listen-on configuration). Listeners on interfaces that have gone away will be cleaned up. .It Ic statistics-interval Nameserver statistics will be logged every .Ic statistics-interval minutes. The default is 60. If set to 0, no statistics will be logged. .El .Ss Topology All other things being equal, when the server chooses a nameserver to query from a list of nameservers, it prefers the one that is topologically closest to itself. The .Ic topology statement takes an address match list and interprets it in a special way. Each top-level list element is assigned a distance. Non-negated elements get a distance based on their position in the list, where the closer the match is to the start of the list, the shorter the distance is between it and the server. A negated match will be assigned the maximum distance from the server. If there is no match, the address will get a distance which is further than any non-negated list element, and closer than any negated element. For example, .Bd -literal topology { 10/8; !1.2.3/24; { 1.2/16; 3/8; }; }; .Ed .Pp will prefer servers on network 10 the most, followed by hosts on network 1.2.0.0 (netmask 255.255.0.0) and network 3, with the exception of hosts on network 1.2.3 (netmask 255.255.255.0), which is preferred least of all. .Pp The default topology is .Dl topology { localhost; localnets; }; .Ss Resource Record sorting When returning multiple RRs, the nameserver will normally return them in .Ic Round Robin , i.e. after each request, the first RR is put to the end of the list. As the order of RRs is not defined, this should not cause any problems. .Pp The client resolver code should re-arrange the RRs as appropriate, i.e. using any addresses on the local net in preference to other addresses. However, not all resolvers can do this, or are not correctly configured. .Pp When a client is using a local server, the sorting can be performed in the server, based on the client's address. This only requires configuring the nameservers, not all the clients. .Pp The .Ic sortlist statement takes an address match list and interprets it even more specially than the .Ic topology statement does. .Pp Each top level statement in the sortlist must itself be an explicit address match list with one or two elements. The first element (which may be an IP address, an IP prefix, an ACL name or nested address match list) of each top level list is checked against the source address of the query until a match is found. .Pp Once the source address of the query has been matched, if the top level statement contains only one element, the actual primitive element that matched the source address is used to select the address in the response to move to the beginning of the response. If the statement is a list of two elements, the second element is treated like the address match list in a topology statement. Each top level element is assigned a distance and the address in the response with the minimum distance is moved to the beginning of the response. .Pp In the following example, any queries received from any of the addresses of the host itself will get responses preferring addresses on any of the locally connected networks. Next most preferred are addresses on the 192.168.1/24 network, and after that either the 192.168.2/24 or 192.168.3/24 network with no preference shown between these two networks. Queries received from a host on the 192.168.1/24 network will prefer other addresses on that network to the 192.168.2/24 and 192.168.3/24 networks. Queries received from a host on the 192.168.4/24 or the 192.168.5/24 network will only prefer other addresses on their directly connected networks. .Bd -literal sortlist { { localhost; // IF the local host { localnets; // THEN first fit on the 192.168.1/24; // following nets { 192,168.2/24; 192.168.3/24; }; }; }; { 192.168.1/24; // IF on class C 192.168.1 { 192.168.1/24; // THEN use .1, or .2 or .3 { 192.168.2/24; 192.168.3/24; }; }; }; { 192.168.2/24; // IF on class C 192.168.2 { 192.168.2/24; // THEN use .2, or .1 or .3 { 192.168.1/24; 192.168.3/24; }; }; }; { 192.168.3/24; // IF on class C 192.168.3 { 192.168.3/24; // THEN use .3, or .1 or .2 { 192.168.1/24; 192.168.2/24; }; }; }; { { 192.168.4/24; 192.168.5/24; }; // if .4 or .5, prefer that net }; }; .Ed .Pp The following example will give reasonable behavior for the local host and hosts on directly connected networks. It is similar to the behavior of the address sort in BIND 4.9.x. Responses sent to queries from the local host will favor any of the directly connected networks. Responses sent to queries from any other hosts on a directly connected network will prefer addresses on that same network. Responses to other queries will not be sorted. .Bd -literal sortlist { { localhost; localnets; }; { localnets; }; }; .Ed .Ss RRset Ordering When multiple records are returned in an answer it may be useful to configure the order the records are placed into the response. For example the records for a zone might be configured to always be returned in the order they are defined in the zone file. Or perhaps a random shuffle of the records as they are returned is wanted. The rrset-order statement permits configuration of the ordering made of the records in a multiple record response. The default, if no ordering is defined, is a cyclic ordering (round robin). .Pp An .Ic order_spec is defined as follows: .Bd -literal [ \fIclass class_name\fR ][ \fItype type_name\fR ][ \fIname\fR "FQDN" ] \fIorder\fR ordering .Ed .Pp If no class is specified, the default is .Ic ANY . If no .Li Ictype is specified, the default is .Ic ANY . If no name is specified, the default is "*". .Pp The legal values for .Ic ordering are: .Bl -tag -width indent .It Ic fixed Records are returned in the order they are defined in the zone file. .It Ic random Records are returned in some random order. .It Ic cyclic Records are returned in a round-robin order. .El .Pp For example: .Bd -literal rrset-order { class IN type A name "rc.vix.com" order random; order cyclic; }; .Ed .Pp will cause any responses for type A records in class IN that have "rc.vix.com" as a suffix, to always be returned in random order. All other records are returned in cyclic order. .Pp If multiple .Ic rrset-order statements appear, they are not combined--the last one applies. .Pp If no .Ic rrset-order statement is specified, a default one of: .Bd -literal rrset-order { class ANY type ANY name "*" order cyclic ; }; .Ed .Pp is used. .Ss Glue Ordering When running a root nameserver it is sometimes necessary to ensure that other nameservers that are priming are successful. This requires that glue A records for at least of the nameservers are returned in the answer to a priming query. This can be achieved by setting .Ic preferred-glue A; which will add A records before other types in the additional section. .Ss EDNS Some firewalls fail to pass EDNS/UDP messages that are larger than certain size, 512 or the UDP reassembly buffer. To allow EDNS to work across such firewalls it is necessary to advertise a EDNS buffer size that is small enough to not trigger failures. .Ic edns-udp-size can be use to adjust the advertised size. Values less than 512 will be increased to 512 and values greater than 4096 will be truncated to 4096. .Ss Tuning .Bl -tag -width 0n .It Ic lame-ttl Sets the number of seconds to cache a lame server indication. 0 disables caching. Default is 600 (10 minutes). Maximum value is 1800 (30 minutes) .It Ic max-ncache-ttl To reduce network traffic and increase performance the server store negative answers. .Ic max-ncache-ttl is used to set a maximum retention time for these answers in the server is seconds. The default .Ic max-ncache-ttl is 10800 seconds (3 hours). .Ic max-ncache-ttl cannot exceed the maximum retention time for ordinary (positive) answers (7 days) and will be silently truncated to 7 days if set to a value which is greater that 7 days. .It Ic min-roots The minimum number of root servers that is required for a request for the root servers to be accepted. Default is 2. .El .Sh THE ZONE STATEMENT .Ss Syntax .Bd -literal zone \fIdomain_name\fR [ ( in | hs | hesiod | chaos ) ] { type master; file \fIpath_name\fR; [ check-names ( warn | fail | ignore ); ] [ allow-update { \fIaddress_match_list\fR }; ] [ allow-query { \fIaddress_match_list\fR }; ] [ allow-transfer { \fIaddress_match_list\fR }; ] [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] [ dialup \fIyes_or_no\fR; ] [ notify ( \fIyes_or_no\fR | explicit ); ] [ also-notify { \fIip_addr\fR; [ \fIip_addr\fR; ... ] }; [ pubkey \fInumber\fR \fInumber\fR \fInumber\fR \fIstring\fR; ] }; .Pp zone \fIdomain_name\fR [ ( in | hs | hesiod | chaos ) ] { type ( slave | stub ); [ file \fIpath_name\fR; ] masters [ port \fIip_port\fR ] { \fIip_addr\fR [ key \fIkey_id\fR ]; [ ... ] }; [ check-names ( warn | fail | ignore ); ] [ allow-update { \fIaddress_match_list\fR }; ] [ allow-query { \fIaddress_match_list\fR }; ] [ allow-transfer { \fIaddress_match_list\fR }; ] [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] [ transfer-source \fIip_addr\fR; ] [ max-transfer-time-in \fInumber\fR; ] [ notify \fIyes_or_no\fR; ] [ also-notify { \fIip_addr\fR; [ \fIip_addr\fR; ... ] }; [ pubkey \fInumber\fR \fInumber\fR \fInumber\fR \fIstring\fR; ] }; .Pp zone \fIdomain_name\fR [ ( in | hs | hesiod | chaos ) ] { type forward; [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] [ check-names ( warn | fail | ignore ); ] }; .Pp zone \&".\&" [ ( in | hs | hesiod | chaos ) ] { type hint; file \fIpath_name\fR; [ check-names ( warn | fail | ignore ); ] }; .Ed .Ss Definition and Usage The .Ic zone statement is used to define how information about particular DNS zones is managed by the server. There are five different zone types. .Bl -tag -width 0n .It Ic master The server has a master copy of the data for the zone and will be able to provide authoritative answers for it. .It Ic slave A .Ic slave zone is a replica of a master zone. The .Ic masters list specifies one or more IP addresses that the slave contacts to update its copy of the zone. If a .Ic port is specified then checks to see if the zone is current and zone transfers will be done to the port given. If .Ic file is specified, then the replica will be written to the named file. Use of the .Ic file clause is highly recommended, since it often speeds server startup and eliminates a needless waste of bandwidth. .It Ic stub A .Ic stub zone is like a slave zone, except that it replicates only the NS records of a master zone instead of the entire zone. .It Ic forward A .Ic forward zone is used to direct all queries in it to other servers, as described in .Sx THE OPTIONS STATEMENT section. The specification of options in such a zone will override any global options declared in the .Ic options statement. .Pp If either no .Ic forwarders clause is present in the zone or an empty list for .Ic forwarders is given, then no forwarding will be done for the zone, canceling the effects of any .Ic forwarders in the .Ic options statement. Thus if you want to use this type of zone to change only the behavior of the global .Ic forward option, and not the servers used, then you also need to re-specify the global forwarders. .It Ic hint The initial set of root nameservers is specified using a .Ic hint zone. When the server starts up, it uses the root hints to find a root nameserver and get the most recent list of root nameservers. .El .Pp Note: previous releases of BIND used the term .Ic primary for a master zone, .Ic secondary for a slave zone, and .Ic cache for a hint zone. .Ss Classes The zone's name may optionally be followed by a class. If a class is not specified, class .Ic in (for "internet"), is assumed. This is correct for the vast majority of cases. .Pp The .Ic hesiod class is for an information service from MIT's Project Athena. It is used to share information about various systems databases, such as users, groups, printers and so on. More information can be found at ftp://athena-dist.mit.edu/pub/ATHENA/usenix/athena_changes.PS. The keyword .Ic hs is a synonym for .Ic hesiod . .Pp Another MIT development was CHAOSnet, a LAN protocol created in the mid-1970s. It is still sometimes seen on LISP stations and other hardware in the AI community, and zone data for it can be specified with the .Ic chaos class. .Ss Options .Bl -tag -width 0n .It Ic check-names See the subsection on .Sx Name Checking in .Sx THE OPTIONS STATEMENT . .It Ic allow-query See the description of .Ic allow-query in the .Sx Access Control subsection of .Sx THE OPTIONS STATEMENT . .It Ic allow-update Specifies which hosts are allowed to submit Dynamic DNS updates to the server. The default is to deny updates from all hosts. .It Ic allow-transfer See the description of .Ic allow-transfer in the .Sx Access Control subsection of .Sx THE OPTIONS STATEMENT . .It Ic transfer-source .Ic transfer-source determines which local address will be bound to the TCP connection used to fetch this zone. If not set, it defaults to a system controlled value which will usually be the address of the interface ``closest to'' the remote end. This address must appear in the remote end's .Ic allow-transfer option for this zone if one is specified. .It Ic max-transfer-time-in See the description of .Ic max-transfer-time-in in the .Sx Zone Transfers subsection of .Sx THE OPTIONS STATEMENT . .It Ic dialup See the description of .Ic dialup in the .Sx Boolean Options subsection of .Sx THE OPTIONS STATEMENT . .It Ic notify See the description of .Sx notify in the .Sx Boolean Options subsection of the .Sx THE OPTIONS STATEMENT . .It Ic also-notify .Ic also-notify is only meaningful if .Ic notify is active for this zone. The set of machines that will receive a DNS NOTIFY message for this zone is made up of all the listed nameservers for the zone (other than the primary master) plus any IP addresses specified with .Ic also-notify . .Ic also-notify is not meaningful for .Ic stub zones. The default is the empty list. .It Ic forward .Ic forward is only meaningful if the zone has a .Ic forwarders list. The .Ic only value causes the lookup to fail after trying the .Ic forwarders and getting no answer, while .Ic first would allow a normal lookup to be tried. .It Ic forwarders The .Ic forwarders option in a zone is used to override the list of global forwarders. If it is not specified in a zone of type .Ic forward , .Em no forwarding is done for the zone; the global options are not used. .It Ic pubkey The DNSSEC flags, protocol, and algorithm are specified, as well as a base-64 encoded string representing the key. .El .Sh THE ACL STATEMENT .Ss Syntax .Bd -literal acl \fIname\fR { \fIaddress_match_list\fR }; .Ed .Ss Definition and Usage The .Ic acl statement creates a named address match list. It gets its name from a primary use of address match lists: Access Control Lists (ACLs). .Pp Note that an address match list's name must be defined with .Ic acl before it can be used elsewhere; no forward references are allowed. .Pp The following ACLs are built-in: .Bl -tag -width 0n .It Ic any Allows all hosts. .It Ic none Denies all hosts. .It Ic localhost Allows the IP addresses of all interfaces on the system. .It Ic localnets Allows any host on a network for which the system has an interface. .El .Sh THE KEY STATEMENT .Ss Syntax .Bd -literal key \fIkey_id\fR { algorithm \fIalgorithm_id\fR; secret \fIsecret_string\fR; }; .Ed .Ss Definition and Usage The .Ic key statement defines a key ID which can be used in a .Ic server statement to associate a method of authentication with a particular name server that is more rigorous than simple IP address matching. A key ID must be created with the .Ic key statement before it can be used in a .Ic server definition or an address match list. .Pp The .Va algorithm_id is a string that specifies a security/authentication algorithm. .Va secret_string is the secret to be used by the algorithm, and is treated as a base-64 encoded string. It should go without saying, but probably can't, that if you have .Va secret_string 's in your .Pa named.conf , then it should not be readable by anyone but the superuser. .Sh THE TRUSTED-KEYS STATEMENT .Ss Syntax .Bd -literal trusted-keys { [ \fIdomain_name\fR \fIflags\fR \fIprotocol\fR \fIalgorithm\fR \fIkey\fR; ] }; .Ed .Ss Definition and Usage The .Ic trusted-keys statement is for use with DNSSEC-style security, originally specified in RFC 2065. DNSSEC is meant to provide three distinct services: key distribution, data origin authentication, and transaction and request authentication. A complete description of DNSSEC and its use is beyond the scope of this document, and readers interested in more information should start with RFC 2065 and then continue with the Internet Drafts available at http://www.ietf.org/ids.by.wg/dnssec.html. .Pp Each trusted key is associated with a domain name. Its attributes are the non-negative integral .Va flags , .Va protocol , and .Va algorithm , as well as a base-64 encoded string representing the .Va key . .Pp Any number of trusted keys can be specified. .Sh THE SERVER STATEMENT .Ss Syntax .Bd -literal server \fIip_addr\fR { [ edns \fIyes_or_no\fR; ] [ bogus \fIyes_or_no\fR; ] [ support-ixfr \fIyes_or_no\fR; ] [ transfers \fInumber\fR; ] [ transfer-format ( one-answer | many-answers ); ] [ keys { \fIkey_id\fR [ \fIkey_id\fR ... ] }; ] }; .Ed .Ss Definition and Usage The server statement defines the characteristics to be associated with a remote name server. .Pp If you discover that a server does not support EDNS you can prevent named making EDNS queries to it by specifying .Ic edns .Ic no; . The default value of .Ic edns is .Ic yes . .Pp If you discover that a server is giving out bad data, marking it as .Ic bogus will prevent further queries to it. The default value of .Ic bogus is .Li no . .Pp If the server supports IXFR you can tell named to attempt to perform a IXFR style zone transfer by specifying .Ic support-ixfr .Li yes . The default value of .Ic support-ixfr is .Li no . .Pp The server supports two zone transfer methods. The first, .Ic one-answer , uses one DNS message per resource record transferred. .Ic many-answers packs as many resource records as possible into a message. .Ic many-answers is more efficient, but is only known to be understood by BIND 8.1 and patched versions of BIND 4.9.5. You can specify which method to use for a server with the .Ic transfer-format option. If .Ic transfer-format is not specified, the .Ic transfer-format specified by the .Ic options statement will be used. .Pp The .Ic transfers will be used in a future release of the server to limit the number of concurrent in-bound zone transfers from the specified server. It is checked for syntax but is otherwise ignored. .Pp The .Ic keys clause is used to identify a .Va key_id defined by the .Ic key statement, to be used for transaction security when talking to the remote server. The .Ic key statement must come before the .Ic server statement that references it. .Pp The .Ic keys statement is intended for future use by the server. It is checked for syntax but is otherwise ignored. .Sh THE CONTROLS STATEMENT .Ss Syntax .Bd -literal controls { [ inet \fIip_addr\fR port \fIip_port\fR allow { \fIaddress_match_list\fR; }; ] [ unix \fIpath_name\fR perm \fInumber\fR owner \fInumber\fR group \fInumber\fR; ] }; .Ed .Ss Definition and Usage The .Ic controls statement declares control channels to be used by system administrators to affect the operation of the local name server. These control channels are used by the .Nm ndc utility to send commands to and retrieve non-DNS results from a name server. .Pp A .Ic unix control channel is a FIFO in the file system, and access to it is controlled by normal file system permissions. It is created by .Nm named with the specified file mode bits (see .Xr chmod 1 ) , user and group owner. Note that, unlike .Nm chmod , the mode bits specified for .Ic perm will normally have a leading .Li 0 so the number is interpreted as octal. Also note that the user and group ownership specified as .Ic owner and .Ic group must be given as numbers, not names. It is recommended that the permissions be restricted to administrative personnel only, or else any user on the system might be able to manage the local name server. .Pp An .Ic inet control channel is a TCP/IP socket accessible to the Internet, created at the specified .Va ip_port on the specified .Va ip_addr . Modern .Nm telnet clients are capable of speaking directly to these sockets, and the control protocol is ARPANET-style text. It is recommended that 127.0.0.1 be the only .Va ip_addr used, and this only if you trust all non-privileged users on the local host to manage your name server. .Sh THE INCLUDE STATEMENT .Ss Syntax .Bd -literal include \fIpath_name\fR; .Ed .Ss Definition and Usage The .Ic include statement inserts the specified file at the point that the .Ic include statement is encountered. It cannot be used within another statement, though, so a line such as .Dl acl internal_hosts { include "internal_hosts.acl"; }; is not allowed. .Pp Use .Ic include to break the configuration up into easily-managed chunks. For example: .Bd -literal include "/etc/security/keys.bind"; include "/etc/acls.bind"; .Ed .Pp could be used at the top of a BIND configuration file in order to include any ACL or key information. .Pp Be careful not to type ``#include'', like you would in a C program, because ``#'' is used to start a comment. .Sh EXAMPLES The simplest configuration file that is still realistically useful is one which simply defines a hint zone that has a full path to the root servers file. .Bd -literal zone \&".\&" in { type hint; file \&"/var/named/root.cache\&"; }; .Ed .Pp Here's a more typical real-world example. .Bd -literal /* * A simple BIND 8 configuration */ .Pp logging { category lame-servers { null; }; category cname { null; }; }; .Pp options { directory \&"/var/named\&"; }; .Pp controls { inet * port 52 allow { any; }; // a bad idea unix \&"/var/run/ndc\&" perm 0600 owner 0 group 0; // the default }; .Pp zone \&"isc.org\&" in { type master; file \&"master/isc.org\&"; }; .Pp zone \&"vix.com\&" in { type slave; file \&"slave/vix.com\&"; masters { 10.0.0.53; }; }; .Pp zone \&"0.0.127.in-addr.arpa\&" in { type master; file \&"master/127.0.0\&"; }; .Pp zone \&".\&" in { type hint; file \&"root.cache\&"; }; .Ed .Sh FILES .Bl -tag -width 0n -compact .It Pa /etc/named.conf The BIND 8 .Nm named configuration file. .El .Sh SEE ALSO .Xr named 8 , .Xr ndc 8 @ 1.13 log @sync w/ 8.3.5 @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.12 2003/04/06 19:39:46 wiz Exp $ @ 1.12 log @It is spelled ARPANET. Igor Sobrado, PR 19691. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.11 2003/03/31 17:54:04 perry Exp $ d772 1 d1558 10 @ 1.11 log @Spelling errors, some from Igor Sobrado in PR misc/19909 XXX These need to be fed back to ISC somehow @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.10 2003/03/15 19:24:21 wiz Exp $ d2040 1 a2040 1 sockets, and the control protocol is ARPAnet-style text. @ 1.10 log @Correct spelling of "overridden". Found in follow-up to PR 20718. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.9 2002/12/21 13:30:51 wiz Exp $ d177 1 a177 1 can be used as a placeholder to select a random high-numbered port. d788 1 a788 1 in class chaos to the anycast server and geting back a unique name. d1477 1 a1477 1 The following example will give reasonable behaviour for the local host and d1670 1 a1670 1 is given, then no forwarding will be done for the zone, cancelling the d1679 1 a1679 1 option, and not the servers used, then you also need to respecify the d1934 1 a1934 1 perform a IXFR style zone transfer by specifing @ 1.9 log @Misc typo fixes from Adrian Mrva. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.8 2002/11/17 14:09:53 itojun Exp $ d1290 1 a1290 1 for all zones, but can be overriden on a per-zone basis by including a @ 1.8 log @sync with bind 8.3.4. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.7 2002/06/20 12:01:50 itojun Exp $ d959 1 a959 1 is order dependant. d973 1 a973 1 a IXFR database file is kept for all dynamicaly updated zones. d1290 1 a1290 1 for all zones, but can be overriden on a per-zone basis by includinga d1976 1 a1976 1 statememnt must come before the @ 1.7 log @correct conflicts. sync document with reality (dig/host/nslookup now does IPv6 transport!) @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.6 2002/06/20 11:43:09 itojun Exp $ d670 2 d865 8 a872 5 .Li yes . Do not turn off .Ic auth-nxdomain unless you are sure you know what you are doing, as some older software won't like it. @ 1.6 log @sync with 8.3.2. 99% of conflicts were due to $NetBSD$ tag. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.1.1.3 2002/06/20 10:29:17 itojun Exp $ a1426 3 <<<<<<< named.conf.5 .Ic topology ======= a1427 1 >>>>>>> 1.1.1.3 @ 1.5 log @Fn argument doesn't need (), add space between macro name and argument. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.4 2001/06/05 11:13:41 wiz Exp $ a16 1 a19 1 a23 1 a24 1 a30 1 a31 1 a35 1 d38 1 a38 1 .Bl -tag -width 1 a40 1 a43 1 a45 1 a47 1 a49 1 a52 1 a54 1 a58 1 a60 1 d62 1 a62 1 d70 1 a70 1 d74 1 a74 1 d83 1 a83 1 a86 1 d93 1 a93 1 a100 1 d106 1 a106 1 a111 1 d117 2 a118 2 .Em WARNING: a124 1 a125 2 .Pp a129 1 a130 1 d134 1 a134 2 .Bl -tag -width 1 a140 1 a150 1 a157 1 a160 1 a163 1 d165 1 a165 1 An IP address in with exactly four elements in a167 1 a177 1 a193 1 a196 1 a201 1 a208 1 a216 1 a233 1 a239 1 a251 1 a252 1 a254 1 d257 1 a257 1 a261 1 a262 1 a269 1 a295 1 a307 1 a314 1 a322 1 a336 1 a345 1 a356 1 a358 1 d370 1 a370 1 d377 1 a377 1 a383 1 a384 1 a393 1 a401 1 d410 1 a410 1 d421 1 a421 2 you ever do need want the parser's messages relocated. a422 1 a424 1 a434 1 a440 1 a446 1 a455 1 a471 1 a478 1 a491 1 a499 1 a522 1 a542 1 d549 1 a549 1 a555 1 a574 1 a577 1 a579 1 .Nm named 's d582 1 a582 2 .Sx The category phrase. d588 1 a588 1 d595 1 a595 1 d602 1 a602 1 d607 1 a607 1 a610 1 a611 1 a619 1 d623 1 a623 1 a626 1 d635 1 a635 1 a638 1 d643 1 a643 1 d645 1 a645 2 .Bl -tag -width 1 a651 1 a653 1 a655 1 a657 1 a659 1 a661 1 a667 1 a669 1 a671 1 a673 1 a675 1 a677 1 a682 1 a687 1 a689 1 a691 1 a693 1 a695 1 a697 1 a699 1 a701 1 a706 1 a707 1 a709 1 d712 1 d729 2 a730 1 [ notify \fIyes_or_no\fR; ] d738 1 a738 1 [ check-names ( master | slave | response ) ( warn | fail | ignore); ] d767 3 a769 2 [ sortlist { \fIaddress_match_list|fR }; ] [ rrset-order { \fIorder_spec\fR ; [ \fIorder_spec\fR ; ... [ [ }; a771 1 a772 1 d779 10 a788 5 .Ss Pathnames .Bl -tag -width 1 d793 2 a794 1 in class chaos. The default is the real version number of ths server, d798 3 a800 1 d809 1 a809 1 .Pa . , a811 1 a817 1 a825 1 a833 1 a842 1 a851 1 d853 1 a853 2 .Bl -tag -width 1 a867 1 a878 1 a899 1 a910 1 a919 1 a926 1 a937 1 d942 2 a943 2 .Ic auth-nxdomain yes ;, .Ic maintain-ixfr-base yes ;, d946 2 a947 1 . The use of a954 1 d961 1 a961 1 .Em Note: a964 7 .It IC host-statistics-max The maximum number of host records that will be kept. When this limit is reached no new hosts will be added to the host statistics. If the set to zero then there is no limit set. The default value is zero. a972 1 a982 1 d991 7 a997 1 if they do, they will initiate it immediately. The d1004 6 a1009 1 a1020 1 a1029 1 a1036 1 a1043 2 a1044 1 a1045 1 d1047 1 a1047 1 a1064 1 a1065 2 .Pp d1072 1 a1072 2 .Bl -tag -width 1 a1083 1 a1087 1 a1097 1 a1100 1 a1101 1 a1104 1 d1107 1 a1107 2 .Bl -tag -width 1 a1109 1 a1112 1 a1116 1 a1125 1 a1127 1 a1132 1 a1142 1 a1143 2 .Pp d1148 1 a1148 2 .Bl -tag -width 1 d1158 1 a1158 2 .Bl -tag -width 1 a1162 1 a1172 1 a1178 1 a1179 2 .Pp a1187 1 a1191 1 d1196 1 a1196 1 a1199 1 a1204 1 a1205 2 .Pp a1222 1 a1228 1 d1230 1 a1230 2 .Bl -tag -width 1 a1236 1 a1252 1 a1258 1 a1262 1 a1276 1 a1288 1 a1289 2 .Pp a1297 1 d1316 1 a1316 2 .Bl -tag -width 1 a1319 1 a1323 1 a1342 1 a1347 1 a1351 1 d1353 1 a1353 2 .Bl -tag -width 1 a1355 1 a1358 1 a1364 1 a1374 1 a1379 1 a1380 2 .Pp a1393 1 d1401 1 a1401 1 a1405 1 a1408 1 a1409 2 .Pp d1414 1 a1414 1 d1418 1 a1418 1 d1422 1 a1422 1 d1427 1 d1429 3 d1433 1 a1433 1 d1438 1 a1438 1 d1446 1 a1446 1 a1455 1 d1475 1 a1475 1 a1481 1 a1487 1 a1488 2 .Pp d1496 1 a1496 1 a1499 1 d1503 1 a1503 1 d1511 1 a1511 1 d1515 10 a1524 1 a1525 9 .Ic fixed Records are returned in the order they are defined in the zone file. .Ic random Records are returned in some random order. .Ic cyclic Records are returned in a round-robin order. For example: d1531 1 a1531 1 d1535 1 a1535 1 d1539 1 a1539 1 a1542 1 d1546 1 a1546 1 d1548 8 a1555 1 d1557 1 a1557 2 .Bl -tag -width 1 a1576 1 a1578 1 d1590 1 a1590 1 [ notify \fIyes_or_no\fR; ] d1594 1 a1594 1 d1598 1 a1598 1 masters [ port \fIip_port\fR ] { \fIip_addr\fR; [ \fIip_addr\fR; ... ] }; d1611 1 a1611 1 d1618 1 a1618 1 a1624 1 a1625 1 d1630 1 a1630 2 .Bl -tag -width 1 a1633 1 a1649 1 a1654 1 a1663 1 a1679 1 a1685 1 a1693 1 a1694 1 a1699 1 a1710 1 a1717 1 d1719 1 a1719 2 .Bl -tag -width 1 a1724 1 a1731 1 a1734 1 a1741 1 a1749 1 a1756 1 a1763 1 a1770 1 a1783 1 a1794 1 a1802 1 a1806 1 a1808 1 a1813 1 a1814 1 a1819 1 a1824 1 d1827 1 a1827 2 .Bl -tag -width 1 a1836 1 a1838 1 a1844 1 a1845 1 a1856 1 a1870 1 a1872 1 a1877 1 a1878 1 a1888 1 a1897 1 a1899 1 a1901 1 d1904 1 d1906 1 a1911 1 a1912 1 d1915 9 a1923 1 d1931 9 a1939 6 Marking a server as .Ic bogus will mark all other addresses for that server as .Ic bogus when a match is made when looking up a server's address by name. a1957 1 a1963 1 a1977 1 a1982 1 a1984 1 a1995 1 a1996 1 a2004 1 a2027 1 a2043 1 a2045 1 a2048 1 a2049 1 a2057 1 a2062 1 d2067 1 a2067 1 a2069 1 a2073 1 a2074 1 d2084 1 a2084 1 a2085 1 d2090 1 a2090 1 d2095 1 a2095 1 d2099 1 a2099 1 d2104 1 a2104 1 d2109 1 a2109 1 d2115 1 a2115 1 d2120 1 a2120 1 a2125 1 d2127 1 a2127 1 .Bl -tag -width 1 -compact a2132 1 @ 1.5.2.1 log @Pull up revisions 1.6-1.7 (requested by itojun in ticket #387): Update to BIND 8.3.3. Fixes buffer overrun in resolver code. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.7 2002/06/20 12:01:50 itojun Exp $ d17 1 d21 1 d26 1 d28 1 d35 1 d37 1 d42 1 d45 1 a45 1 .Bl -tag -width 0n d48 1 d52 1 d55 1 d58 1 d61 1 d65 1 d68 1 d73 1 d76 1 d78 1 a78 1 .Pp d86 1 a86 1 .Pp d90 1 a90 1 .Pp d99 1 a99 1 .Pp d103 1 d110 1 a110 1 .Pp d118 1 d124 1 a124 1 .Pp d130 1 d136 2 a137 2 .Pp .Em WARNING : d144 1 d146 2 d152 1 d154 1 d158 2 a159 1 .Bl -tag -width 0n d166 1 d177 1 d185 1 d189 1 d193 1 d195 1 a195 1 An IP address with exactly four elements in d198 1 d209 1 d226 1 d230 1 d236 1 d244 1 d253 1 d271 1 d278 1 d291 1 d293 1 d296 1 d299 1 a299 1 .Pp d304 1 d306 1 d314 1 d341 1 d354 1 d362 1 d371 1 d386 1 d396 1 d408 1 d411 1 d423 1 a423 1 .Pp d430 1 a430 1 .Pp d437 1 d439 1 d449 1 d458 1 d467 1 a467 1 .Pp d478 2 a479 1 you ever do want the parser's messages relocated. d481 1 d484 1 d495 1 d502 1 d509 1 d519 1 d536 1 d544 1 d558 1 d567 1 d591 1 d612 1 d619 1 a619 1 .Pp d626 1 d646 1 d650 1 d653 1 d656 2 a657 1 .Sx The category phrase . d663 1 a663 1 .Pp d670 1 a670 1 .Pp d677 1 a677 1 .Pp d682 1 a682 1 .Pp d686 1 d688 1 d697 1 d701 1 a701 1 .Pp d705 1 d714 1 a714 1 .Pp d718 1 d723 1 a723 1 .Pp d725 2 a726 1 .Bl -tag -width 0n d733 1 d736 1 d739 1 d742 1 d745 1 d748 1 d755 1 d758 1 d761 1 d764 1 d767 1 d770 1 d776 1 d782 1 d785 1 d788 1 d791 1 d794 1 d797 1 d800 1 d803 1 d809 1 d811 1 d814 1 a816 1 [ hostname \fIhostname_string\fR; ] d833 1 a833 2 [ notify ( \fIyes_or_no\fR | explicit ); ] [ suppress-initial-notify \fIyes_or_no\fR; ] d841 1 a841 1 [ check-names ( master | slave | response ) ( warn | fail | ignore ); ] d870 2 a871 3 [ sortlist { \fIaddress_match_list\fR }; ] [ rrset-order { \fIorder_spec\fR ; [ \fIorder_spec\fR ; ... ] }; ] [ preferred-glue ( A | AAAA ); ] d874 1 d876 1 d883 5 a887 10 .Ss Server Information .Bl -tag -width 0n .It Ic hostname This defaults to the hostname of the machine hosting the nameserver as found by gethostname(). Its prime purpose is to be able to identify which of a number of anycast servers is actually answering your queries by sending a txt query for .Pa hostname.bind in class chaos to the anycast server and geting back a unique name. Setting the hostname to a empty string ("") will disable processing of the queries. d892 1 a892 2 in class chaos. The default is the real version number of the server, d896 1 a896 3 .El .Ss Pathnames .Bl -tag -width 0n d905 1 a905 1 .Pa \&. , d908 1 d915 1 d924 1 d933 1 d943 1 d953 1 d955 2 a956 1 .Bl -tag -width 0n d971 1 d983 1 d1005 1 d1017 1 d1027 1 d1035 1 d1047 1 d1052 2 a1053 2 .Ic auth-nxdomain yes ; , .Ic maintain-ixfr-base yes ; , d1056 1 a1056 2 .Pp The use of d1064 1 d1071 1 a1071 1 .Em Note : d1075 7 d1090 1 d1101 1 d1110 1 a1110 7 if they do, they will initiate it immediately. If .Li explicit , the DNS NOTIFY messages will only be sent to the addresses in the .Ic also-notify list. The d1117 1 a1117 6 .It Ic suppress-initial-notify If .Li yes , suppress the initial notify messages when the server first loads. The default is .Li no . d1129 1 d1139 1 d1147 1 d1155 2 d1158 1 d1160 1 d1162 1 a1162 1 .Pp d1180 1 d1182 2 d1190 2 a1191 1 .Bl -tag -width 0n d1203 1 d1208 1 d1219 1 d1223 1 d1225 1 d1229 1 d1232 2 a1233 1 .Bl -tag -width 0n d1236 1 d1240 1 d1245 1 d1255 1 d1258 1 d1264 1 d1275 1 d1277 2 d1283 2 a1284 1 .Bl -tag -width 0n d1294 2 a1295 1 .Bl -tag -width 0n d1300 1 d1311 1 d1318 1 d1320 2 d1330 1 d1335 1 d1340 1 a1340 1 .Pp d1344 1 d1350 1 d1352 2 d1371 1 d1378 1 d1380 2 a1381 1 .Bl -tag -width 0n d1388 1 d1405 1 d1412 1 d1417 1 d1432 1 d1445 1 d1447 2 d1457 1 d1476 2 a1477 1 .Bl -tag -width 0n d1481 1 d1486 1 d1506 1 d1512 1 d1517 1 d1519 2 a1520 1 .Bl -tag -width 0n d1523 1 d1527 1 d1534 1 d1545 1 d1551 1 d1553 2 d1568 1 d1576 1 a1576 1 .Pp d1581 1 d1585 1 d1587 2 d1593 1 a1593 1 .Pp d1597 1 a1597 1 .Pp d1601 1 a1601 1 .Pp d1606 1 a1606 1 .Ic topology d1608 1 a1608 1 .Pp d1613 1 a1613 1 .Pp d1621 1 a1621 1 .Pp d1631 1 d1651 1 a1651 1 .Pp d1658 1 d1665 1 d1667 2 d1676 1 a1676 1 .Pp d1680 1 d1684 1 a1684 1 .Pp d1692 1 a1692 1 .Pp d1696 9 a1704 9 .Bl -tag -width indent .It Ic fixed Records are returned in the order they are defined in the zone file. .It Ic random Records are returned in some random order. .It Ic cyclic Records are returned in a round-robin order. .El .Pp d1706 1 a1706 1 .Bd -literal d1712 1 a1712 1 .Pp d1716 1 a1716 1 .Pp d1720 1 a1720 1 .Pp d1724 1 d1728 1 a1728 1 .Pp d1730 1 a1730 8 .Ss Glue Ordering When running a root nameserver it is sometimes necessary to ensure that other nameservers that are priming are successful. This requires that glue A records for at least of the nameservers are returned in the answer to a priming query. This can be achieved by setting .Ic preferred-glue A; which will add A records before other types in the additional section. d1732 2 a1733 1 .Bl -tag -width 0n d1753 1 d1756 1 d1768 1 a1768 1 [ notify ( \fIyes_or_no\fR | explicit ); ] d1772 1 a1772 1 .Pp d1776 1 a1776 1 masters [ port \fIip_port\fR ] { \fIip_addr\fR [ key \fIkey_id\fR ]; [ ... ] }; d1789 1 a1789 1 .Pp d1796 1 a1796 1 .Pp d1803 1 d1805 1 d1810 2 a1811 1 .Bl -tag -width 0n d1815 1 d1832 1 d1838 1 d1848 1 d1865 1 d1872 1 d1881 1 d1883 1 d1889 1 d1901 1 d1909 1 d1911 2 a1912 1 .Bl -tag -width 0n d1918 1 d1926 1 d1930 1 d1938 1 d1947 1 d1955 1 d1963 1 d1971 1 d1985 1 d1997 1 d2006 1 d2011 1 d2014 1 d2020 1 d2022 1 d2028 1 d2034 1 d2037 2 a2038 1 .Bl -tag -width 0n d2048 1 d2051 1 d2058 1 d2060 1 d2072 1 d2087 1 d2090 1 d2096 1 d2098 1 d2109 1 d2119 1 d2122 1 d2125 1 a2127 1 [ edns \fIyes_or_no\fR; ] a2128 1 [ support-ixfr \fIyes_or_no\fR; ] d2134 1 d2136 1 d2139 1 a2139 9 .Pp If you discover that a server does not support EDNS you can prevent named making EDNS queries to it by specifying .Ic edns .Ic no; . The default value of .Ic edns is .Ic yes . d2147 6 a2152 9 .Pp If the server supports IXFR you can tell named to attempt to perform a IXFR style zone transfer by specifing .Ic support-ixfr .Li yes . The default value of .Ic support-ixfr is .Li no . d2171 1 d2178 1 d2193 1 d2199 1 d2202 1 d2214 1 d2216 1 d2225 1 d2249 1 d2266 1 d2269 1 d2273 1 d2275 1 d2284 1 d2290 1 d2295 1 a2295 1 .Pp d2298 1 d2303 1 d2305 1 d2315 1 a2315 1 .Pp d2317 1 d2322 1 a2322 1 .Pp d2327 1 a2327 1 .Pp d2331 1 a2331 1 .Pp d2336 1 a2336 1 .Pp d2341 1 a2341 1 .Pp d2347 1 a2347 1 .Pp d2352 1 a2352 1 .Pp d2358 1 d2360 1 a2360 1 .Bl -tag -width 0n -compact d2366 1 @ 1.5.2.2 log @Pull up revision 1.8 (requested by itojun in ticket #998): Upgrade BIND to version 8.3.4. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.5.2.1 2002/06/28 12:00:03 lukem Exp $ a669 2 .It Ic update-security Denied dynamic updates due to access controls. d863 5 a867 8 .Li no . Turning .Lc auth-nxdomain will allow older clients that require .Li AA to be set to accept .Dv NXDOMAIN responses to work. @ 1.5.2.3 log @Bring BIND up to 8.3.6 (requested by itojun in ticket #1536) @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.5.2.2 2002/12/12 22:07:48 he Exp $ d177 1 a177 1 can be used as a place holder to select a random high-numbered port. a771 1 [ edns-udp-size \fInumber\fR; ] d788 1 a788 1 in class chaos to the anycast server and getting back a unique name. d959 1 a959 1 is order dependent. d973 1 a973 1 a IXFR database file is kept for all dynamically updated zones. d1290 1 a1290 1 for all zones, but can be overridden on a per-zone basis by including a d1477 1 a1477 1 The following example will give reasonable behavior for the local host and a1556 10 .Ss EDNS Some firewalls fail to pass EDNS/UDP messages that are larger than certain size, 512 or the UDP reassembly buffer. To allow EDNS to work across such firewalls it is necessary to advertise a EDNS buffer size that is small enough to not trigger failures. .Ic edns-udp-size can be use to adjust the advertised size. Values less than 512 will be increased to 512 and values greater than 4096 will be truncated to 4096. d1670 1 a1670 1 is given, then no forwarding will be done for the zone, canceling the d1679 1 a1679 1 option, and not the servers used, then you also need to re-specify the d1934 1 a1934 1 perform a IXFR style zone transfer by specifying d1976 1 a1976 1 statement must come before the d2040 1 a2040 1 sockets, and the control protocol is ARPANET-style text. @ 1.4 log @No argument for .Os. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.3 2001/01/27 07:22:05 itojun Exp $ d556 1 a556 1 .Fn openlog() d1606 1 a1606 1 .Ictopology @ 1.3 log @upgrade to BIND 8.2.3. the upgrade is critical (security fixes). please test. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.2 1999/11/29 18:28:18 christos Exp $ d20 1 a20 1 .Os BSD 4 @ 1.2 log @- Add missing .El's - It is .Bl -hang not -ohang @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.1.1.1 1999/11/20 18:53:57 veego Exp $ d3 1 a3 1 .\" Copyright (c) 1999 by Internet Software Consortium d831 1 d1076 6 d1085 4 a1088 1 statistics are kept for every host that the nameserver interacts with. The default is a1089 4 .Em Note: turning on .Li host-statistics can consume huge amounts of memory. d1292 2 a1293 1 statement. If not specified, the default is d1298 1 a1298 6 .Ic allow-recursion may also be specified in the .Ic zone statement, in which case it overrides the .Ic options allow-recursion statement. If not specified, the default is to allow recursive queries d1765 2 d1781 2 d2147 5 @ 1.2.2.1 log @file named.conf.5 was added on branch netbsd-1-4 on 1999-12-04 17:10:21 +0000 @ text @d1 2358 @ 1.2.2.2 log @Pull up revisions 1.1-1.2 (new) (requested by christos and veego): Update to BIND 8.2.2-P5. @ text @a0 2358 .\" $NetBSD: named.conf.5,v 1.2.2.1 1999/12/04 17:10:21 he Exp $ .\" .\" Copyright (c) 1999 by Internet Software Consortium .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS .\" ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES .\" OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE .\" CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL .\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR .\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS .\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS .\" SOFTWARE. .Dd January 7, 1999 .Dt NAMED.CONF 5 .Os BSD 4 .Sh NAME .Nm named.conf .Nd configuration file for .Xr named 8 .Sh OVERVIEW BIND 8 is much more configurable than previous release of BIND. There are entirely new areas of configuration, such as access control lists and categorized logging. Many options that previously applied to all zones can now be used selectively. These features, plus a consideration of future configuration needs led to the creation of a new configuration file format. .Ss General Syntax A BIND 8 configuration consists of two general features, statements and comments. All statements end with a semicolon. Many statements can contain substatements, which are each also terminated with a semicolon. .Pp The following statements are supported: .Bl -tag -width 1 .It Ic logging specifies what the server logs, and where the log messages are sent .It Ic options controls global server configuration options and sets defaults for other statements .It Ic zone defines a zone .It Ic acl defines a named IP address matching list, for access control and other uses .It Ic key specifies key information for use in authentication and authorization .It Ic trusted-keys defines DNSSEC keys that are preconfigured into the server and implicitly trusted .It Ic server sets certain configuration options for individual remote servers .It Ic controls declares control channels to be used by the .Nm ndc utility .It Ic include includes another file .El The .Ic logging and .Ic options statements may only occur once per configuration, while the rest may appear numerous times. Further detail on each statement is provided in individual sections below. Comments may appear anywhere that whitespace may appear in a BIND configuration file. To appeal to programmers of all kinds, they can be written in C, C++, or shell/perl constructs. C-style comments start with the two characters .Li /* (slash, star) and end with .Li */ (star, slash). Because they are completely delimited with these characters, they can be used to comment only a portion of a line or to span multiple lines. C-style comments cannot be nested. For example, the following is not valid because the entire comment ends with the first .Li */ : .Bd -literal -offset indent /* This is the start of a comment. This is still part of the comment. /* This is an incorrect attempt at nesting a comment. */ This is no longer in any comment. */ .Ed C++-style comments start with the two characters .Li // (slash, slash) and continue to the end of the physical line. They cannot be continued across multiple physical lines; to have one logical comment span multiple lines, each line must use the .Li // pair. For example: .Bd -literal -offset indent // This is the start of a comment. The next line // is a new comment, even though it is logically // part of the previous comment. .Ed Shell-style (or perl-style, if you prefer) comments start with the character .Li # (hash or pound or number or octothorpe or whatever) and continue to the end of the physical line, like C++ comments. For example: .Bd -literal -offset indent # This is the start of a comment. The next line # is a new comment, even though it is logically # part of the previous comment. .Ed .Em WARNING: you cannot use the .Li ; (semicolon) character to start a comment such as you would in a zone file. The semicolon indicates the end of a configuration statement, so whatever follows it will be interpreted as the start of the next statement. .Ss Converting from BIND 4.9.x .Pp BIND 4.9.x configuration files can be converted to the new format by using .Pa src/bin/named/named-bootconf , a shell script that is part of the BIND 8.2.x source kit. .Sh DOCUMENTATION DEFINITIONS Described below are elements used throughout the BIND configuration file documentation. Elements which are only associated with one statement are described only in the section describing that statement. .Bl -tag -width 1 .It Va acl_name The name of an .Va address_match_list as defined by the .Ic acl statement. .It Va address_match_list A list of one or more .Va ip_addr , .Va ip_prefix , .Va key_id , or .Va acl_name elements, as described in the .Sx ADDRESS MATCH LISTS section. .It Va dotted-decimal One or more integers valued 0 through 255 separated only by dots (``.''), such as .Li 123 , .Li 45.67 or .Li 89.123.45.67 . .It Va domain_name A quoted string which will be used as a DNS name, for example .Qq Li my.test.domain . .It Va path_name A quoted string which will be used as a pathname, such as .Qq Li zones/master/my.test.domain . .It Va ip_addr An IP address in with exactly four elements in .Va dotted-decimal notation. .It Va ip_port An IP port .Va number . .Va number is limited to .Li 0 through .Li 65535 , with values below 1024 typically restricted to root-owned processes. In some cases an asterisk (``*'') character can be used as a placeholder to select a random high-numbered port. .It Va ip_prefix An IP network specified in .Va dotted-decimal form, followed by ``/'' and then the number of bits in the netmask. E.g. .Li 127/8 is the network .Li 127.0.0.0 with netmask .Li 255.0.0.0 . .Li 1.2.3.0/28 is network .Li 1.2.3.0 with netmask .Li 255.255.255.240. .It Va key_name A string representing the name of a shared key, to be used for transaction security. .It Va number A non-negative integer with an entire range limited by the range of a C language signed integer (2,147,483,647 on a machine with 32 bit integers). Its acceptable value might further be limited by the context in which it is used. .It Va size_spec A .Va number , the word .Li unlimited , or the word .Li default . .Pp The maximum value of .Va size_spec is that of unsigned long integers on the machine. .Li unlimited requests unlimited use, or the maximum available amount. .Li default uses the limit that was in force when the server was started. .Pp A .Va number can optionally be followed by a scaling factor: .Li K or .Li k for kilobytes, .Li M or .Li m for megabytes, and .Li G or .Li g for gigabytes, which scale by 1024, 1024*1024, and 1024*1024*1024 respectively. .Pp Integer storage overflow is currently silently ignored during conversion of scaled values, resulting in values less than intended, possibly even negative. Using .Li unlimited is the best way to safely set a really large number. .It Va yes_or_no Either .Li yes or .Li no . The words .Li true and .Li false are also accepted, as are the numbers .Li 1 and .Li 0 . .El .Sh ADDRESS MATCH LISTS .Ss Syntax .Bd -literal \fIaddress_match_list\fR = 1\&*\fIaddress_match_element\fR \fIaddress_match_element\fR = [ \&"!\&" ] ( \fIaddress_match_list\fR / \fIip_address\fR / \fIip_prefix\fR / \fIacl_name\fR / \&"key \&" \fIkey_id\fR ) \&";\&" .Ed .Ss Definition and Usage Address match lists are primarily used to determine access control for various server operations. They are also used to define priorities for querying other nameservers and to set the addresses on which .Nm named will listen for queries. The elements which constitute an address match list can be any of the following: .Bl -bullet .It an .Va ip-address (in .Va dotted-decimal notation, .It an .Va ip-prefix (in the '/'-notation), .It A .Va key_id , as defined by the .Ic key statement, .It the name of an address match list previously defined with the .Ic acl statement, or .It another .Va address_match_list . .El .Pp Elements can be negated with a leading exclamation mark (``!''), and the match list names .Li any , .Li none , .Li localhost and .Li localnets are predefined. More information on those names can be found in the description of the .Ic acl statement. .Pp The addition of the .Ic key clause made the name of this syntactic element something of a misnomer, since security keys can be used to validate access without regard to a host or network address. Nonetheless, the term ``address match list'' is still used throughout the documentation. .Pp When a given IP address or prefix is compared to an address match list, the list is traversed in order until an element matches. The interpretation of a match depends on whether the list is being used for access control, defining .Ic listen-on ports, or as a topology, and whether the element was negated. .Pp When used as an access control list, a non-negated match allows access and a negated match denies access. If there is no match at all in the list, access is denied. The clauses .Ic allow-query , .Ic allow-transfer , .Ic allow-update , .Ic allow-recursion , and .Ic blackhole all use address match lists like this. Similarly, the .Ic listen-on option will cause the server to not accept queries on any of the machine's addresses which do not match the list. .Pp When used with the .Ic topology option, a non-negated match returns a distance based on its position on the list (the closer the match is to the start of the list, the shorter the distance is between it and the server). A negated match will be assigned the maximum distance from the server. If there is no match, the address will get a distance which is further than any non-negated list element, and closer than any negated element. .Pp Because of the first-match aspect of the algorithm, an element that defines a subset of another element in the list should come before the broader element, regardless of whether either is negated. For example, in .Dl 1.2.3/24; !1.2.3.13 the 1.2.3.13 element is completely useless, because the algorithm will match any lookup for 1.2.3.13 to the 1.2.3/24 element. Using .Dl !1.2.3.13; 1.2.3/24 fixes that problem by having 1.2.3.13 blocked by the negation but all other 1.2.3.* hosts fall through. .Sh THE LOGGING STATEMENT .Ss Syntax .Bd -literal logging { [ channel \fIchannel_name\fR { ( file \fIpath_name\fR [ versions ( \fInumber\fR | unlimited ) ] [ size \fIsize_spec\fR ] | syslog ( kern | user | mail | daemon | auth | syslog | lpr | news | uucp | cron | authpriv | ftp | local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7 ) | null ); [ severity ( critical | error | warning | notice | info | debug [ \fIlevel\fR ] | dynamic ); ] [ print-category \fIyes_or_no\fR; ] [ print-severity \fIyes_or_no\fR; ] [ print-time \fIyes_or_no\fR; ] }; ] [ category \fIcategory_name\fR { \fIchannel_name\fR; [ \fIchannel_name\fR; ... ] }; ] ... }; .Ed .Ss Definition and Usage The .Ic logging statement configures a wide variety of logging options for the nameserver. Its .Ic channel phrase associates output methods, format options and severity levels with a name that can then be used with the .Ic category phrase to select how various classes of messages are logged. .Pp Only one .Ic logging statement is used to define as many channels and categories as are wanted. If there are multiple logging statements in a configuration, the first defined determines the logging, and warnings are issued for the others. If there is no logging statement, the logging configuration will be: .Bd -literal logging { category default { default_syslog; default_debug; }; category panic { default_syslog; default_stderr; }; category packet { default_debug; }; category eventlib { default_debug; }; }; .Ed The logging configuration is established as soon as the .Ic logging statement is parsed. If you want to redirect messages about processing of the entire configuration file, the .Ic logging statement must appear first. Even if you do not redirect configuration file parsing messages, we recommend always putting the .Ic logging statement first so that this rule need not be consciously recalled if you ever do need want the parser's messages relocated. .Ss The channel phrase All log output goes to one or more ``channels''; you can make as many of them as you want. .Pp Every channel definition must include a clause that says whether messages selected for the channel go to a file, to a particular syslog facility, or are discarded. It can optionally also limit the message severity level that will be accepted by the channel (default is .Li info ) , and whether to include a time stamp generated by .Nm named , the category name, or severity level. The default is not to include any of those three. .Pp The word .Li null as the destination option for the channel will cause all messages sent to it to be discarded; other options for the channel are meaningless. .Pp The .Ic file clause can include limitations both on how large the file is allowed to become, and how many versions of the file will be saved each time the file is opened. .Pp The .Ic size option for files is simply a hard ceiling on log growth. If the file ever exceeds the size, then .Nm named will just not write anything more to it until the file is reopened; exceeding the size does not automatically trigger a reopen. The default behavior is to not limit the size of the file. .Pp If you use the .Ic version logfile option, then .Nm named will retain that many backup versions of the file by renaming them when opening. For example, if you choose to keep 3 old versions of the file lamers.log then just before it is opened lamers.log.1 is renamed to lames.log.2, lamers.log.0 is renamed to lamers.log.1, and lamers.log is renamed to lamers.log.0. No rolled versions are kept by default; any existing log file is simply appended. The .Li unlimited keyword is synonymous with .Li 99 in current BIND releases. Example usage of size and versions options: .Bd -literal channel an_example_level { file "lamers.log" versions 3 size 20m; print-time yes; print-category yes; }; .Ed .Pp The argument for the .Ic syslog clause is a syslog facility as described in the .Xr syslog 3 manual page. How .Nm syslogd will handle messages sent to this facility is described in the .Xr syslog.conf 5 manual page. If you have a system which uses a very old version of syslog that only uses two arguments to the .Fn openlog() function, then this clause is silently ignored. .Pp The .Ic severity clause works like syslog's ``priorities'', except that they can also be used if you are writing straight to a file rather than using syslog. Messages which are not at least of the severity level given will not be selected for the channel; messages of higher severity levels will be accepted. .Pp If you are using syslog, then the .Pa syslog.conf priorities will also determine what eventually passes through. For example, defining a channel facility and severity as .Li daemon and .Li debug but only logging .Li daemon.warning via .Pa syslog.conf will cause messages of severity .Li info and .Li notice to be dropped. If the situation were reversed, with .Nm named writing messages of only .Li warning or higher, then .Nm syslogd would print all messages it received from the channel. .Pp The server can supply extensive debugging information when it is in debugging mode. If the server's global debug level is greater than zero, then debugging mode will be active. The global debug level is set either by starting the .Nm named server with the .Fl d flag followed by a positive integer, or by sending the running server the .Dv SIGUSR1 signal (for example, by using .Ic ndc trace ) . The global debug level can be set to zero, and debugging mode turned off, by sending the server the .Dv SIGUSR2 signal (as with .Ic ndc notrace ) . All debugging messages in the server have a debug level, and higher debug levels give more more detailed output. Channels that specify a specific debug severity, e.g. .Bd -literal channel specific_debug_level { file \&"foo\&"; severity debug 3; }; .Ed will get debugging output of level 3 or less any time the server is in debugging mode, regardless of the global debugging level. Channels with .Li dynamic severity use the server's global level to determine what messages to print. .Pp If .Ic print-time has been turned on, then the date and time will be logged. .Ic print-time may be specified for a syslog channel, but is usually pointless since syslog also prints the date and time. If .Ic print-category is requested, then the category of the message will be logged as well. Finally, if .Ic print-severity is on, then the severity level of the message will be logged. The .Ic print- options may be used in any combination, and will always be printed in the following order: time, category, severity. Here is an example where all three .Ic print- options are on: .Bd -literal 28-Apr-1997 15:05:32.863 default: notice: Ready to answer queries. .Ed .Pp There are four predefined channels that are used for .Nm named 's default logging as follows. How they are used used is described in the next section, .Sx The category phrase. .Bd -literal channel default_syslog { syslog daemon; # send to syslog's daemon facility severity info; # only send priority info and higher }; channel default_debug { file \&"named.run\&"; # write to named.run in the working directory # Note: stderr is used instead of \&"named.run\&" # if the server is started with the -f option. severity dynamic; # log at the server's current debug level }; channel default_stderr { # writes to stderr file \&"\&"; # this is illustrative only; there's currently # no way of specifying an internal file # descriptor in the configuration language. severity info; # only send priority info and higher }; channel null { null; # toss anything sent to this channel }; .Ed Once a channel is defined, it cannot be redefined. Thus you cannot alter the built-in channels directly, but you can modify the default logging by pointing categories at channels you have defined. .Ss The category phrase There are many categories, so you can send the logs you want to see wherever you want, without seeing logs you don't want. If you don't specify a list of channels for a category, then log messages in that category will be sent to the .Li default category instead. If you don't specify a default category, the following ``default default'' is used: .Bd -literal category default { default_syslog; default_debug; }; .Ed As an example, let's say you want to log security events to a file, but you also want keep the default logging behavior. You'd specify the following: .Bd -literal channel my_security_channel { file \&"my_security_file\&"; severity info; }; category security { my_security_channel; default_syslog; default_debug; }; .Ed To discard all messages in a category, specify the .Li null channel: .Bd -literal category lame-servers { null; }; category cname { null; }; .Ed The following categories are available: .Bl -tag -width 1 .It Ic default The catch-all. Many things still aren't classified into categories, and they all end up here. Also, if you don't specify any channels for a category, the default category is used instead. If you do not define the default category, the following definition is used: .Dl category default { default_syslog; default_debug; }; .It Ic config High-level configuration file processing. .It Ic parser Low-level configuration file processing. .It Ic queries A short log message is generated for every query the server receives. .It Ic lame-servers Messages like ``Lame server on ...'' .It Ic statistics Statistics. .It Ic panic If the server has to shut itself down due to an internal problem, it will log the problem in this category as well as in the problem's native category. If you do not define the panic category, the following definition is used: .Dl category panic { default_syslog; default_stderr; }; .It Ic update Dynamic updates. .It Ic ncache Negative caching. .It Ic xfer-in Zone transfers the server is receiving. .It Ic xfer-out Zone transfers the server is sending. .It Ic db All database operations. .It Ic eventlib Debugging info from the event system. Only one channel may be specified for this category, and it must be a file channel. If you do not define the eventlib category, the following definition is used: .Dl category eventlib { default_debug; }; .It Ic packet Dumps of packets received and sent. Only one channel may be specified for this category, and it must be a file channel. If you do not define the packet category, the following definition is used: .Dl category packet { default_debug; }; .It Ic notify The NOTIFY protocol. .It Ic cname Messages like ``... points to a CNAME''. .It Ic security Approved/unapproved requests. .It Ic os Operating system problems. .It Ic insist Internal consistency check failures. .It Ic maintenance Periodic maintenance events. .It Ic load Zone loading messages. .It Ic response-checks Messages arising from response checking, such as ``Malformed response ...'', ``wrong ans. name ...'', ``unrelated additional info ...'', ``invalid RR type ...'', and ``bad referral ...''. .El .Sh THE OPTIONS STATEMENT .Ss Syntax .Bd -literal options { [ version \fIversion_string\fR; ] [ directory \fIpath_name\fR; ] [ named-xfer \fIpath_name\fR; ] [ dump-file \fIpath_name\fR; ] [ memstatistics-file \fIpath_name\fR; ] [ pid-file \fIpath_name\fR; ] [ statistics-file \fIpath_name\fR; ] [ auth-nxdomain \fIyes_or_no\fR; ] [ deallocate-on-exit \fIyes_or_no\fR; ] [ dialup \fIyes_or_no\fR; ] [ fake-iquery \fIyes_or_no\fR; ] [ fetch-glue \fIyes_or_no\fR; ] [ has-old-clients \fIyes_or_no\fR; ] [ host-statistics \fIyes_or_no\fR; ] [ multiple-cnames \fIyes_or_no\fR; ] [ notify \fIyes_or_no\fR; ] [ recursion \fIyes_or_no\fR; ] [ rfc2308-type1 \fIyes_or_no\fR; ] [ use-id-pool \fIyes_or_no\fR; ] [ treat-cr-as-space \fIyes_or_no\fR; ] [ also-notify \fIyes_or_no\fR; ] [ forward ( only | first ); ] [ forwarders { [ \fIin_addr\fR ; [ \fIin_addr\fR ; ... ] ] }; ] [ check-names ( master | slave | response ) ( warn | fail | ignore); ] [ allow-query { \fIaddress_match_list\fR }; ] [ allow-recursion { \fIaddress_match_list\fR }; ] [ allow-transfer { \fIaddress_match_list\fR }; ] [ blackhole { \fIaddress_match_list\fR }; ] [ listen-on [ port \fIip_port\fR ] { \fIaddress_match_list\fR }; ] [ query-source [ address ( \fIip_addr\fR | * ) ] [ port ( \fIip_port\fR | * ) ] ; ] [ lame-ttl \fInumber\fR; ] [ max-transfer-time-in \fInumber\fR; ] [ max-ncache-ttl \fInumber\fR; ] [ min-roots \fInumber\fR; ] [ serial-queries \fInumber\fR; ] [ transfer-format ( one-answer | many-answers ); ] [ transfers-in \fInumber\fR; ] [ transfers-out \fInumber\fR; ] [ transfers-per-ns \fInumber\fR; ] [ transfer-source \fIip_addr\fR; ] [ maintain-ixfr-base \fIyes_or_no\fR; ] [ max-ixfr-log-size \fInumber\fR; ] [ coresize \fIsize_spec\fR ; ] [ datasize \fIsize_spec\fR ; ] [ files \fIsize_spec\fR ; ] [ stacksize \fIsize_spec\fR ; ] [ cleaning-interval \fInumber\fR; ] [ heartbeat-interval \fInumber\fR; ] [ interface-interval \fInumber\fR; ] [ statistics-interval \fInumber\fR; ] [ topology { \fIaddress_match_list\fR }; ] [ sortlist { \fIaddress_match_list|fR }; ] [ rrset-order { \fIorder_spec\fR ; [ \fIorder_spec\fR ; ... [ [ }; }; .Ed .Ss Definition and Usage The options statement sets up global options to be used by BIND. This statement may appear at only once in a configuration file; if more than one occurrence is found, the first occurrence determines the actual options used, and a warning will be generated. If there is no options statement, an options block with each option set to its default will be used. .Ss Pathnames .Bl -tag -width 1 .It Ic version The version the server should report via the ndc command or via a query of name .Pa version.bind in class chaos. The default is the real version number of ths server, but some server operators prefer the string ( .Ic surely you must be joking ). .It Ic directory The working directory of the server. Any non-absolute pathnames in the configuration file will be taken as relative to this directory. The default location for most server output files (e.g. .Pa named.run ) is this directory. If a directory is not specified, the working directory defaults to .Pa . , the directory from which the server was started. The directory specified should be an absolute path. .It Ic named-xfer The pathname to the named-xfer program that the server uses for inbound zone transfers. If not specified, the default is system dependent (e.g. .Pa /usr/sbin/named-xfer ). .It Ic dump-file The pathname of the file the server dumps the database to when it receives .Dv SIGINT signal (as sent by .Ic ndc dumpdb ). If not specified, the default is .Pa named_dump.db . .It Ic memstatistics-file The pathname of the file the server writes memory usage statistics to on exit, if .Ic deallocate-on-exit is .Li yes . If not specified, the default is .Pa named.memstats . .It Ic pid-file The pathname of the file the server writes its process ID in. If not specified, the default is operating system dependent, but is usually .Pa /var/run/named.pid or .Pa /etc/named.pid . The pid-file is used by programs like .Nm ndc that want to send signals to the running nameserver. .It Ic statistics-file The pathname of the file the server appends statistics to when it receives .Dv SIGILL signal (from .Ic ndc stats ) . If not specified, the default is .Pa named.stats . .El .Ss Boolean Options .Bl -tag -width 1 .It Ic auth-nxdomain If .Li yes , then the .Li AA bit is always set on .Dv NXDOMAIN responses, even if the server is not actually authoritative. The default is .Li yes . Do not turn off .Ic auth-nxdomain unless you are sure you know what you are doing, as some older software won't like it. .It Ic deallocate-on-exit If .Li yes , then when the server exits it will painstakingly deallocate every object it allocated, and then write a memory usage report to the .Ic memstatistics-file . The default is .Li no , because it is faster to let the operating system clean up. .Ic deallocate-on-exit is handy for detecting memory leaks. .It Ic dialup If .Li yes , then the server treats all zones as if they are doing zone transfers across a dial on demand dialup link, which can be brought up by traffic originating from this server. This has different effects according to zone type and concentrates the zone maintenance so that it all happens in a short interval, once every .Ic heartbeat-interval and hopefully during the one call. It also suppresses some of the normal zone maintenance traffic. The default is .Li no . The .Ic dialup option may also be specified in the .Ic zone statement, in which case it overrides the .Ic options dialup statement. .Pp If the zone is a .Ic master then the server will send out .Dv NOTIFY request to all the slaves. This will trigger the zone up to date checking in the slave (providing it supports .Dv NOTIFY ) allowing the slave to verify the zone while the call us up. .Pp If the zone is a .Ic slave or .Ic stub then the server will suppress the zone regular zone up to date queries and only perform the when the .Ic heartbeat-interval expires. .It Ic fake-iquery If .Li yes , the server will simulate the obsolete DNS query type .Dv IQUERY . The default is .Li no . .It Ic fetch-glue If .Li yes (the default), the server will fetch ``glue'' resource records it doesn't have when constructing the additional data section of a response. .Ic fetch-glue no can be used in conjunction with .Ic recursion no to prevent the server's cache from growing or becoming corrupted (at the cost of requiring more work from the client). .It Ic has-old-clients Setting the option to .Li yes , is equivalent to setting the following three options: .Ic auth-nxdomain yes ;, .Ic maintain-ixfr-base yes ;, and .Ic rfc2308-type1 no ; . The use of .Ic has-old-clients with .Ic auth-nxdomain , .Ic maintain-ixfr-base , and .Ic rfc2308-type1 is order dependant. .It Ic host-statistics If .Li yes , then statistics are kept for every host that the the nameserver interacts with. The default is .Li no . .Em Note: turning on .Ic host-statistics can consume huge amounts of memory. .It Ic maintain-ixfr-base If .Li yes , statistics are kept for every host that the nameserver interacts with. The default is .Li no . .Em Note: turning on .Li host-statistics can consume huge amounts of memory. .It Ic multiple-cnames If .Li yes , then multiple CNAME resource records will be allowed for a domain name. The default is .Li no . Allowing multiple CNAME records is against standards and is not recommended. Multiple CNAME support is available because previous versions of BIND allowed multiple CNAME records, and these records have been used for load balancing by a number of sites. .It Ic notify If .Li yes (the default), DNS NOTIFY messages are sent when a zone the server is authoritative for changes. The use of NOTIFY speeds convergence between the master and its slaves. Slave servers that receive a NOTIFY message and understand it will contact the master server for the zone and see if they need to do a zone transfer, and if they do, they will initiate it immediately. The .Ic notify option may also be specified in the .Ic zone statement, in which case it overrides the .Ic options notify statement. .It Ic recursion If .Li yes , and a DNS query requests recursion, then the server will attempt to do all the work required to answer the query. If recursion is not on, the server will return a referral to the client if it doesn't know the answer. The default is .Li yes . See also .Ic fetch-glue above. .It Ic rfc2308-type1 If .Li yes, the server will send NS records along with the SOA record for negative answers. You need to set this to no if you have an old BIND server using you as a forwarder that does not understand negative answers which contain both SOA and NS records or you have an old version of sendmail. The correct fix is to upgrade the broken server or sendmail. The default is .Li no . .It Ic use-id-pool If .Li yes, the server will keep track of its own outstanding query ID's to avoid duplication and increase randomness. This will result in 128KB more memory being consumed by the server. The default is .Li no . .It Ic treat-cr-as-space If .Li yes, the server will treat CR characters the same way it treats a space or tab. This may be necessary when loading zone files on a UNIX system that were generated on an NT or DOS machine. The default is .Li no . .El .Ss Also-Notify .Ic also-notify Defines a global list of IP addresses that also get sent NOTIFY messages whenever a fresh copy of the zone is loaded. This helps to ensure that copies of the zones will quickly converge on ``stealth'' servers. If an .Ic also-notify list is given in a .Ic zone statement, it will override the .Ic options also-notify statement. When a .Ic zone notify statement is set to .Ic no , the IP addresses in the global .Ic also-notify list will not get sent NOTIFY messages for that zone. The default is the empty list (no global notification list). .Ss Forwarding .Pp The forwarding facility can be used to create a large site-wide cache on a few servers, reducing traffic over links to external nameservers. It can also be used to allow queries by servers that do not have direct access to the Internet, but wish to look up exterior names anyway. Forwarding occurs only on those queries for which the server is not authoritative and does not have the answer in its cache. .Bl -tag -width 1 .It Ic forward This option is only meaningful if the .Ic forwarders list is not empty. A value of .Li first , the default, causes the server to query the forwarders first, and if that doesn't answer the question the server will then look for the answer itself. If .Li only is specified, the server will only query the forwarders. .It Ic forwarders Specifies the IP addresses to be used for forwarding. The default is the empty list (no forwarding). .El .Pp Forwarding can also be configured on a per-zone basis, allowing for the global forwarding options to be overridden in a variety of ways. You can set particular zones to use different forwarders, or have different .Ic forward only/first behavior, or to not forward at all. See .Sx THE ZONE STATEMENT section for more information. .Pp Future versions of BIND 8 will provide a more powerful forwarding system. The syntax described above will continue to be supported. .Ss Name Checking The server can check domain names based upon their expected client contexts. For example, a domain name used as a hostname can be checked for compliance with the RFCs defining valid hostnames. .Pp Three checking methods are available: .Bl -tag -width 1 .It Ic ignore No checking is done. .It Ic warn Names are checked against their expected client contexts. Invalid names are logged, but processing continues normally. .It Ic fail Names are checked against their expected client contexts. Invalid names are logged, and the offending data is rejected. .El .Pp The server can check names three areas: master zone files, slave zone files, and in responses to queries the server has initiated. If .Ic check-names response fail has been specified, and answering the client's question would require sending an invalid name to the client, the server will send a .Dv REFUSED response code to the client. .Pp The defaults are: .Bd -literal check-names master fail; check-names slave warn; check-names response ignore; .Ed .Pp .Ic check-names may also be specified in the .Ic zone statement, in which case it overrides the .Ic options check-names statement. When used in a .Ic zone statement, the area is not specified (because it can be deduced from the zone type). .Ss Access Control .Pp Access to the server can be restricted based on the IP address of the requesting system or via shared secret keys. See .Sx ADDRESS MATCH LISTS for details on how to specify access criteria. .Bl -tag -width 1 .It Ic allow-query Specifies which hosts are allowed to ask ordinary questions. .Ic allow-query may also be specified in the .Ic zone statement, in which case it overrides the .Ic options allow-query statement. If not specified, the default is .Bl -tag -width 1 .It Ic allow-recursion Specifies which hosts are allowed to ask recursive questions. .Ic allow-recursion may also be specified in the .Ic zone statement, in which case it overrides the .Ic options allow-recursion statement. If not specified, the default is to allow recursive queries from all hosts. .It Ic allow-transfer Specifies which hosts are allowed to receive zone transfers from the server. .Ic allow-transfer may also be specified in the .Ic zone statement, in which case it overrides the .Ic options allow-transfer statement. If not specified, the default is to allow transfers from all hosts. .It Ic blackhole Specifies a list of addresses that the server will not accept queries from or use to resolve a query. Queries from these addresses will not be responded to. .El .El .Ss Interfaces .Pp The interfaces and ports that the server will answer queries from may be specified using the .Ic listen-on option. .Ic listen-on takes an optional port, and an address match list. The server will listen on all interfaces allowed by the address match list. If a port is not specified, port 53 will be used. .Pp Multiple .Ic listen-on statements are allowed. For example, .Bd -literal listen-on { 5.6.7.8; }; listen-on port 1234 { !1.2.3.4; 1.2/16; }; .Ed will enable the nameserver on port 53 for the IP address 5.6.7.8, and on port 1234 of an address on the machine in net 1.2 that is not 1.2.3.4. .Pp If no .Ic listen-on is specified, the server will listen on port 53 on all interfaces. .Ss Query Address .Pp If the server doesn't know the answer to a question, it will query other nameservers. .Ic query-source specifies the address and port used for such queries. If .Ic address is .Li * or is omitted, a wildcard IP address ( .Dv INADDR_ANY ) will be used. If .Va port is .Li * or is omitted, a random unprivileged port will be used. The default is .Dl query-source address * port *; .Pp Note: .Ic query-source currently applies only to UDP queries; TCP queries always use a wildcard IP address and a random unprivileged port. .Ss Zone Transfers .Bl -tag -width 1 .It Ic max-transfer-time-in Inbound zone transfers ( .Nm named-xfer processes) running longer than this many minutes will be terminated. The default is 120 minutes (2 hours). .It Ic transfer-format The server supports two zone transfer methods. .Li one-answer uses one DNS message per resource record transferred. .Li many-answers packs as many resource records as possible into a message. .Li many-answers is more efficient, but is only known to be understood by BIND 8.1 and patched versions of BIND 4.9.5. The default is .Li one-answer . .Ic transfer-format may be overridden on a per-server basis by using the .Ic server statement. .It Ic transfers-in The maximum number of inbound zone transfers that can be running concurrently. The default value is 10. Increasing .Ic transfers-in may speed up the convergence of slave zones, but it also may increase the load on the local system. .It Ic transfers-out This option will be used in the future to limit the number of concurrent outbound zone transfers. It is checked for syntax, but is otherwise ignored. .It Ic transfers-per-ns The maximum number of inbound zone transfers ( .Nm named-xfer processes) that can be concurrently transferring from a given remote nameserver. The default value is 2. Increasing .Ic transfers-per-ns may speed up the convergence of slave zones, but it also may increase the load on the remote nameserver. .Ic transfers-per-ns may be overridden on a per-server basis by using the .Ic transfers phrase of the .Ic server statement. .It Ic transfer-source .Nm transfer-source determines which local address will be bound to the TCP connection used to fetch all zones transferred inbound by the server. If not set, it defaults to a system controlled value which will usually be the address of the interface ``closest to`` the remote end. This address must appear in the remote end's .Nm allow-transfer option for the zones being transferred, if one is specified. This statement sets the .Nm transfer-source for all zones, but can be overriden on a per-zone basis by includinga .Nm transfer-source statement within the zone block in the configuration file. .El .Ss Resource Limits .Pp The server's usage of many system resources can be limited. Some operating systems don't support some of the limits. On such systems, a warning will be issued if the unsupported limit is used. Some operating systems don't support limiting resources, and on these systems a .D1 cannot set resource limits on this system message will be logged. .Pp Scaled values are allowed when specifying resource limits. For example, .Li 1G can be used instead of .Li 1073741824 to specify a limit of one gigabyte. .Li unlimited requests unlimited use, or the maximum available amount. .Li default uses the limit that was in force when the server was started. See the definition of .Va size_spec in the .Sx DOCUMENTATION DEFINITIONS section for more details. .Bl -tag -width 1 .It Ic coresize The maximum size of a core dump. The default value is .Li default . .It Ic datasize The maximum amount of data memory the server may use. The default value is .Li default . .It Ic files The maximum number of files the server may have open concurrently. The default value is .Li unlimited . Note that on some operating systems the server cannot set an unlimited value and cannot determine the maximum number of open files the kernel can support. On such systems, choosing .Li unlimited will cause the server to use the larger of the .Va rlim_max from .Fn getrlimit RLIMIT_NOFILE and the value returned by .Fn sysconf _SC_OPEN_MAX . If the actual kernel limit is larger than this value, use .Ic limit files to specify the limit explicitly. .It Ic max-ixfr-log-size The .Li max-ixfr-log-size will be used in a future release of the server to limit the size of the transaction log kept for Incremental Zone Transfer. .It Ic stacksize The maximum amount of stack memory the server may use. The default value is .Li default . .El .Ss Periodic Task Intervals .Bl -tag -width 1 .It Ic cleaning-interval The server will remove expired resource records from the cache every .Ic cleaning-interval minutes. The default is 60 minutes. If set to 0, no periodic cleaning will occur. .It Ic heartbeat-interval The server will perform zone maintenance tasks for all zones marked .Ic dialup yes whenever this interval expires. The default is 60 minutes. Reasonable values are up to 1 day (1440 minutes). If set to 0, no zone maintenance for these zones will occur. .It Ic interface-interval The server will scan the network interface list every .Ic interface-interval minutes. The default is 60 minutes. If set to 0, interface scanning will only occur when the configuration file is loaded. After the scan, listeners will be started on any new interfaces (provided they are allowed by the .Ic listen-on configuration). Listeners on interfaces that have gone away will be cleaned up. .It Ic statistics-interval Nameserver statistics will be logged every .Ic statistics-interval minutes. The default is 60. If set to 0, no statistics will be logged. .El .Ss Topology .Pp All other things being equal, when the server chooses a nameserver to query from a list of nameservers, it prefers the one that is topologically closest to itself. The .Ic topology statement takes an address match list and interprets it in a special way. Each top-level list element is assigned a distance. Non-negated elements get a distance based on their position in the list, where the closer the match is to the start of the list, the shorter the distance is between it and the server. A negated match will be assigned the maximum distance from the server. If there is no match, the address will get a distance which is further than any non-negated list element, and closer than any negated element. For example, .Bd -literal topology { 10/8; !1.2.3/24; { 1.2/16; 3/8; }; }; .Ed will prefer servers on network 10 the most, followed by hosts on network 1.2.0.0 (netmask 255.255.0.0) and network 3, with the exception of hosts on network 1.2.3 (netmask 255.255.255.0), which is preferred least of all. .Pp The default topology is .Dl topology { localhost; localnets; }; .Ss Resource Record sorting .Pp When returning multiple RRs, the nameserver will normally return them in .Ic Round Robin , i.e. after each request, the first RR is put to the end of the list. As the order of RRs is not defined, this should not cause any problems. The client resolver code should re-arrange the RRs as appropriate, i.e. using any addresses on the local net in preference to other addresses. However, not all resolvers can do this, or are not correctly configured. When a client is using a local server, the sorting can be performed in the server, based on the client's address. This only requires configuring the nameservers, not all the clients. The .Ic sortlist statement takes an address match list and interprets it even more specially than the .Ictopology statement does. Each top level statement in the sortlist must itself be an explicit address match list with one or two elements. The first element (which may be an IP address, an IP prefix, an ACL name or nested address match list) of each top level list is checked against the source address of the query until a match is found. Once the source address of the query has been matched, if the top level statement contains only one element, the actual primitive element that matched the source address is used to select the address in the response to move to the beginning of the response. If the statement is a list of two elements, the second element is treated like the address match list in a topology statement. Each top level element is assigned a distance and the address in the response with the minimum distance is moved to the beginning of the response. In the following example, any queries received from any of the addresses of the host itself will get responses preferring addresses on any of the locally connected networks. Next most preferred are addresses on the 192.168.1/24 network, and after that either the 192.168.2/24 or 192.168.3/24 network with no preference shown between these two networks. Queries received from a host on the 192.168.1/24 network will prefer other addresses on that network to the 192.168.2/24 and 192.168.3/24 networks. Queries received from a host on the 192.168.4/24 or the 192.168.5/24 network will only prefer other addresses on their directly connected networks. .Bd -literal sortlist { { localhost; // IF the local host { localnets; // THEN first fit on the 192.168.1/24; // following nets { 192,168.2/24; 192.168.3/24; }; }; }; { 192.168.1/24; // IF on class C 192.168.1 { 192.168.1/24; // THEN use .1, or .2 or .3 { 192.168.2/24; 192.168.3/24; }; }; }; { 192.168.2/24; // IF on class C 192.168.2 { 192.168.2/24; // THEN use .2, or .1 or .3 { 192.168.1/24; 192.168.3/24; }; }; }; { 192.168.3/24; // IF on class C 192.168.3 { 192.168.3/24; // THEN use .3, or .1 or .2 { 192.168.1/24; 192.168.2/24; }; }; }; { { 192.168.4/24; 192.168.5/24; }; // if .4 or .5, prefer that net }; }; .Ed The following example will give reasonable behaviour for the local host and hosts on directly connected networks. It is similar to the behavior of the address sort in BIND 4.9.x. Responses sent to queries from the local host will favor any of the directly connected networks. Responses sent to queries from any other hosts on a directly connected network will prefer addresses on that same network. Responses to other queries will not be sorted. .Bd -literal sortlist { { localhost; localnets; }; { localnets; }; }; .Ed .Ss RRset Ordering .Pp When multiple records are returned in an answer it may be useful to configure the order the records are placed into the response. For example the records for a zone might be configured to always be returned in the order they are defined in the zone file. Or perhaps a random shuffle of the records as they are returned is wanted. The rrset-order statement permits configuration of the ordering made of the records in a multiple record response. The default, if no ordering is defined, is a cyclic ordering (round robin). An .Ic order_spec is defined as follows: .Bd -literal [ \fIclass class_name\fR ][ \fItype type_name\fR ][ \fIname\fR "FQDN" ] \fIorder\fR ordering .Ed If no class is specified, the default is .Ic ANY . If no .Li Ictype is specified, the default is .Ic ANY . If no name is specified, the default is "*". The legal values for .Ic ordering are: .Bd -literal .Ic fixed Records are returned in the order they are defined in the zone file. .Ic random Records are returned in some random order. .Ic cyclic Records are returned in a round-robin order. For example: rrset-order { class IN type A name "rc.vix.com" order random; order cyclic; }; .Ed will cause any responses for type A records in class IN that have "rc.vix.com" as a suffix, to always be returned in random order. All other records are returned in cyclic order. If multiple .Ic rrset-order statements appear, they are not combined--the last one applies. If no .Ic rrset-order statement is specified, a default one of: .Bd -literal rrset-order { class ANY type ANY name "*" order cyclic ; }; .Ed is used. .Ss Tuning .Bl -tag -width 1 .It Ic lame-ttl Sets the number of seconds to cache a lame server indication. 0 disables caching. Default is 600 (10 minutes). Maximum value is 1800 (30 minutes) .It Ic max-ncache-ttl To reduce network traffic and increase performance the server store negative answers. .Ic max-ncache-ttl is used to set a maximum retention time for these answers in the server is seconds. The default .Ic max-ncache-ttl is 10800 seconds (3 hours). .Ic max-ncache-ttl cannot exceed the maximum retention time for ordinary (positive) answers (7 days) and will be silently truncated to 7 days if set to a value which is greater that 7 days. .It Ic min-roots The minimum number of root servers that is required for a request for the root servers to be accepted. Default is 2. .El .Sh THE ZONE STATEMENT .Ss Syntax .Bd -literal zone \fIdomain_name\fR [ ( in | hs | hesiod | chaos ) ] { type master; file \fIpath_name\fR; [ check-names ( warn | fail | ignore ); ] [ allow-update { \fIaddress_match_list\fR }; ] [ allow-query { \fIaddress_match_list\fR }; ] [ allow-transfer { \fIaddress_match_list\fR }; ] [ dialup \fIyes_or_no\fR; ] [ notify \fIyes_or_no\fR; ] [ also-notify { \fIip_addr\fR; [ \fIip_addr\fR; ... ] }; [ pubkey \fInumber\fR \fInumber\fR \fInumber\fR \fIstring\fR; ] }; zone \fIdomain_name\fR [ ( in | hs | hesiod | chaos ) ] { type ( slave | stub ); [ file \fIpath_name\fR; ] masters [ port \fIip_port\fR ] { \fIip_addr\fR; [ \fIip_addr\fR; ... ] }; [ check-names ( warn | fail | ignore ); ] [ allow-update { \fIaddress_match_list\fR }; ] [ allow-query { \fIaddress_match_list\fR }; ] [ allow-transfer { \fIaddress_match_list\fR }; ] [ transfer-source \fIip_addr\fR; ] [ max-transfer-time-in \fInumber\fR; ] [ notify \fIyes_or_no\fR; ] [ also-notify { \fIip_addr\fR; [ \fIip_addr\fR; ... ] }; [ pubkey \fInumber\fR \fInumber\fR \fInumber\fR \fIstring\fR; ] }; zone \fIdomain_name\fR [ ( in | hs | hesiod | chaos ) ] { type forward; [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] [ check-names ( warn | fail | ignore ); ] }; zone \&".\&" [ ( in | hs | hesiod | chaos ) ] { type hint; file \fIpath_name\fR; [ check-names ( warn | fail | ignore ); ] }; .Ed .Ss Definition and Usage The .Ic zone statement is used to define how information about particular DNS zones is managed by the server. There are five different zone types. .Bl -tag -width 1 .It Ic master The server has a master copy of the data for the zone and will be able to provide authoritative answers for it. .It Ic slave A .Ic slave zone is a replica of a master zone. The .Ic masters list specifies one or more IP addresses that the slave contacts to update its copy of the zone. If a .Ic port is specified then checks to see if the zone is current and zone transfers will be done to the port given. If .Ic file is specified, then the replica will be written to the named file. Use of the .Ic file clause is highly recommended, since it often speeds server startup and eliminates a needless waste of bandwidth. .It Ic stub A .Ic stub zone is like a slave zone, except that it replicates only the NS records of a master zone instead of the entire zone. .It Ic forward A .Ic forward zone is used to direct all queries in it to other servers, as described in .Sx THE OPTIONS STATEMENT section. The specification of options in such a zone will override any global options declared in the .Ic options statement. .Pp If either no .Ic forwarders clause is present in the zone or an empty list for .Ic forwarders is given, then no forwarding will be done for the zone, cancelling the effects of any .Ic forwarders in the .Ic options statement. Thus if you want to use this type of zone to change only the behavior of the global .Ic forward option, and not the servers used, then you also need to respecify the global forwarders. .It Ic hint The initial set of root nameservers is specified using a .Ic hint zone. When the server starts up, it uses the root hints to find a root nameserver and get the most recent list of root nameservers. .El .Pp Note: previous releases of BIND used the term .Ic primary for a master zone, .Ic secondary for a slave zone, and .Ic cache for a hint zone. .Ss Classes The zone's name may optionally be followed by a class. If a class is not specified, class .Ic in (for "internet"), is assumed. This is correct for the vast majority of cases. .Pp The .Ic hesiod class is for an information service from MIT's Project Athena. It is used to share information about various systems databases, such as users, groups, printers and so on. More information can be found at ftp://athena-dist.mit.edu/pub/ATHENA/usenix/athena_changes.PS. The keyword .Ic hs is a synonym for .Ic hesiod . .Pp Another MIT development was CHAOSnet, a LAN protocol created in the mid-1970s. It is still sometimes seen on LISP stations and other hardware in the AI community, and zone data for it can be specified with the .Ic chaos class. .Ss Options .Bl -tag -width 1 .It Ic check-names See the subsection on .Sx Name Checking in .Sx THE OPTIONS STATEMENT . .It Ic allow-query See the description of .Ic allow-query in the .Sx Access Control subsection of .Sx THE OPTIONS STATEMENT . .It Ic allow-update Specifies which hosts are allowed to submit Dynamic DNS updates to the server. The default is to deny updates from all hosts. .It Ic allow-transfer See the description of .Ic allow-transfer in the .Sx Access Control subsection of .Sx THE OPTIONS STATEMENT . .It Ic transfer-source .Ic transfer-source determines which local address will be bound to the TCP connection used to fetch this zone. If not set, it defaults to a system controlled value which will usually be the address of the interface ``closest to'' the remote end. This address must appear in the remote end's .Ic allow-transfer option for this zone if one is specified. .It Ic max-transfer-time-in See the description of .Ic max-transfer-time-in in the .Sx Zone Transfers subsection of .Sx THE OPTIONS STATEMENT . .It Ic dialup See the description of .Ic dialup in the .Sx Boolean Options subsection of .Sx THE OPTIONS STATEMENT . .It Ic notify See the description of .Sx notify in the .Sx Boolean Options subsection of the .Sx THE OPTIONS STATEMENT . .It Ic also-notify .Ic also-notify is only meaningful if .Ic notify is active for this zone. The set of machines that will receive a DNS NOTIFY message for this zone is made up of all the listed nameservers for the zone (other than the primary master) plus any IP addresses specified with .Ic also-notify . .Ic also-notify is not meaningful for .Ic stub zones. The default is the empty list. .It Ic forward .Ic forward is only meaningful if the zone has a .Ic forwarders list. The .Ic only value causes the lookup to fail after trying the .Ic forwarders and getting no answer, while .Ic first would allow a normal lookup to be tried. .It Ic forwarders The .Ic forwarders option in a zone is used to override the list of global forwarders. If it is not specified in a zone of type .Ic forward , .Em no forwarding is done for the zone; the global options are not used. .It Ic pubkey The DNSSEC flags, protocol, and algorithm are specified, as well as a base-64 encoded string representing the key. .El .Sh THE ACL STATEMENT .Ss Syntax .Bd -literal acl \fIname\fR { \fIaddress_match_list\fR }; .Ed .Ss Definition and Usage The .Ic acl statement creates a named address match list. It gets its name from a primary use of address match lists: Access Control Lists (ACLs). .Pp Note that an address match list's name must be defined with .Ic acl before it can be used elsewhere; no forward references are allowed. .Pp The following ACLs are built-in: .Bl -tag -width 1 .It Ic any Allows all hosts. .It Ic none Denies all hosts. .It Ic localhost Allows the IP addresses of all interfaces on the system. .It Ic localnets Allows any host on a network for which the system has an interface. .El .Sh THE KEY STATEMENT .Ss Syntax .Bd -literal key \fIkey_id\fR { algorithm \fIalgorithm_id\fR; secret \fIsecret_string\fR; }; .Ed .Ss Definition and Usage The .Ic key statement defines a key ID which can be used in a .Ic server statement to associate a method of authentication with a particular name server that is more rigorous than simple IP address matching. A key ID must be created with the .Ic key statement before it can be used in a .Ic server definition or an address match list. .Pp The .Va algorithm_id is a string that specifies a security/authentication algorithm. .Va secret_string is the secret to be used by the algorithm, and is treated as a base-64 encoded string. It should go without saying, but probably can't, that if you have .Va secret_string 's in your .Pa named.conf , then it should not be readable by anyone but the superuser. .Sh THE TRUSTED-KEYS STATEMENT .Ss Syntax .Bd -literal trusted-keys { [ \fIdomain_name\fR \fIflags\fR \fIprotocol\fR \fIalgorithm\fR \fIkey\fR; ] }; .Ed .Ss Definition and Usage The .Ic trusted-keys statement is for use with DNSSEC-style security, originally specified in RFC 2065. DNSSEC is meant to provide three distinct services: key distribution, data origin authentication, and transaction and request authentication. A complete description of DNSSEC and its use is beyond the scope of this document, and readers interested in more information should start with RFC 2065 and then continue with the Internet Drafts available at http://www.ietf.org/ids.by.wg/dnssec.html. .Pp Each trusted key is associated with a domain name. Its attributes are the non-negative integral .Va flags , .Va protocol , and .Va algorithm , as well as a base-64 encoded string representing the .Va key . .Pp Any number of trusted keys can be specified. .Sh THE SERVER STATEMENT .Ss Syntax .Bd -literal server \fIip_addr\fR { [ bogus \fIyes_or_no\fR; ] [ transfers \fInumber\fR; ] [ transfer-format ( one-answer | many-answers ); ] [ keys { \fIkey_id\fR [ \fIkey_id\fR ... ] }; ] }; .Ed .Ss Definition and Usage The server statement defines the characteristics to be associated with a remote name server. .Pp If you discover that a server is giving out bad data, marking it as .Ic bogus will prevent further queries to it. The default value of .Ic bogus is .Li no . .Pp The server supports two zone transfer methods. The first, .Ic one-answer , uses one DNS message per resource record transferred. .Ic many-answers packs as many resource records as possible into a message. .Ic many-answers is more efficient, but is only known to be understood by BIND 8.1 and patched versions of BIND 4.9.5. You can specify which method to use for a server with the .Ic transfer-format option. If .Ic transfer-format is not specified, the .Ic transfer-format specified by the .Ic options statement will be used. .Pp The .Ic transfers will be used in a future release of the server to limit the number of concurrent in-bound zone transfers from the specified server. It is checked for syntax but is otherwise ignored. .Pp The .Ic keys clause is used to identify a .Va key_id defined by the .Ic key statement, to be used for transaction security when talking to the remote server. The .Ic key statememnt must come before the .Ic server statement that references it. .Pp The .Ic keys statement is intended for future use by the server. It is checked for syntax but is otherwise ignored. .Sh THE CONTROLS STATEMENT .Ss Syntax .Bd -literal controls { [ inet \fIip_addr\fR port \fIip_port\fR allow { \fIaddress_match_list\fR; }; ] [ unix \fIpath_name\fR perm \fInumber\fR owner \fInumber\fR group \fInumber\fR; ] }; .Ed .Ss Definition and Usage The .Ic controls statement declares control channels to be used by system administrators to affect the operation of the local name server. These control channels are used by the .Nm ndc utility to send commands to and retrieve non-DNS results from a name server. .Pp A .Ic unix control channel is a FIFO in the file system, and access to it is controlled by normal file system permissions. It is created by .Nm named with the specified file mode bits (see .Xr chmod 1 ) , user and group owner. Note that, unlike .Nm chmod , the mode bits specified for .Ic perm will normally have a leading .Li 0 so the number is interpreted as octal. Also note that the user and group ownership specified as .Ic owner and .Ic group must be given as numbers, not names. It is recommended that the permissions be restricted to administrative personnel only, or else any user on the system might be able to manage the local name server. .Pp An .Ic inet control channel is a TCP/IP socket accessible to the Internet, created at the specified .Va ip_port on the specified .Va ip_addr . Modern .Nm telnet clients are capable of speaking directly to these sockets, and the control protocol is ARPAnet-style text. It is recommended that 127.0.0.1 be the only .Va ip_addr used, and this only if you trust all non-privileged users on the local host to manage your name server. .Sh THE INCLUDE STATEMENT .Ss Syntax .Bd -literal include \fIpath_name\fR; .Ed .Ss Definition and Usage The .Ic include statement inserts the specified file at the point that the .Ic include statement is encountered. It cannot be used within another statement, though, so a line such as .Dl acl internal_hosts { include "internal_hosts.acl"; }; is not allowed. .Pp Use .Ic include to break the configuration up into easily-managed chunks. For example: .Bd -literal include "/etc/security/keys.bind"; include "/etc/acls.bind"; .Ed could be used at the top of a BIND configuration file in order to include any ACL or key information. .Pp Be careful not to type ``#include'', like you would in a C program, because ``#'' is used to start a comment. .Sh EXAMPLES The simplest configuration file that is still realistically useful is one which simply defines a hint zone that has a full path to the root servers file. .Bd -literal zone \&".\&" in { type hint; file \&"/var/named/root.cache\&"; }; .Ed Here's a more typical real-world example. .Bd -literal /* * A simple BIND 8 configuration */ logging { category lame-servers { null; }; category cname { null; }; }; options { directory \&"/var/named\&"; }; controls { inet * port 52 allow { any; }; // a bad idea unix \&"/var/run/ndc\&" perm 0600 owner 0 group 0; // the default }; zone \&"isc.org\&" in { type master; file \&"master/isc.org\&"; }; zone \&"vix.com\&" in { type slave; file \&"slave/vix.com\&"; masters { 10.0.0.53; }; }; zone \&"0.0.127.in-addr.arpa\&" in { type master; file \&"master/127.0.0\&"; }; zone \&".\&" in { type hint; file \&"root.cache\&"; }; .Ed .Sh FILES .Bl -tag -width 1 -compact .It Pa /etc/named.conf The BIND 8 .Nm named configuration file. .El .Sh SEE ALSO .Xr named 8 , .Xr ndc 8 @ 1.2.2.3 log @Pull up revision 1.3 (requested by itojun): Upgrade to BIND version 8.2.3. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.2.2.2 2001/01/28 17:09:20 he Exp $ d3 1 a3 1 .\" Copyright (c) 1999-2000 by Internet Software Consortium a830 1 [ host-statistics-max \fInumber\fR; ] a1074 6 .It IC host-statistics-max The maximum number of host records that will be kept. When this limit is reached no new hosts will be added to the host statistics. If the set to zero then there is no limit set. The default value is zero. d1078 1 a1078 4 a IXFR database file is kept for all dynamicaly updated zones. This enables the server to answer IXFR queries which can speed up zone transfers enormously. The default is d1080 4 d1286 1 a1286 2 statement. If not specified, the default is to allow queries from all hosts. d1291 6 a1296 1 If not specified, the default is to allow recursive queries a1762 2 [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] a1776 2 [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] a2140 5 Marking a server as .Ic bogus will mark all other addresses for that server as .Ic bogus when a match is made when looking up a server's address by name. @ 1.2.8.1 log @Pull up revision 1.3 (requested by itojun): Upgrade to BIND version 8.2.3. @ text @d1 1 a1 1 .\" $NetBSD$ d3 1 a3 1 .\" Copyright (c) 1999-2000 by Internet Software Consortium a830 1 [ host-statistics-max \fInumber\fR; ] a1074 6 .It IC host-statistics-max The maximum number of host records that will be kept. When this limit is reached no new hosts will be added to the host statistics. If the set to zero then there is no limit set. The default value is zero. d1078 1 a1078 4 a IXFR database file is kept for all dynamicaly updated zones. This enables the server to answer IXFR queries which can speed up zone transfers enormously. The default is d1080 4 d1286 1 a1286 2 statement. If not specified, the default is to allow queries from all hosts. d1291 6 a1296 1 If not specified, the default is to allow recursive queries a1762 2 [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] a1776 2 [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] a2140 5 Marking a server as .Ic bogus will mark all other addresses for that server as .Ic bogus when a match is made when looking up a server's address by name. @ 1.2.8.2 log @Pull up revisions 1.4-1.7 (requested by itojun): Update BIND to version 8.3.3. @ text @d17 1 d20 2 a21 1 .Os d26 1 d28 1 d35 1 d37 1 d42 1 d45 1 a45 1 .Bl -tag -width 0n d48 1 d52 1 d55 1 d58 1 d61 1 d65 1 d68 1 d73 1 d76 1 d78 1 a78 1 .Pp d86 1 a86 1 .Pp d90 1 a90 1 .Pp d99 1 a99 1 .Pp d103 1 d110 1 a110 1 .Pp d118 1 d124 1 a124 1 .Pp d130 1 d136 2 a137 2 .Pp .Em WARNING : d144 1 d146 2 d152 1 d154 1 d158 2 a159 1 .Bl -tag -width 0n d166 1 d177 1 d185 1 d189 1 d193 1 d195 1 a195 1 An IP address with exactly four elements in d198 1 d209 1 d226 1 d230 1 d236 1 d244 1 d253 1 d271 1 d278 1 d291 1 d293 1 d296 1 d299 1 a299 1 .Pp d304 1 d306 1 d314 1 d341 1 d354 1 d362 1 d371 1 d386 1 d396 1 d408 1 d411 1 d423 1 a423 1 .Pp d430 1 a430 1 .Pp d437 1 d439 1 d449 1 d458 1 d467 1 a467 1 .Pp d478 2 a479 1 you ever do want the parser's messages relocated. d481 1 d484 1 d495 1 d502 1 d509 1 d519 1 d536 1 d544 1 d556 1 a556 1 .Fn openlog d558 1 d567 1 d591 1 d612 1 d619 1 a619 1 .Pp d626 1 d646 1 d650 1 d653 1 d656 2 a657 1 .Sx The category phrase . d663 1 a663 1 .Pp d670 1 a670 1 .Pp d677 1 a677 1 .Pp d682 1 a682 1 .Pp d686 1 d688 1 d697 1 d701 1 a701 1 .Pp d705 1 d714 1 a714 1 .Pp d718 1 d723 1 a723 1 .Pp d725 2 a726 1 .Bl -tag -width 0n d733 1 d736 1 d739 1 d742 1 d745 1 d748 1 d755 1 d758 1 d761 1 d764 1 d767 1 d770 1 d776 1 d782 1 d785 1 d788 1 d791 1 d794 1 d797 1 d800 1 d803 1 d809 1 d811 1 d814 1 a816 1 [ hostname \fIhostname_string\fR; ] d833 1 a833 2 [ notify ( \fIyes_or_no\fR | explicit ); ] [ suppress-initial-notify \fIyes_or_no\fR; ] d841 1 a841 1 [ check-names ( master | slave | response ) ( warn | fail | ignore ); ] d870 2 a871 3 [ sortlist { \fIaddress_match_list\fR }; ] [ rrset-order { \fIorder_spec\fR ; [ \fIorder_spec\fR ; ... ] }; ] [ preferred-glue ( A | AAAA ); ] d874 1 d876 1 d883 5 a887 10 .Ss Server Information .Bl -tag -width 0n .It Ic hostname This defaults to the hostname of the machine hosting the nameserver as found by gethostname(). Its prime purpose is to be able to identify which of a number of anycast servers is actually answering your queries by sending a txt query for .Pa hostname.bind in class chaos to the anycast server and geting back a unique name. Setting the hostname to a empty string ("") will disable processing of the queries. d892 1 a892 2 in class chaos. The default is the real version number of the server, d896 1 a896 3 .El .Ss Pathnames .Bl -tag -width 0n d905 1 a905 1 .Pa \&. , d908 1 d915 1 d924 1 d933 1 d943 1 d953 1 d955 2 a956 1 .Bl -tag -width 0n d971 1 d983 1 d1005 1 d1017 1 d1027 1 d1035 1 d1047 1 d1052 2 a1053 2 .Ic auth-nxdomain yes ; , .Ic maintain-ixfr-base yes ; , d1056 1 a1056 2 .Pp The use of d1064 1 d1071 1 a1071 1 .Em Note : d1075 7 d1090 1 d1101 1 d1110 1 a1110 7 if they do, they will initiate it immediately. If .Li explicit , the DNS NOTIFY messages will only be sent to the addresses in the .Ic also-notify list. The d1117 1 a1117 6 .It Ic suppress-initial-notify If .Li yes , suppress the initial notify messages when the server first loads. The default is .Li no . d1129 1 d1139 1 d1147 1 d1155 2 d1158 1 d1160 1 d1162 1 a1162 1 .Pp d1180 1 d1182 2 d1190 2 a1191 1 .Bl -tag -width 0n d1203 1 d1208 1 d1219 1 d1223 1 d1225 1 d1229 1 d1232 2 a1233 1 .Bl -tag -width 0n d1236 1 d1240 1 d1245 1 d1255 1 d1258 1 d1264 1 d1275 1 d1277 2 d1283 2 a1284 1 .Bl -tag -width 0n d1294 2 a1295 1 .Bl -tag -width 0n d1300 1 d1311 1 d1318 1 d1320 2 d1330 1 d1335 1 d1340 1 a1340 1 .Pp d1344 1 d1350 1 d1352 2 d1371 1 d1378 1 d1380 2 a1381 1 .Bl -tag -width 0n d1388 1 d1405 1 d1412 1 d1417 1 d1432 1 d1445 1 d1447 2 d1457 1 d1476 2 a1477 1 .Bl -tag -width 0n d1481 1 d1486 1 d1506 1 d1512 1 d1517 1 d1519 2 a1520 1 .Bl -tag -width 0n d1523 1 d1527 1 d1534 1 d1545 1 d1551 1 d1553 2 d1568 1 d1576 1 a1576 1 .Pp d1581 1 d1585 1 d1587 2 d1593 1 a1593 1 .Pp d1597 1 a1597 1 .Pp d1601 1 a1601 1 .Pp d1606 1 a1606 1 .Ic topology d1608 1 a1608 1 .Pp d1613 1 a1613 1 .Pp d1621 1 a1621 1 .Pp d1631 1 d1651 1 a1651 1 .Pp d1658 1 d1665 1 d1667 2 d1676 1 a1676 1 .Pp d1680 1 d1684 1 a1684 1 .Pp d1692 1 a1692 1 .Pp d1696 9 a1704 9 .Bl -tag -width indent .It Ic fixed Records are returned in the order they are defined in the zone file. .It Ic random Records are returned in some random order. .It Ic cyclic Records are returned in a round-robin order. .El .Pp d1706 1 a1706 1 .Bd -literal d1712 1 a1712 1 .Pp d1716 1 a1716 1 .Pp d1720 1 a1720 1 .Pp d1724 1 d1728 1 a1728 1 .Pp d1730 1 a1730 8 .Ss Glue Ordering When running a root nameserver it is sometimes necessary to ensure that other nameservers that are priming are successful. This requires that glue A records for at least of the nameservers are returned in the answer to a priming query. This can be achieved by setting .Ic preferred-glue A; which will add A records before other types in the additional section. d1732 2 a1733 1 .Bl -tag -width 0n d1753 1 d1756 1 d1768 1 a1768 1 [ notify ( \fIyes_or_no\fR | explicit ); ] d1772 1 a1772 1 .Pp d1776 1 a1776 1 masters [ port \fIip_port\fR ] { \fIip_addr\fR [ key \fIkey_id\fR ]; [ ... ] }; d1789 1 a1789 1 .Pp d1796 1 a1796 1 .Pp d1803 1 d1805 1 d1810 2 a1811 1 .Bl -tag -width 0n d1815 1 d1832 1 d1838 1 d1848 1 d1865 1 d1872 1 d1881 1 d1883 1 d1889 1 d1901 1 d1909 1 d1911 2 a1912 1 .Bl -tag -width 0n d1918 1 d1926 1 d1930 1 d1938 1 d1947 1 d1955 1 d1963 1 d1971 1 d1985 1 d1997 1 d2006 1 d2011 1 d2014 1 d2020 1 d2022 1 d2028 1 d2034 1 d2037 2 a2038 1 .Bl -tag -width 0n d2048 1 d2051 1 d2058 1 d2060 1 d2072 1 d2087 1 d2090 1 d2096 1 d2098 1 d2109 1 d2119 1 d2122 1 d2125 1 a2127 1 [ edns \fIyes_or_no\fR; ] a2128 1 [ support-ixfr \fIyes_or_no\fR; ] d2134 1 d2136 1 d2139 1 a2139 9 .Pp If you discover that a server does not support EDNS you can prevent named making EDNS queries to it by specifying .Ic edns .Ic no; . The default value of .Ic edns is .Ic yes . d2147 6 a2152 9 .Pp If the server supports IXFR you can tell named to attempt to perform a IXFR style zone transfer by specifing .Ic support-ixfr .Li yes . The default value of .Ic support-ixfr is .Li no . d2171 1 d2178 1 d2193 1 d2199 1 d2202 1 d2214 1 d2216 1 d2225 1 d2249 1 d2266 1 d2269 1 d2273 1 d2275 1 d2284 1 d2290 1 d2295 1 a2295 1 .Pp d2298 1 d2303 1 d2305 1 d2315 1 a2315 1 .Pp d2317 1 d2322 1 a2322 1 .Pp d2327 1 a2327 1 .Pp d2331 1 a2331 1 .Pp d2336 1 a2336 1 .Pp d2341 1 a2341 1 .Pp d2347 1 a2347 1 .Pp d2352 1 a2352 1 .Pp d2358 1 d2360 1 a2360 1 .Bl -tag -width 0n -compact d2366 1 @ 1.2.8.3 log @upgrade to official bind 8.3.4 (itojun) @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.8 2002/11/17 14:09:53 itojun Exp $ a669 2 .It Ic update-security Denied dynamic updates due to access controls. d863 5 a867 8 .Li no . Turning .Lc auth-nxdomain will allow older clients that require .Li AA to be set to accept .Dv NXDOMAIN responses to work. @ 1.2.8.4 log @Multiple version pullup (requested by itojun in ticket #104): sync w/ 8.3.5 sync w/ 8.3.6 @ text @d1 1 a1 1 .\" $NetBSD$ a771 1 [ edns-udp-size \fInumber\fR; ] d959 1 a959 1 is order dependent. d973 1 a973 1 a IXFR database file is kept for all dynamically updated zones. d1290 1 a1290 1 for all zones, but can be overridden on a per-zone basis by including a a1556 10 .Ss EDNS Some firewalls fail to pass EDNS/UDP messages that are larger than certain size, 512 or the UDP reassembly buffer. To allow EDNS to work across such firewalls it is necessary to advertise a EDNS buffer size that is small enough to not trigger failures. .Ic edns-udp-size can be use to adjust the advertised size. Values less than 512 will be increased to 512 and values greater than 4096 will be truncated to 4096. d1976 1 a1976 1 statement must come before the @ 1.2.4.1 log @Pull up to last week's -current. @ text @d1 1 a1 1 .\" $NetBSD: named.conf.5,v 1.2 1999/11/29 18:28:18 christos Exp $ @ 1.1 log @Initial revision @ text @d1 1 a1 1 .\" $NetBSD$ d1314 1 @ 1.1.1.1 log @Import bind 8.2.2-P5. @ text @@ 1.1.1.2 log @BIND 8.2.3 @ text @d3 1 a3 1 .\" Copyright (c) 1999-2000 by Internet Software Consortium a830 1 [ host-statistics-max \fInumber\fR; ] a1074 6 .It IC host-statistics-max The maximum number of host records that will be kept. When this limit is reached no new hosts will be added to the host statistics. If the set to zero then there is no limit set. The default value is zero. d1078 1 a1078 4 a IXFR database file is kept for all dynamicaly updated zones. This enables the server to answer IXFR queries which can speed up zone transfers enormously. The default is d1080 4 d1286 1 a1286 2 statement. If not specified, the default is to allow queries from all hosts. d1291 6 a1296 1 If not specified, the default is to allow recursive queries a1314 1 .El a1761 2 [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] a1775 2 [ forward ( only | first ); ] [ forwarders { [ \fIip_addr\fR ; [ \fIip_addr\fR ; ... ] ] }; ] a2139 5 Marking a server as .Ic bogus will mark all other addresses for that server as .Ic bogus when a match is made when looking up a server's address by name. @ 1.1.1.3 log @ISC BIND 8.3.2. various IPv6 fixes and correctins. @ text @d17 1 d21 1 d26 1 d28 1 d35 1 d37 1 d42 1 d45 1 a45 1 .Bl -tag -width 0n d48 1 d52 1 d55 1 d58 1 d61 1 d65 1 d68 1 d73 1 d76 1 d78 1 a78 1 .Pp d86 1 a86 1 .Pp d90 1 a90 1 .Pp d99 1 a99 1 .Pp d103 1 d110 1 a110 1 .Pp d118 1 d124 1 a124 1 .Pp d130 1 d136 2 a137 2 .Pp .Em WARNING : d144 1 d146 2 d152 1 d154 1 d158 2 a159 1 .Bl -tag -width 0n d166 1 d177 1 d185 1 d189 1 d193 1 d195 1 a195 1 An IP address with exactly four elements in d198 1 d209 1 d226 1 d230 1 d236 1 d244 1 d253 1 d271 1 d278 1 d291 1 d293 1 d296 1 d299 1 a299 1 .Pp d304 1 d306 1 d314 1 d341 1 d354 1 d362 1 d371 1 d386 1 d396 1 d408 1 d411 1 d423 1 a423 1 .Pp d430 1 a430 1 .Pp d437 1 d439 1 d449 1 d458 1 d467 1 a467 1 .Pp d478 2 a479 1 you ever do want the parser's messages relocated. d481 1 d484 1 d495 1 d502 1 d509 1 d519 1 d536 1 d544 1 d556 1 a556 1 .Fn openlog d558 1 d567 1 d591 1 d612 1 d619 1 a619 1 .Pp d626 1 d646 1 d650 1 d653 1 d656 2 a657 1 .Sx The category phrase . d663 1 a663 1 .Pp d670 1 a670 1 .Pp d677 1 a677 1 .Pp d682 1 a682 1 .Pp d686 1 d688 1 d697 1 d701 1 a701 1 .Pp d705 1 d714 1 a714 1 .Pp d718 1 d723 1 a723 1 .Pp d725 2 a726 1 .Bl -tag -width 0n d733 1 d736 1 d739 1 d742 1 d745 1 d748 1 d755 1 d758 1 d761 1 d764 1 d767 1 d770 1 d776 1 d782 1 d785 1 d788 1 d791 1 d794 1 d797 1 d800 1 d803 1 d809 1 d811 1 d814 1 a816 1 [ hostname \fIhostname_string\fR; ] d833 1 a833 2 [ notify ( \fIyes_or_no\fR | explicit ); ] [ suppress-initial-notify \fIyes_or_no\fR; ] d841 1 a841 1 [ check-names ( master | slave | response ) ( warn | fail | ignore ); ] d870 2 a871 3 [ sortlist { \fIaddress_match_list\fR }; ] [ rrset-order { \fIorder_spec\fR ; [ \fIorder_spec\fR ; ... ] }; ] [ preferred-glue ( A | AAAA ); ] d874 1 d876 1 d883 5 a887 10 .Ss Server Information .Bl -tag -width 0n .It Ic hostname This defaults to the hostname of the machine hosting the nameserver as found by gethostname(). Its prime purpose is to be able to identify which of a number of anycast servers is actually answering your queries by sending a txt query for .Pa hostname.bind in class chaos to the anycast server and geting back a unique name. Setting the hostname to a empty string ("") will disable processing of the queries. d892 1 a892 2 in class chaos. The default is the real version number of the server, d896 1 a896 3 .El .Ss Pathnames .Bl -tag -width 0n d905 1 a905 1 .Pa \&. , d908 1 d915 1 d924 1 d933 1 d943 1 d953 1 d955 2 a956 1 .Bl -tag -width 0n d971 1 d983 1 d1005 1 d1017 1 d1027 1 d1035 1 d1047 1 d1052 2 a1053 2 .Ic auth-nxdomain yes ; , .Ic maintain-ixfr-base yes ; , d1056 1 a1056 2 .Pp The use of d1064 1 d1071 1 a1071 1 .Em Note : d1075 7 d1090 1 d1101 1 d1110 1 a1110 7 if they do, they will initiate it immediately. If .Li explicit , the DNS NOTIFY messages will only be sent to the addresses in the .Ic also-notify list. The d1117 1 a1117 6 .It Ic suppress-initial-notify If .Li yes , suppress the initial notify messages when the server first loads. The default is .Li no . d1129 1 d1139 1 d1147 1 d1155 2 d1158 1 d1160 1 d1162 1 a1162 1 .Pp d1180 1 d1182 2 d1190 2 a1191 1 .Bl -tag -width 0n d1203 1 d1208 1 d1219 1 d1223 1 d1225 1 d1229 1 d1232 2 a1233 1 .Bl -tag -width 0n d1236 1 d1240 1 d1245 1 d1255 1 d1258 1 d1264 1 d1275 1 d1277 2 d1283 2 a1284 1 .Bl -tag -width 0n d1294 2 a1295 1 .Bl -tag -width 0n d1300 1 d1311 1 d1318 1 d1320 2 d1330 1 d1335 1 d1340 1 a1340 1 .Pp d1344 1 d1350 1 d1352 2 d1371 1 d1378 1 d1380 2 a1381 1 .Bl -tag -width 0n d1388 1 d1405 1 d1412 1 d1417 1 d1432 1 d1445 1 d1447 2 d1457 1 d1476 2 a1477 1 .Bl -tag -width 0n d1481 1 d1486 1 d1506 1 d1512 1 d1517 1 d1519 2 a1520 1 .Bl -tag -width 0n d1523 1 d1527 1 d1534 1 d1545 1 d1551 1 d1553 2 d1568 1 d1576 1 a1576 1 .Pp d1581 1 d1585 1 d1587 2 d1593 1 a1593 1 .Pp d1597 1 a1597 1 .Pp d1601 1 a1601 1 .Pp d1606 1 a1606 1 .Ic topology d1608 1 a1608 1 .Pp d1613 1 a1613 1 .Pp d1621 1 a1621 1 .Pp d1631 1 d1651 1 a1651 1 .Pp d1658 1 d1665 1 d1667 2 d1676 1 a1676 1 .Pp d1680 1 d1684 1 a1684 1 .Pp d1692 1 a1692 1 .Pp d1696 9 a1704 9 .Bl -tag -width indent .It Ic fixed Records are returned in the order they are defined in the zone file. .It Ic random Records are returned in some random order. .It Ic cyclic Records are returned in a round-robin order. .El .Pp d1706 1 a1706 1 .Bd -literal d1712 1 a1712 1 .Pp d1716 1 a1716 1 .Pp d1720 1 a1720 1 .Pp d1724 1 d1728 1 a1728 1 .Pp d1730 1 a1730 8 .Ss Glue Ordering When running a root nameserver it is sometimes necessary to ensure that other nameservers that are priming are successful. This requires that glue A records for at least of the nameservers are returned in the answer to a priming query. This can be achieved by setting .Ic preferred-glue A; which will add A records before other types in the additional section. d1732 2 a1733 1 .Bl -tag -width 0n d1753 1 d1756 1 d1768 1 a1768 1 [ notify ( \fIyes_or_no\fR | explicit ); ] d1772 1 a1772 1 .Pp d1776 1 a1776 1 masters [ port \fIip_port\fR ] { \fIip_addr\fR [ key \fIkey_id\fR ]; [ ... ] }; d1789 1 a1789 1 .Pp d1796 1 a1796 1 .Pp d1803 1 d1805 1 d1810 2 a1811 1 .Bl -tag -width 0n d1815 1 d1832 1 d1838 1 d1848 1 d1865 1 d1872 1 d1881 1 d1883 1 d1889 1 d1901 1 d1909 1 d1911 2 a1912 1 .Bl -tag -width 0n d1918 1 d1926 1 d1930 1 d1938 1 d1947 1 d1955 1 d1963 1 d1971 1 d1985 1 d1997 1 d2006 1 d2011 1 d2014 1 d2020 1 d2022 1 d2028 1 d2034 1 d2037 2 a2038 1 .Bl -tag -width 0n d2048 1 d2051 1 d2058 1 d2060 1 d2072 1 d2087 1 d2090 1 d2096 1 d2098 1 d2109 1 d2119 1 d2122 1 d2125 1 a2127 1 [ edns \fIyes_or_no\fR; ] a2128 1 [ support-ixfr \fIyes_or_no\fR; ] d2134 1 d2136 1 d2139 1 a2139 9 .Pp If you discover that a server does not support EDNS you can prevent named making EDNS queries to it by specifying .Ic edns .Ic no; . The default value of .Ic edns is .Ic yes . d2147 6 a2152 9 .Pp If the server supports IXFR you can tell named to attempt to perform a IXFR style zone transfer by specifing .Ic support-ixfr .Li yes . The default value of .Ic support-ixfr is .Li no . d2171 1 d2178 1 d2193 1 d2199 1 d2202 1 d2214 1 d2216 1 d2225 1 d2249 1 d2266 1 d2269 1 d2273 1 d2275 1 d2284 1 d2290 1 d2295 1 a2295 1 .Pp d2298 1 d2303 1 d2305 1 d2315 1 a2315 1 .Pp d2317 1 d2322 1 a2322 1 .Pp d2327 1 a2327 1 .Pp d2331 1 a2331 1 .Pp d2336 1 a2336 1 .Pp d2341 1 a2341 1 .Pp d2347 1 a2347 1 .Pp d2352 1 a2352 1 .Pp d2358 1 d2360 1 a2360 1 .Bl -tag -width 0n -compact d2366 1 @ 1.1.1.4 log @BIND 8.3.4, for security fixes (which are already committed) @ text @a669 2 .It Ic update-security Denied dynamic updates due to access controls. d863 5 a867 8 .Li no . Turning .Lc auth-nxdomain will allow older clients that require .Li AA to be set to accept .Dv NXDOMAIN responses to work. @ 1.1.1.5 log @ISC BIND 8.3.5 Highlights vs. 8.3.4 Maintenance release. --- 8.3.5-REL released --- (Mon Jun 2 03:15:53 PDT 2003) 1540. [bug] remove potential memory leak from net_data_create(). 1537. [bug] dig buffer overrun with large command lines. 1535. [bug] winnt: large zone transfers failed. 1536. [cleanup] use NS_MAXMSG to define TCP buffers. 1534. [func] The advertised EDNS UDP buffer size can now be set via named.conf (edns-udp-size). 1533. [bug] don't artificially restrict the update message size. 1532. [bug] use maximum sized answer buffers in res_findzonecut(). 1530. [bug] nslookup computed incorrect reverse lookup for IPv6. 1529. [lint] unused variable in dnsquery.c::main(). 1528. [bug] getaddrinfo() incorrectly rejected a numeric service under certian circumstances. 1527. [proto] add ns_t_apl (42). 1526. [doc] res_{get,set}servers(). 1523. [bug] getipnodebyname with AI_ADDRCONFIG set was broken on HPUX 11.11. Detect IPv6 interfaces under linux. 1519. [port] decunix: conflicting setnetgrent() and innetgr() prototypes. 1518. [cleanup] silence "No root nameservers for class XX" when "forward only;" is set in options. 1517. [cleanup] stop using putshort/putlong internally. 1513. [bug] use ipnodes.{byname,byaddr} for IPv6 NIS lookups. Add support for "YP_MULTI_". 1511. [cleanup] don't use argument names in function prototypes. 1510. [port] openbsd uses /bsd not /kernel. 1506. [bug] named could sometimes set tc incorrectly. 1505. [bug] potential overflow if pointer arithmetic wrapped. 1503. [bug] named could make unnecessary queries for glue if the additional section was full. 1501. [port] decunix: OSF 3.2 does not have native 64 bit support. 1500. [port] linux: namespace collision. 1499. [port] linux: #include bin/dig/dig.c 1498. [bug] ns_makecanon() could under read its destination buffer by one character and fail to properly canonicalise. 1497. [bug] res_mkupdate() used compression pointers when it shouldn't. 1496. [bug] res_mkupdate() didn't support NAPTR. 1494. [bug] memory leak on thread destruction if gethostbyname() / getnetbyname() have been called by the thread. 1493. [bug] check scope for link local servers. 1492. [placeholder] 1491. [cleanup] indentation problems. 1490. [bug] the seek offset was miscalculated when truncating the ixfr log. 1489. [func] named no longer queries for missing additional A6 records. 1488. [port] decunix: TruCluster support. See port/decunix/TruCluster. 1487. [bug] getnetgroup() takes (char **) not (const char **). 1486. [func] res_query() now generates more/better debug on failure 1485. [func] res_send() records the nameserver the response came from. Dig retrieves this rather than reporting the first address. 1484. [bug] dig use sin.sin_port for IPv4. 1483. [bug] nslookup could dereference a NULL pointer under certain circumstances. 1482. [bug] provide local storage for localtime_r result. 1481. [bug] tv.tv_sec and time_t are not always the same type. 1480. [bug] gethostbyname(), getaddrinfo() could drop address if the previous call contained one of the new addresses. 1479. [func] try known lame servers if all other servers have failed. 1478. [cleanup] libbind: don't look for A6 records, don't follow DNAME record (use the CNAMES), remove some bitstring related functions. 1477. [cleanup] libbind: namespace cleanup (irs_* to __irs*, dst_* to __dst_* and tree_* to __tree*) 1476. [bug] dig wasn't using a random query id. 1475. [bug] "query-source address port *" failed to use a system assigned port as documented. 1474. [bug] named wasn't seeing cached NODATA CNAME records. 1473. [bug] nslookup: buffer overrun when looking up reverse IPv6 addresses under IP6.INT when not found under IP6.ARPA. 1472. [port] freebsd; current has pselect(). 1471. [port] 'dig -P' failed on some platforms. 1470. [bug] J.ROOT-SERVERS.NET is now 192.58.128.30. 1467. [deleted] 1461. [func] return referrals for glue (NS/A/AAAA) if recursion is disabled (recursion no;). 1460. [bug] NS_MD5RSA_MAX_BITS was not correct. 1459. [bug] ns_sign2() could fail to compute a correct signature if the TSIG ownername was compressed. 1458. [bug] host: spurious "Unknown algorithm" message with default zone listing. missing white space before '(' in SOA format. 1457. [bug] bison didn't like ns_parser.y. 1456. [doc] document auth-nxdomain default is "no" (see # 524). 1455. [bug] named failed to allow a cached NODATA response for a ANY query to be retrieved. 1454. [contrib] nsverifier from Bob.Whelton@@qwest.com. 1453. [bug] SOA answers should only be cached for the current tick. 1452. [bug] don't cache -ve response SOA record. 1451. [port] bsdos: maybe_fix_includes is not required. 1450. [bug] hint zones don't need to be reloaded when a "child" zone is removed. 1449. [bug] it was possible to orphan glue records. this could lead to panics in stale(). 1438. [bug] glue from a parent zone beneath a child zone could be deleted by loading a child zone. 1437. [bug] linux: probe_ipv6 was broken. 1436. [port] decunix: update sys/bitypes.h 1435. [func] named-xfer: log the zone name when reporting query sent. 1434. [doc] the man page for dn_expand failed to document eomorig. 1433. [lint] remove unused variable. 1432. [func] log TSIG key name if used with zone transfer. 1431. [func] new category "update-security". 1430. [func] libbind: the default nameservers now include ::1/:: as well as 127.0.0.1/0.0.0.0 if none are specified in resolv.conf. 1429. [port] libbind: use strlcat/strlcpy if available. 1428. [port] eventlib.c: cast tv_sec to long when calling *printf(). 1427. [func] define INT8SZ 1426. [port] res_dprintf() now supports format checking w/ gcc. 1425. [bug] 'aa' was not being set appropriately with cross zone CNAMES. 1424. [cleanup] ip6_str2scopeid() now returns u_int32_t. 1423. [bug] 'ndc restart' could fail to restart named if there were no arguments to named. 1422. [cleanup] optarg() etc. are declared in unistd.h. 1421. [bug] clear and check errno when calling strtoul(). 1420. [cleanup] use %p instead of %#x for printing pointers. 1419. [cleanup] getinfo(): kill buflen manipulation. 1418. [port] cast pointers to (size_t) when aligning. 1417. [cleanup] make1101inaddr(): kill size manipulation. 1416. [port] log_vwrite() now supports format checking w/ gcc. 1415. [port] irix: probe for in6addr_any. 1414. [bug] strtoul() cast (char*) to (unsigned char*). 1413. [bug] host: soa values are not signed. 1412. [bug] fix numeric port range check in getaddrinfo(). 1411. [port] freebsd/netbsd/openbsd: #define USE_IFNAMELINKID. 1410. [port] probe for sin6_scope_id when probing for IPv6 structs. 1409. [bug] dig: reverse6 computed a incorrect nibble string. 1408. [cleanup] res_mkquery.c: kill buflen manipulation. 1407. [port] namespace clash EV_ERR -> EV_SETERR @ text @a771 1 [ edns-udp-size \fInumber\fR; ] d959 1 a959 1 is order dependent. d973 1 a973 1 a IXFR database file is kept for all dynamically updated zones. d1290 1 a1290 1 for all zones, but can be overridden on a per-zone basis by including a a1556 10 .Ss EDNS Some firewalls fail to pass EDNS/UDP messages that are larger than certain size, 512 or the UDP reassembly buffer. To allow EDNS to work across such firewalls it is necessary to advertise a EDNS buffer size that is small enough to not trigger failures. .Ic edns-udp-size can be use to adjust the advertised size. Values less than 512 will be increased to 512 and values greater than 4096 will be truncated to 4096. d1976 1 a1976 1 statement must come before the @