man.rndc.html revision c7d32c0b0ff4c01f0d4479af3410d3c06044d48a
770N/A<!--
770N/A - Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
770N/A - Copyright (C) 2000-2003 Internet Software Consortium.
770N/A -
770N/A - Permission to use, copy, modify, and/or distribute this software for any
770N/A - purpose with or without fee is hereby granted, provided that the above
770N/A - copyright notice and this permission notice appear in all copies.
770N/A -
770N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
770N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
770N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
770N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
770N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
770N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
770N/A - PERFORMANCE OF THIS SOFTWARE.
770N/A-->
770N/A<!-- $Id: man.rndc.html,v 1.138 2009/09/08 01:14:42 tbox Exp $ -->
770N/A<html>
873N/A<head>
770N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
770N/A<title>rndc</title>
770N/A<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
770N/A<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
770N/A<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
5205N/A<link rel="prev" href="man.nsupdate.html" title="nsupdate">
770N/A<link rel="next" href="man.rndc.conf.html" title="rndc.conf">
770N/A</head>
1182N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
770N/A<div class="navheader">
3988N/A<table width="100%" summary="Navigation header">
3988N/A<tr><th colspan="3" align="center"><span class="application">rndc</span></th></tr>
1183N/A<tr>
3988N/A<td width="20%" align="left">
1182N/A<a accesskey="p" href="man.nsupdate.html">Prev</a>�</td>
3853N/A<th width="60%" align="center">Manual pages</th>
1182N/A<td width="20%" align="right">�<a accesskey="n" href="man.rndc.conf.html">Next</a>
5221N/A</td>
770N/A</tr>
770N/A</table>
5221N/A<hr>
5221N/A</div>
770N/A<div class="refentry" lang="en">
3853N/A<a name="man.rndc"></a><div class="titlepage"></div>
3853N/A<div class="refnamediv">
5221N/A<h2>Name</h2>
770N/A<p><span class="application">rndc</span> &#8212; name server control utility</p>
770N/A</div>
770N/A<div class="refsynopsisdiv">
775N/A<h2>Synopsis</h2>
775N/A<div class="cmdsynopsis"><p><code class="command">rndc</code> [<code class="option">-b <em class="replaceable"><code>source-address</code></em></code>] [<code class="option">-c <em class="replaceable"><code>config-file</code></em></code>] [<code class="option">-k <em class="replaceable"><code>key-file</code></em></code>] [<code class="option">-s <em class="replaceable"><code>server</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port</code></em></code>] [<code class="option">-V</code>] [<code class="option">-y <em class="replaceable"><code>key_id</code></em></code>] {command}</p></div>
775N/A</div>
5221N/A<div class="refsect1" lang="en">
5221N/A<a name="id2627470"></a><h2>DESCRIPTION</h2>
5221N/A<p><span><strong class="command">rndc</strong></span>
5221N/A controls the operation of a name
5221N/A server. It supersedes the <span><strong class="command">ndc</strong></span> utility
5221N/A that was provided in old BIND releases. If
770N/A <span><strong class="command">rndc</strong></span> is invoked with no command line
770N/A options or arguments, it prints a short summary of the
770N/A supported commands and the available options and their
3853N/A arguments.
770N/A </p>
3853N/A<p><span><strong class="command">rndc</strong></span>
5221N/A communicates with the name server
5221N/A over a TCP connection, sending commands authenticated with
3853N/A digital signatures. In the current versions of
5221N/A <span><strong class="command">rndc</strong></span> and <span><strong class="command">named</strong></span>,
5221N/A the only supported authentication algorithm is HMAC-MD5,
770N/A which uses a shared secret on each end of the connection.
1204N/A This provides TSIG-style authentication for the command
5221N/A request and the name server's response. All commands sent
770N/A over the channel must be signed by a key_id known to the
775N/A server.
5221N/A </p>
770N/A<p><span><strong class="command">rndc</strong></span>
770N/A reads a configuration file to
770N/A determine how to contact the name server and decide what
770N/A algorithm and key it should use.
770N/A </p>
1183N/A</div>
770N/A<div class="refsect1" lang="en">
1204N/A<a name="id2627521"></a><h2>OPTIONS</h2>
5221N/A<div class="variablelist"><dl>
1204N/A<dt><span class="term">-b <em class="replaceable"><code>source-address</code></em></span></dt>
770N/A<dd><p>
1183N/A Use <em class="replaceable"><code>source-address</code></em>
770N/A as the source address for the connection to the server.
770N/A Multiple instances are permitted to allow setting of both
770N/A the IPv4 and IPv6 source addresses.
770N/A </p></dd>
770N/A<dt><span class="term">-c <em class="replaceable"><code>config-file</code></em></span></dt>
770N/A<dd><p>
770N/A Use <em class="replaceable"><code>config-file</code></em>
3853N/A as the configuration file instead of the default,
770N/A <code class="filename">/etc/rndc.conf</code>.
770N/A </p></dd>
770N/A<dt><span class="term">-k <em class="replaceable"><code>key-file</code></em></span></dt>
2270N/A<dd><p>
1204N/A Use <em class="replaceable"><code>key-file</code></em>
1204N/A as the key file instead of the default,
1204N/A <code class="filename">/etc/rndc.key</code>. The key in
1204N/A <code class="filename">/etc/rndc.key</code> will be used to
770N/A authenticate
1183N/A commands sent to the server if the <em class="replaceable"><code>config-file</code></em>
3853N/A does not exist.
1204N/A </p></dd>
770N/A<dt><span class="term">-s <em class="replaceable"><code>server</code></em></span></dt>
2624N/A<dd><p><em class="replaceable"><code>server</code></em> is
1204N/A the name or address of the server which matches a
2624N/A server statement in the configuration file for
3853N/A <span><strong class="command">rndc</strong></span>. If no server is supplied on the
3853N/A command line, the host named by the default-server clause
1204N/A in the options statement of the <span><strong class="command">rndc</strong></span>
770N/A configuration file will be used.
770N/A </p></dd>
3853N/A<dt><span class="term">-p <em class="replaceable"><code>port</code></em></span></dt>
3853N/A<dd><p>
770N/A Send commands to TCP port
770N/A <em class="replaceable"><code>port</code></em>
2624N/A instead
3853N/A of BIND 9's default control channel port, 953.
3853N/A </p></dd>
1204N/A<dt><span class="term">-V</span></dt>
2624N/A<dd><p>
770N/A Enable verbose logging.
770N/A </p></dd>
770N/A<dt><span class="term">-y <em class="replaceable"><code>key_id</code></em></span></dt>
1183N/A<dd><p>
770N/A Use the key <em class="replaceable"><code>key_id</code></em>
770N/A from the configuration file.
770N/A <em class="replaceable"><code>key_id</code></em>
770N/A must be
770N/A known by named with the same algorithm and secret string
5221N/A in order for control message validation to succeed.
5221N/A If no <em class="replaceable"><code>key_id</code></em>
770N/A is specified, <span><strong class="command">rndc</strong></span> will first look
770N/A for a key clause in the server statement of the server
5221N/A being used, or if no server statement is present for that
5221N/A host, then the default-key clause of the options statement.
770N/A Note that the configuration file contains shared secrets
770N/A which are used to send authenticated control commands
770N/A to name servers. It should therefore not have general read
770N/A or write access.
5221N/A </p></dd>
5221N/A</dl></div>
5221N/A<p>
5221N/A For the complete set of commands supported by <span><strong class="command">rndc</strong></span>,
5221N/A see the BIND 9 Administrator Reference Manual or run
5221N/A <span><strong class="command">rndc</strong></span> without arguments to see its help
5221N/A message.
5221N/A </p>
5221N/A</div>
5221N/A<div class="refsect1" lang="en">
5221N/A<a name="id2635733"></a><h2>LIMITATIONS</h2>
5221N/A<p><span><strong class="command">rndc</strong></span>
5221N/A does not yet support all the commands of
770N/A the BIND 8 <span><strong class="command">ndc</strong></span> utility.
770N/A </p>
775N/A<p>
770N/A There is currently no way to provide the shared secret for a
770N/A <code class="option">key_id</code> without using the configuration file.
5221N/A </p>
5221N/A<p>
5221N/A Several error messages could be clearer.
5221N/A </p>
5221N/A</div>
5221N/A<div class="refsect1" lang="en">
5221N/A<a name="id2635764"></a><h2>SEE ALSO</h2>
5221N/A<p><span class="citerefentry"><span class="refentrytitle">rndc.conf</span>(5)</span>,
5221N/A <span class="citerefentry"><span class="refentrytitle">rndc-confgen</span>(8)</span>,
5221N/A <span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
5221N/A <span class="citerefentry"><span class="refentrytitle">named.conf</span>(5)</span>,
5221N/A <span class="citerefentry"><span class="refentrytitle">ndc</span>(8)</span>,
5221N/A <em class="citetitle">BIND 9 Administrator Reference Manual</em>.
5221N/A </p>
5221N/A</div>
770N/A<div class="refsect1" lang="en">
770N/A<a name="id2635819"></a><h2>AUTHOR</h2>
770N/A<p><span class="corpauthor">Internet Systems Consortium</span>
770N/A </p>
5221N/A</div>
5221N/A</div>
5221N/A<div class="navfooter">
5221N/A<hr>
5221N/A<table width="100%" summary="Navigation footer">
770N/A<tr>
770N/A<td width="40%" align="left">
770N/A<a accesskey="p" href="man.nsupdate.html">Prev</a>�</td>
770N/A<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
775N/A<td width="40%" align="right">�<a accesskey="n" href="man.rndc.conf.html">Next</a>
5221N/A</td>
5221N/A</tr>
5221N/A<tr>
5221N/A<td width="40%" align="left" valign="top">
5221N/A<span class="application">nsupdate</span>�</td>
775N/A<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
775N/A<td width="40%" align="right" valign="top">�<code class="filename">rndc.conf</code>
775N/A</td>
775N/A</tr>
770N/A</table>
3853N/A</div>
770N/A</body>
770N/A</html>
5205N/A