1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
3 - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
4 - Copyright (C) 2000, 2001, 2003 Internet Software Consortium.
6 - Permission to use, copy, modify, and distribute this software for any
7 - purpose with or without fee is hereby granted, provided that the above
8 - copyright notice and this permission notice appear in all copies.
10 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
13 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 - PERFORMANCE OF THIS SOFTWARE.
19 <!-- $Id: named.docbook,v 1.5.98.3 2004/06/03 02:24:57 marka Exp $ -->
23 <date>June 30, 2000</date>
27 <refentrytitle><application>named</application></refentrytitle>
28 <manvolnum>8</manvolnum>
29 <refmiscinfo>BIND9</refmiscinfo>
33 <refname><application>named</application></refname>
34 <refpurpose>Internet domain name server</refpurpose>
39 <command>named</command>
40 <arg><option>-4</option></arg>
41 <arg><option>-6</option></arg>
42 <arg><option>-c <replaceable class="parameter">config-file</replaceable></option></arg>
43 <arg><option>-d <replaceable class="parameter">debug-level</replaceable></option></arg>
44 <arg><option>-f</option></arg>
45 <arg><option>-g</option></arg>
46 <arg><option>-n <replaceable class="parameter">#cpus</replaceable></option></arg>
47 <arg><option>-p <replaceable class="parameter">port</replaceable></option></arg>
48 <arg><option>-s</option></arg>
49 <arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
50 <arg><option>-u <replaceable class="parameter">user</replaceable></option></arg>
51 <arg><option>-v</option></arg>
52 <arg><option>-x <replaceable class="parameter">cache-file</replaceable></option></arg>
57 <title>DESCRIPTION</title>
59 <command>named</command> is a Domain Name System (DNS) server,
60 part of the BIND 9 distribution from ISC. For more
61 information on the DNS, see RFCs 1033, 1034, and 1035.
64 When invoked without arguments, <command>named</command> will
65 read the default configuration file
66 <filename>/etc/named.conf</filename>, read any initial
67 data, and listen for queries.
72 <title>OPTIONS</title>
79 Use IPv4 only even if the host machine is capable of IPv6.
80 <option>-4</option> and <option>-6</option> are mutually
90 Use IPv6 only even if the host machine is capable of IPv4.
91 <option>-4</option> and <option>-6</option> are mutually
97 <term>-c <replaceable class="parameter">config-file</replaceable></term>
101 class="parameter">config-file</replaceable> as the
102 configuration file instead of the default,
103 <filename>/etc/named.conf</filename>. To
104 ensure that reloading the configuration file continues
105 to work after the server has changed its working
106 directory due to to a possible
107 <option>directory</option> option in the configuration
109 class="parameter">config-file</replaceable> should be
110 an absolute pathname.
116 <term>-d <replaceable class="parameter">debug-level</replaceable></term>
119 Set the daemon's debug level to <replaceable
120 class="parameter">debug-level</replaceable>.
121 Debugging traces from <command>named</command> become
122 more verbose as the debug level increases.
131 Run the server in the foreground (i.e. do not daemonize).
140 Run the server in the foreground and force all logging
141 to <filename>stderr</filename>.
147 <term>-n <replaceable class="parameter">#cpus</replaceable></term>
151 class="parameter">#cpus</replaceable> worker threads
152 to take advantage of multiple CPUs. If not specified,
153 <command>named</command> will try to determine the
154 number of CPUs present and create one thread per CPU.
155 If it is unable to determine the number of CPUs, a
156 single worker thread will be created.
162 <term>-p <replaceable class="parameter">port</replaceable></term>
165 Listen for queries on port <replaceable
166 class="parameter">port</replaceable>. If not
167 specified, the default is port 53.
176 Write memory usage statistics to <filename>stdout</filename> on exit.
180 This option is mainly of interest to BIND 9 developers
181 and may be removed or changed in a future release.
188 <term>-t <replaceable class="parameter">directory</replaceable></term>
191 <function>chroot()</function> to <replaceable
192 class="parameter">directory</replaceable> after
193 processing the command line arguments, but before
194 reading the configuration file.
198 This option should be used in conjunction with the
199 <option>-u</option> option, as chrooting a process
200 running as root doesn't enhance security on most
201 systems; the way <function>chroot()</function> is
202 defined allows a process with root privileges to
203 escape a chroot jail.
210 <term>-u <replaceable class="parameter">user</replaceable></term>
213 <function>setuid()</function> to <replaceable
214 class="parameter">user</replaceable> after completing
215 privileged operations, such as creating sockets that
216 listen on privileged ports.
220 On Linux, <command>named</command> uses the kernel's
221 capability mechanism to drop all root privileges
222 except the ability to <function>bind()</function> to a
223 privileged port and set process resource limits.
224 Unfortunately, this means that the <option>-u</option>
225 option only works when <command>named</command> is run
226 on kernel 2.2.18 or later, or kernel 2.3.99-pre3 or
227 later, since previous kernels did not allow privileges
228 to be retained after <function>setuid()</function>.
238 Report the version number and exit.
244 <term>-x <replaceable class="parameter">cache-file</replaceable></term>
247 Load data from <replaceable
248 class="parameter">cache-file</replaceable> into the
249 cache of the default view.
253 This option must not be used. It is only of interest
254 to BIND 9 developers and may be removed or changed in a
266 <title>SIGNALS</title>
268 In routine operation, signals should not be used to control
269 the nameserver; <command>rndc</command> should be used
279 Force a reload of the server.
285 <term>SIGINT, SIGTERM</term>
288 Shut down the server.
296 The result of sending any other signals to the server is undefined.
302 <title>CONFIGURATION</title>
304 The <command>named</command> configuration file is too complex
305 to describe in detail here. A complete description is
306 provided in the <citetitle>BIND 9 Administrator Reference
317 <term><filename>/etc/named.conf</filename></term>
320 The default configuration file.
326 <term><filename>/var/run/named.pid</filename></term>
329 The default process-id file.
339 <title>SEE ALSO</title>
341 <citetitle>RFC 1033</citetitle>,
342 <citetitle>RFC 1034</citetitle>,
343 <citetitle>RFC 1035</citetitle>,
345 <refentrytitle>rndc</refentrytitle>
346 <manvolnum>8</manvolnum>
349 <refentrytitle>lwresd</refentrytitle>
350 <manvolnum>8</manvolnum>
352 <citetitle>BIND 9 Administrator Reference Manual</citetitle>.
357 <title>AUTHOR</title>
359 <corpauthor>Internet Systems Consortium</corpauthor>