]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/bind9/bin/named/named.8
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / bind9 / bin / named / named.8
1 .\" Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
2 .\" Copyright (C) 2000, 2001, 2003 Internet Software Consortium.
3 .\" 
4 .\" Permission to use, copy, modify, and/or distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies.
7 .\" 
8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 .\" PERFORMANCE OF THIS SOFTWARE.
15 .\"
16 .\" $Id$
17 .\"
18 .hy 0
19 .ad l
20 .\"     Title: named
21 .\"    Author: 
22 .\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
23 .\"      Date: May 21, 2009
24 .\"    Manual: BIND9
25 .\"    Source: BIND9
26 .\"
27 .TH "NAMED" "8" "May 21, 2009" "BIND9" "BIND9"
28 .\" disable hyphenation
29 .nh
30 .\" disable justification (adjust text to left margin only)
31 .ad l
32 .SH "NAME"
33 named \- Internet domain name server
34 .SH "SYNOPSIS"
35 .HP 6
36 \fBnamed\fR [\fB\-4\fR] [\fB\-6\fR] [\fB\-c\ \fR\fB\fIconfig\-file\fR\fR] [\fB\-d\ \fR\fB\fIdebug\-level\fR\fR] [\fB\-E\ \fR\fB\fIengine\-name\fR\fR] [\fB\-f\fR] [\fB\-g\fR] [\fB\-m\ \fR\fB\fIflag\fR\fR] [\fB\-n\ \fR\fB\fI#cpus\fR\fR] [\fB\-p\ \fR\fB\fIport\fR\fR] [\fB\-s\fR] [\fB\-S\ \fR\fB\fI#max\-socks\fR\fR] [\fB\-t\ \fR\fB\fIdirectory\fR\fR] [\fB\-u\ \fR\fB\fIuser\fR\fR] [\fB\-v\fR] [\fB\-V\fR] [\fB\-x\ \fR\fB\fIcache\-file\fR\fR]
37 .SH "DESCRIPTION"
38 .PP
39 \fBnamed\fR
40 is a Domain Name System (DNS) server, part of the BIND 9 distribution from ISC. For more information on the DNS, see RFCs 1033, 1034, and 1035.
41 .PP
42 When invoked without arguments,
43 \fBnamed\fR
44 will read the default configuration file
45 \fI/etc/named.conf\fR, read any initial data, and listen for queries.
46 .SH "OPTIONS"
47 .PP
48 \-4
49 .RS 4
50 Use IPv4 only even if the host machine is capable of IPv6.
51 \fB\-4\fR
52 and
53 \fB\-6\fR
54 are mutually exclusive.
55 .RE
56 .PP
57 \-6
58 .RS 4
59 Use IPv6 only even if the host machine is capable of IPv4.
60 \fB\-4\fR
61 and
62 \fB\-6\fR
63 are mutually exclusive.
64 .RE
65 .PP
66 \-c \fIconfig\-file\fR
67 .RS 4
68 Use
69 \fIconfig\-file\fR
70 as the configuration file instead of the default,
71 \fI/etc/named.conf\fR. To ensure that reloading the configuration file continues to work after the server has changed its working directory due to to a possible
72 \fBdirectory\fR
73 option in the configuration file,
74 \fIconfig\-file\fR
75 should be an absolute pathname.
76 .RE
77 .PP
78 \-d \fIdebug\-level\fR
79 .RS 4
80 Set the daemon's debug level to
81 \fIdebug\-level\fR. Debugging traces from
82 \fBnamed\fR
83 become more verbose as the debug level increases.
84 .RE
85 .PP
86 \-E \fIengine\-name\fR
87 .RS 4
88 Use a crypto hardware (OpenSSL engine) for the crypto operations it supports, for instance re\-signing with private keys from a secure key store. When compiled with PKCS#11 support
89 \fIengine\-name\fR
90 defaults to pkcs11, the empty name resets it to no engine.
91 .RE
92 .PP
93 \-f
94 .RS 4
95 Run the server in the foreground (i.e. do not daemonize).
96 .RE
97 .PP
98 \-g
99 .RS 4
100 Run the server in the foreground and force all logging to
101 \fIstderr\fR.
102 .RE
103 .PP
104 \-m \fIflag\fR
105 .RS 4
106 Turn on memory usage debugging flags. Possible flags are
107 \fIusage\fR,
108 \fItrace\fR,
109 \fIrecord\fR,
110 \fIsize\fR, and
111 \fImctx\fR. These correspond to the ISC_MEM_DEBUGXXXX flags described in
112 \fI<isc/mem.h>\fR.
113 .RE
114 .PP
115 \-n \fI#cpus\fR
116 .RS 4
117 Create
118 \fI#cpus\fR
119 worker threads to take advantage of multiple CPUs. If not specified,
120 \fBnamed\fR
121 will try to determine the number of CPUs present and create one thread per CPU. If it is unable to determine the number of CPUs, a single worker thread will be created.
122 .RE
123 .PP
124 \-p \fIport\fR
125 .RS 4
126 Listen for queries on port
127 \fIport\fR. If not specified, the default is port 53.
128 .RE
129 .PP
130 \-s
131 .RS 4
132 Write memory usage statistics to
133 \fIstdout\fR
134 on exit.
135 .RS
136 .B "Note:"
137 This option is mainly of interest to BIND 9 developers and may be removed or changed in a future release.
138 .RE
139 .RE
140 .PP
141 \-S \fI#max\-socks\fR
142 .RS 4
143 Allow
144 \fBnamed\fR
145 to use up to
146 \fI#max\-socks\fR
147 sockets.
148 .RS
149 .B "Warning:"
150 This option should be unnecessary for the vast majority of users. The use of this option could even be harmful because the specified value may exceed the limitation of the underlying system API. It is therefore set only when the default configuration causes exhaustion of file descriptors and the operational environment is known to support the specified number of sockets. Note also that the actual maximum number is normally a little fewer than the specified value because
151 \fBnamed\fR
152 reserves some file descriptors for its internal use.
153 .RE
154 .RE
155 .PP
156 \-t \fIdirectory\fR
157 .RS 4
158 Chroot to
159 \fIdirectory\fR
160 after processing the command line arguments, but before reading the configuration file.
161 .RS
162 .B "Warning:"
163 This option should be used in conjunction with the
164 \fB\-u\fR
165 option, as chrooting a process running as root doesn't enhance security on most systems; the way
166 \fBchroot(2)\fR
167 is defined allows a process with root privileges to escape a chroot jail.
168 .RE
169 .RE
170 .PP
171 \-u \fIuser\fR
172 .RS 4
173 Setuid to
174 \fIuser\fR
175 after completing privileged operations, such as creating sockets that listen on privileged ports.
176 .RS
177 .B "Note:"
178 On Linux,
179 \fBnamed\fR
180 uses the kernel's capability mechanism to drop all root privileges except the ability to
181 \fBbind(2)\fR
182 to a privileged port and set process resource limits. Unfortunately, this means that the
183 \fB\-u\fR
184 option only works when
185 \fBnamed\fR
186 is run on kernel 2.2.18 or later, or kernel 2.3.99\-pre3 or later, since previous kernels did not allow privileges to be retained after
187 \fBsetuid(2)\fR.
188 .RE
189 .RE
190 .PP
191 \-v
192 .RS 4
193 Report the version number and exit.
194 .RE
195 .PP
196 \-V
197 .RS 4
198 Report the version number and build options, and exit.
199 .RE
200 .PP
201 \-x \fIcache\-file\fR
202 .RS 4
203 Load data from
204 \fIcache\-file\fR
205 into the cache of the default view.
206 .RS
207 .B "Warning:"
208 This option must not be used. It is only of interest to BIND 9 developers and may be removed or changed in a future release.
209 .RE
210 .RE
211 .SH "SIGNALS"
212 .PP
213 In routine operation, signals should not be used to control the nameserver;
214 \fBrndc\fR
215 should be used instead.
216 .PP
217 SIGHUP
218 .RS 4
219 Force a reload of the server.
220 .RE
221 .PP
222 SIGINT, SIGTERM
223 .RS 4
224 Shut down the server.
225 .RE
226 .PP
227 The result of sending any other signals to the server is undefined.
228 .SH "CONFIGURATION"
229 .PP
230 The
231 \fBnamed\fR
232 configuration file is too complex to describe in detail here. A complete description is provided in the
233 BIND 9 Administrator Reference Manual.
234 .PP
235 \fBnamed\fR
236 inherits the
237 \fBumask\fR
238 (file creation mode mask) from the parent process. If files created by
239 \fBnamed\fR, such as journal files, need to have custom permissions, the
240 \fBumask\fR
241 should be set explicitly in the script used to start the
242 \fBnamed\fR
243 process.
244 .SH "FILES"
245 .PP
246 \fI/etc/named.conf\fR
247 .RS 4
248 The default configuration file.
249 .RE
250 .PP
251 \fI/var/run/named/named.pid\fR
252 .RS 4
253 The default process\-id file.
254 .RE
255 .SH "SEE ALSO"
256 .PP
257 RFC 1033,
258 RFC 1034,
259 RFC 1035,
260 \fBnamed\-checkconf\fR(8),
261 \fBnamed\-checkzone\fR(8),
262 \fBrndc\fR(8),
263 \fBlwresd\fR(8),
264 \fBnamed.conf\fR(5),
265 BIND 9 Administrator Reference Manual.
266 .SH "AUTHOR"
267 .PP
268 Internet Systems Consortium
269 .SH "COPYRIGHT"
270 Copyright \(co 2004\-2009 Internet Systems Consortium, Inc. ("ISC")
271 .br
272 Copyright \(co 2000, 2001, 2003 Internet Software Consortium.
273 .br