man.named.html revision 3b4098640dd85040270f39b9a5ee5e22de99d3d6
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews - Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Copyright (C) 2000-2003 Internet Software Consortium.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - Permission to use, copy, modify, and distribute this software for any
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - purpose with or without fee is hereby granted, provided that the above
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - copyright notice and this permission notice appear in all copies.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews<!-- $Id: man.named.html,v 1.13 2006/01/06 01:55:39 marka Exp $ -->
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
cedb0bd0c1e3c461b7e479a16d3adfd5b150f1f4Mark Andrews<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<link rel="prev" href="man.named-checkzone.html" title="named-checkzone">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<link rel="next" href="man.rndc.html" title="rndc">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<table width="100%" summary="Navigation header">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<tr><th colspan="3" align="center"><span class="application">named</span></th></tr>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<a accesskey="p" href="man.named-checkzone.html">Prev</a>�</td>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<th width="60%" align="center">Manual pages</th>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<td width="20%" align="right">�<a accesskey="n" href="man.rndc.html">Next</a>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<a name="man.named"></a><div class="titlepage"></div>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<p><span class="application">named</span> — Internet domain name server</p>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<div class="cmdsynopsis"><p><code class="command">named</code> [<code class="option">-4</code>] [<code class="option">-6</code>] [<code class="option">-c <em class="replaceable"><code>config-file</code></em></code>] [<code class="option">-d <em class="replaceable"><code>debug-level</code></em></code>] [<code class="option">-f</code>] [<code class="option">-g</code>] [<code class="option">-n <em class="replaceable"><code>#cpus</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port</code></em></code>] [<code class="option">-s</code>] [<code class="option">-t <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-u <em class="replaceable"><code>user</code></em></code>] [<code class="option">-v</code>] [<code class="option">-x <em class="replaceable"><code>cache-file</code></em></code>]</p></div>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<p><span><strong class="command">named</strong></span>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews is a Domain Name System (DNS) server,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews part of the BIND 9 distribution from ISC. For more
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews information on the DNS, see RFCs 1033, 1034, and 1035.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews When invoked without arguments, <span><strong class="command">named</strong></span>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews read the default configuration file
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <code class="filename">/etc/named.conf</code>, read any initial
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews data, and listen for queries.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Use IPv4 only even if the host machine is capable of IPv6.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <code class="option">-4</code> and <code class="option">-6</code> are mutually
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Use IPv6 only even if the host machine is capable of IPv4.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <code class="option">-4</code> and <code class="option">-6</code> are mutually
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term">-c <em class="replaceable"><code>config-file</code></em></span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Use <em class="replaceable"><code>config-file</code></em> as the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews configuration file instead of the default,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <code class="filename">/etc/named.conf</code>. To
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ensure that reloading the configuration file continues
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to work after the server has changed its working
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews directory due to to a possible
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <code class="option">directory</code> option in the configuration
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews file, <em class="replaceable"><code>config-file</code></em> should be
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews an absolute pathname.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term">-d <em class="replaceable"><code>debug-level</code></em></span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Set the daemon's debug level to <em class="replaceable"><code>debug-level</code></em>.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Debugging traces from <span><strong class="command">named</strong></span> become
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews more verbose as the debug level increases.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Run the server in the foreground (i.e. do not daemonize).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Run the server in the foreground and force all logging
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term">-n <em class="replaceable"><code>#cpus</code></em></span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Create <em class="replaceable"><code>#cpus</code></em> worker threads
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to take advantage of multiple CPUs. If not specified,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <span><strong class="command">named</strong></span> will try to determine the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews number of CPUs present and create one thread per CPU.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews If it is unable to determine the number of CPUs, a
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews single worker thread will be created.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term">-p <em class="replaceable"><code>port</code></em></span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Listen for queries on port <em class="replaceable"><code>port</code></em>. If not
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews specified, the default is port 53.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Write memory usage statistics to <code class="filename">stdout</code> on exit.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews This option is mainly of interest to BIND 9 developers
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews and may be removed or changed in a future release.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term">-t <em class="replaceable"><code>directory</code></em></span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to <em class="replaceable"><code>directory</code></em> after
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews processing the command line arguments, but before
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews reading the configuration file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews This option should be used in conjunction with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <code class="option">-u</code> option, as chrooting a process
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews running as root doesn't enhance security on most
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews systems; the way <code class="function">chroot()</code> is
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews defined allows a process with root privileges to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews escape a chroot jail.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term">-u <em class="replaceable"><code>user</code></em></span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to <em class="replaceable"><code>user</code></em> after completing
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews privileged operations, such as creating sockets that
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews listen on privileged ports.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews On Linux, <span><strong class="command">named</strong></span> uses the kernel's
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews capability mechanism to drop all root privileges
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews except the ability to <code class="function">bind()</code> to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews privileged port and set process resource limits.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Unfortunately, this means that the <code class="option">-u</code>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews option only works when <span><strong class="command">named</strong></span> is
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews on kernel 2.2.18 or later, or kernel 2.3.99-pre3 or
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews later, since previous kernels did not allow privileges
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to be retained after <code class="function">setuid()</code>.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Report the version number and exit.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term">-x <em class="replaceable"><code>cache-file</code></em></span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Load data from <em class="replaceable"><code>cache-file</code></em> into the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews cache of the default view.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews This option must not be used. It is only of interest
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to BIND 9 developers and may be removed or changed in a
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews future release.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews In routine operation, signals should not be used to control
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews the nameserver; <span><strong class="command">rndc</strong></span> should be used
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Force a reload of the server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term">SIGINT, SIGTERM</span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Shut down the server.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews The result of sending any other signals to the server is undefined.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews The <span><strong class="command">named</strong></span> configuration file is too complex
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews to describe in detail here. A complete description is provided
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term"><code class="filename">/etc/named.conf</code></span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews The default configuration file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<dt><span class="term"><code class="filename">/var/run/named.pid</code></span></dt>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews The default process-id file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <span class="citerefentry"><span class="refentrytitle">rndc</span>(8)</span>,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <span class="citerefentry"><span class="refentrytitle">lwresd</span>(8)</span>,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<p><span class="corpauthor">Internet Systems Consortium</span>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<table width="100%" summary="Navigation footer">
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<a accesskey="p" href="man.named-checkzone.html">Prev</a>�</td>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<td width="40%" align="right">�<a accesskey="n" href="man.rndc.html">Next</a>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<td width="40%" align="left" valign="top"><span class="application">named-checkzone</span>�</td>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews<td width="40%" align="right" valign="top">�<span class="application">rndc</span></td>