rndc.docbook revision dafcb997e390efa4423883dafd100c975c4095d6
c330021bf3f45cbf187fa644781e67f7e470a58awrowe<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
7d5ac94fda90b837211dadf2585c0fe8c5dc3e5djerenkrantz<!--
c330021bf3f45cbf187fa644781e67f7e470a58awrowe - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz - Copyright (C) 2001 Internet Software Consortium.
62f7716b14b71603a8004434ca3536902bfb8899wrowe -
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - Permission to use, copy, modify, and distribute this software for any
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - purpose with or without fee is hereby granted, provided that the above
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - copyright notice and this permission notice appear in all copies.
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe -
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe - PERFORMANCE OF THIS SOFTWARE.
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe-->
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe<!-- $Id: rndc.docbook,v 1.8 2004/03/05 04:58:20 marka Exp $ -->
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe<refentry>
366616a5cc6212cbf7134ccf877f965d668c6b04wrowe <refentryinfo>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz <date>June 30, 2000</date>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz </refentryinfo>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz
c330021bf3f45cbf187fa644781e67f7e470a58awrowe <refmeta>
87d944bf70927764edf8ef69e46d3b4b8fa09131pquerna <refentrytitle><application>rndc</application></refentrytitle>
87d944bf70927764edf8ef69e46d3b4b8fa09131pquerna <manvolnum>8</manvolnum>
39dbd3f60b93f5e0fbf46d9ae237f6742e113442pquerna <refmiscinfo>BIND9</refmiscinfo>
7e97354b25d4291fc5d89aabe22c2e1df05059efstriker </refmeta>
ac3b8679ebc4b0889ecc0631fdde514a44d0a496jerenkrantz
0cba3a63e59bfa77f67955cb4e034264ed6c5523jerenkrantz <refnamediv>
84cbf7ab5adeca6b94c462a46d74f17388b6ff6fjerenkrantz <refname><application>rndc</application></refname>
84cbf7ab5adeca6b94c462a46d74f17388b6ff6fjerenkrantz <refpurpose>name server control utility</refpurpose>
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj </refnamediv>
af4c982a7cf4515f124935f99a329744035fc699slive
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe <refsynopsisdiv>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe <cmdsynopsis>
2b8a78eefeba261ced96c3e57527d8ae3fce2f1aerikabele <command>rndc</command>
d96ee8cda2799e1f2743c1603adeb4833ed0e15fslive <arg><option>-c <replaceable class="parameter">config-file</replaceable></option></arg>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz <arg><option>-k <replaceable class="parameter">key-file</replaceable></option></arg>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz <arg><option>-s <replaceable class="parameter">server</replaceable></option></arg>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz <arg><option>-p <replaceable class="parameter">port</replaceable></option></arg>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz <arg><option>-V</option></arg>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz <arg><option>-y <replaceable class="parameter">key_id</replaceable></option></arg>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz <arg choice="req">command</arg>
ecf8d72af432e53e4c0661fb99dfda8061507bfajerenkrantz </cmdsynopsis>
d96ee8cda2799e1f2743c1603adeb4833ed0e15fslive </refsynopsisdiv>
d96ee8cda2799e1f2743c1603adeb4833ed0e15fslive
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe <refsect1>
62f7716b14b71603a8004434ca3536902bfb8899wrowe <title>DESCRIPTION</title>
4b62424416882687387923b3130b96241503cbe0jerenkrantz <para>
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz <command>rndc</command> controls the operation of a name
62f7716b14b71603a8004434ca3536902bfb8899wrowe server. It supersedes the <command>ndc</command> utility
45b0e1c775c1cfed6473c9e5304179ccb9609f53stoddard that was provided in old BIND releases. If
dbec4658981e4f9127e8676457c28d42932be7cdtrawick <command>rndc</command> is invoked with no command line
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stas options or arguments, it prints a short summary of the
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stas supported commands and the available options and their
47c81da11264e8870b146dbdf3ac0384d3290ae9jerenkrantz arguments.
0db0abcbe4211435c08e0c0e8f5daa278bed3524wsanchez </para>
0db0abcbe4211435c08e0c0e8f5daa278bed3524wsanchez <para>
0db0abcbe4211435c08e0c0e8f5daa278bed3524wsanchez <command>rndc</command> communicates with the name server
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stas over a TCP connection, sending commands authenticated with
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stas digital signatures. In the current versions of
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stas <command>rndc</command> and <command>named</command> named
0db0abcbe4211435c08e0c0e8f5daa278bed3524wsanchez the only supported authentication algorithm is HMAC-MD5,
47c81da11264e8870b146dbdf3ac0384d3290ae9jerenkrantz which uses a shared secret on each end of the connection.
0db0abcbe4211435c08e0c0e8f5daa278bed3524wsanchez This provides TSIG-style authentication for the command
d64eb0a76ec10c2405d14b892b0eb0f7ce27a613stas request and the name server's response. All commands sent
d64eb0a76ec10c2405d14b892b0eb0f7ce27a613stas over the channel must be signed by a key_id known to the
d64eb0a76ec10c2405d14b892b0eb0f7ce27a613stas server.
f6a9b598f78b2e745456bfc4bbc4afd2d1572aa9stas </para>
62f7716b14b71603a8004434ca3536902bfb8899wrowe <para>
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz <command>rndc</command> reads a configuration file to
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz determine how to contact the name server and decide what
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick algorithm and key it should use.
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick </para>
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick </refsect1>
c95a8116bde20ab75f2e54d0e867bdf2e13643c3jim
b08ed1b8a8afa3d8466300f4607b9d1179d2f1eaerikabele <refsect1>
b08ed1b8a8afa3d8466300f4607b9d1179d2f1eaerikabele <title>OPTIONS</title>
13402b2193f52031b2acfbee2b0965e02f3f29b4wrowe
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick <variablelist>
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick <varlistentry>
418f39e60a288f855ec033b566744489c3bbbf39trawick <term>-c <replaceable class="parameter">config-file</replaceable></term>
cc22a72861c58dda7f3768613aec864e4c4e0353striker <listitem>
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick <para>
ddafc111b94558ef4e2d7357ceda623315566ce3slive Use <replaceable class="parameter">config-file</replaceable>
ddafc111b94558ef4e2d7357ceda623315566ce3slive as the configuration file instead of the default,
b08ed1b8a8afa3d8466300f4607b9d1179d2f1eaerikabele <filename>/etc/rndc.conf</filename>.
0db0abcbe4211435c08e0c0e8f5daa278bed3524wsanchez </para>
ddafc111b94558ef4e2d7357ceda623315566ce3slive </listitem>
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb </varlistentry>
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb
bca5b27d271b6e1690134a83963424b9825d93bdstriker <varlistentry>
bca5b27d271b6e1690134a83963424b9825d93bdstriker <term>-k <replaceable class="parameter">key-file</replaceable></term>
b08ed1b8a8afa3d8466300f4607b9d1179d2f1eaerikabele <listitem>
13402b2193f52031b2acfbee2b0965e02f3f29b4wrowe <para>
13402b2193f52031b2acfbee2b0965e02f3f29b4wrowe Use <replaceable class="parameter">key-file</replaceable>
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim as the key file instead of the default,
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim <filename>/etc/rndc.key</filename>. The key in
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim <filename>/etc/rndc.key</filename> will be used to authenticate
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb commands sent to the server if the <replaceable class="parameter">config-file</replaceable>
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz does not exist.
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz </para>
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz </listitem>
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz </varlistentry>
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz <varlistentry>
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287lars <term>-s <replaceable class="parameter">server</replaceable></term>
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz <listitem>
7718f3d5b4da70eb063877f5300ee361435910f4nd <para>
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim <replaceable class="parameter">server</replaceable> is
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim the name or address of the server which matches a
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim server statement in the configuration file for
7718f3d5b4da70eb063877f5300ee361435910f4nd <command>rndc</command>. If no server is supplied on the
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287lars command line, the host named by the default-server clause
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287lars in the option statement of the configuration file will be
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz used.
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz </para>
7718f3d5b4da70eb063877f5300ee361435910f4nd </listitem>
1af5c0e25a649bb298e25ddfa5418fa18bdcb107aaron </varlistentry>
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim
82455c2e3b6991846fbcbf0c9e41f57dbc681217brianp <varlistentry>
84cbf7ab5adeca6b94c462a46d74f17388b6ff6fjerenkrantz <term>-p <replaceable class="parameter">port</replaceable></term>
771a4d2c4ebe8debc609ed7d65938c4b72b9d4cepquerna <listitem>
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz <para>
62f7716b14b71603a8004434ca3536902bfb8899wrowe Send commands to TCP port
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz <replaceable class="parameter">port</replaceable> instead
b05930e6008f69bd323abe0c10f81f40ffd27983brianp of BIND 9's default control channel port, 953.
d96ee8cda2799e1f2743c1603adeb4833ed0e15fslive </para>
380584d22150608f50ca4ae8089efeb30794514ajerenkrantz </listitem>
d96ee8cda2799e1f2743c1603adeb4833ed0e15fslive </varlistentry>
a07cab794b2b8d92dae6ad9f2642be77a010f5acpquerna
ed7c594e460858633e768386dbc1447a2ccdfe04pquerna <varlistentry>
0723420d6007137272f4f140ffd17035b17c1563nd <term>-V</term>
0723420d6007137272f4f140ffd17035b17c1563nd <listitem>
0723420d6007137272f4f140ffd17035b17c1563nd <para>
0723420d6007137272f4f140ffd17035b17c1563nd Enable verbose logging.
0723420d6007137272f4f140ffd17035b17c1563nd </para>
0723420d6007137272f4f140ffd17035b17c1563nd </listitem>
0723420d6007137272f4f140ffd17035b17c1563nd </varlistentry>
0723420d6007137272f4f140ffd17035b17c1563nd
0723420d6007137272f4f140ffd17035b17c1563nd <varlistentry>
0723420d6007137272f4f140ffd17035b17c1563nd <term>-y <replaceable class="parameter">keyid</replaceable></term>
0723420d6007137272f4f140ffd17035b17c1563nd <listitem>
0723420d6007137272f4f140ffd17035b17c1563nd <para>
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz Use the key <replaceable class="parameter">keyid</replaceable>
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz from the configuration file.
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz <replaceable class="parameter">keyid</replaceable> must be
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz known by named with the same algorithm and secret string
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz in order for control message validation to succeed.
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz If no <replaceable class="parameter">keyid</replaceable>
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz is specified, <command>rndc</command> will first look
56afb23a30271d30e87f225cce6c69969d6dd8bbwrowe for a key clause in the server statement of the server
56afb23a30271d30e87f225cce6c69969d6dd8bbwrowe being used, or if no server statement is present for that
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz host, then the default-key clause of the options statement.
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe Note that the configuration file contains shared secrets
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe which are used to send authenticated control commands
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe to name servers. It should therefore not have general read
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe or write access.
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe </para>
b3b4e853e4958357ee2d50e2fe41effecfde9eedwrowe </listitem>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe </varlistentry>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe </variablelist>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe <para>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe For the complete set of commands supported by <command>rndc</command>,
6362fd5c48f6b2193f5d356a9747172101b24e91jerenkrantz see the BIND 9 Administrator Reference Manual or run
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe <command>rndc</command> without arguments to see its help message.
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe </para>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe
c330021bf3f45cbf187fa644781e67f7e470a58awrowe </refsect1>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe <refsect1>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe <title>LIMITATIONS</title>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe <para>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe <command>rndc</command> does not yet support all the commands of
b05930e6008f69bd323abe0c10f81f40ffd27983brianp the BIND 8 <command>ndc</command> utility.
b05930e6008f69bd323abe0c10f81f40ffd27983brianp </para>
b05930e6008f69bd323abe0c10f81f40ffd27983brianp <para>
b05930e6008f69bd323abe0c10f81f40ffd27983brianp There is currently no way to provide the shared secret for a
b05930e6008f69bd323abe0c10f81f40ffd27983brianp <option>key_id</option> without using the configuration file.
4c7dab038d90d7feb67ef8ddbfacc77be8c9dbf0jwoolley </para>
4c7dab038d90d7feb67ef8ddbfacc77be8c9dbf0jwoolley <para>
4c7dab038d90d7feb67ef8ddbfacc77be8c9dbf0jwoolley Several error messages could be clearer.
4c7dab038d90d7feb67ef8ddbfacc77be8c9dbf0jwoolley </para>
bb2a72a6e2327ae4f177c9d26e9d433033cfc27eaaron </refsect1>
8c8fbb8546af54582539898be704411a60058d85trawick
8c8fbb8546af54582539898be704411a60058d85trawick <refsect1>
8c8fbb8546af54582539898be704411a60058d85trawick <title>SEE ALSO</title>
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard <para>
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard <citerefentry>
f9b8e29cfca92cf0a996e8ab17fa1a1f447cecc7stoddard <refentrytitle>rndc.conf</refentrytitle>
a23b1c5a74208b03884c09a6f9dd5d6c97fa6415trawick <manvolnum>5</manvolnum>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe </citerefentry>,
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <citerefentry>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <refentrytitle>named</refentrytitle>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <manvolnum>8</manvolnum>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe </citerefentry>,
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <citerefentry>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <refentrytitle>named.conf</refentrytitle>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <manvolnum>5</manvolnum>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe </citerefentry>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <citerefentry>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <refentrytitle>ndc</refentrytitle>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <manvolnum>8</manvolnum>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe </citerefentry>,
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <citetitle>BIND 9 Administrator Reference Manual</citetitle>.
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe </para>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe </refsect1>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <refsect1>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <title>AUTHOR</title>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <para>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe <corpauthor>Internet Software Consortium</corpauthor>
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe </para>
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe </refsect1>
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb</refentry>
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb<!--
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb - Local variables:
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb - mode: sgml
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb - End:
5d12baef135b5d3cb94745e007a1575398469724jerenkrantz-->
5d12baef135b5d3cb94745e007a1575398469724jerenkrantz
5d12baef135b5d3cb94745e007a1575398469724jerenkrantz