rndc.docbook revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User - Copyright (C) 2000, 2001, 2004, 2005, 2007, 2013-2016 Internet Systems Consortium, Inc. ("ISC")
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater - This Source Code Form is subject to the terms of the Mozilla Public
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater - License, v. 2.0. If a copy of the MPL was not distributed with this
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - file, You can obtain one at http://mozilla.org/MPL/2.0/.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt<!-- Converted by db4-upgrade version 1.0 -->
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="man.rndc">
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <refentryinfo>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User </refentryinfo>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <refentrytitle><application>rndc</application></refentrytitle>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <refnamediv>
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater <refname><application>rndc</application></refname>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <refpurpose>name server control utility</refpurpose>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </refnamediv>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </copyright>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </copyright>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <refsynopsisdiv>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <arg choice="opt" rep="norepeat"><option>-b <replaceable class="parameter">source-address</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">config-file</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg choice="opt" rep="norepeat"><option>-k <replaceable class="parameter">key-file</replaceable></option></arg>
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User <arg choice="opt" rep="norepeat"><option>-s <replaceable class="parameter">server</replaceable></option></arg>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <arg choice="opt" rep="norepeat"><option>-p <replaceable class="parameter">port</replaceable></option></arg>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <arg choice="opt" rep="norepeat"><option>-q</option></arg>
f5ae3cca1d2832239cc821bdef77e90c1739e66dTinderbox User <arg choice="opt" rep="norepeat"><option>-r</option></arg>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <arg choice="opt" rep="norepeat"><option>-V</option></arg>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <arg choice="opt" rep="norepeat"><option>-y <replaceable class="parameter">key_id</replaceable></option></arg>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <arg choice="req" rep="norepeat">command</arg>
ec899c963c91c16c393e067996400ae244921110Tinderbox User </cmdsynopsis>
ec899c963c91c16c393e067996400ae244921110Tinderbox User </refsynopsisdiv>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <refsection><info><title>DESCRIPTION</title></info>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt controls the operation of a name
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt server. It supersedes the <command>ndc</command> utility
ec899c963c91c16c393e067996400ae244921110Tinderbox User that was provided in old BIND releases. If
ec899c963c91c16c393e067996400ae244921110Tinderbox User <command>rndc</command> is invoked with no command line
ec899c963c91c16c393e067996400ae244921110Tinderbox User options or arguments, it prints a short summary of the
ec899c963c91c16c393e067996400ae244921110Tinderbox User supported commands and the available options and their
ec899c963c91c16c393e067996400ae244921110Tinderbox User communicates with the name server over a TCP connection, sending
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt commands authenticated with digital signatures. In the current
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <command>rndc</command> and <command>named</command>,
ec899c963c91c16c393e067996400ae244921110Tinderbox User the only supported authentication algorithms are HMAC-MD5
ec899c963c91c16c393e067996400ae244921110Tinderbox User (for compatibility), HMAC-SHA1, HMAC-SHA224, HMAC-SHA256
ec899c963c91c16c393e067996400ae244921110Tinderbox User (default), HMAC-SHA384 and HMAC-SHA512.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt They use a shared secret on each end of the connection.
ec899c963c91c16c393e067996400ae244921110Tinderbox User This provides TSIG-style authentication for the command
ec899c963c91c16c393e067996400ae244921110Tinderbox User request and the name server's response. All commands sent
ec899c963c91c16c393e067996400ae244921110Tinderbox User over the channel must be signed by a key_id known to the
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User reads a configuration file to
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt determine how to contact the name server and decide what
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt algorithm and key it should use.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </refsection>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <variablelist>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <term>-b <replaceable class="parameter">source-address</replaceable></term>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt Use <replaceable class="parameter">source-address</replaceable>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt as the source address for the connection to the server.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt Multiple instances are permitted to allow setting of both
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater the IPv4 and IPv6 source addresses.
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater </varlistentry>
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater <varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <term>-c <replaceable class="parameter">config-file</replaceable></term>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt Use <replaceable class="parameter">config-file</replaceable>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt as the configuration file instead of the default,
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <term>-k <replaceable class="parameter">key-file</replaceable></term>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt Use <replaceable class="parameter">key-file</replaceable>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt as the key file instead of the default,
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <filename>/etc/rndc.key</filename> will be used to
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt authenticate
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt commands sent to the server if the <replaceable class="parameter">config-file</replaceable>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt does not exist.
ec899c963c91c16c393e067996400ae244921110Tinderbox User </varlistentry>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <varlistentry>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <term>-s <replaceable class="parameter">server</replaceable></term>
ec899c963c91c16c393e067996400ae244921110Tinderbox User <para><replaceable class="parameter">server</replaceable> is
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater the name or address of the server which matches a
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater server statement in the configuration file for
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater <command>rndc</command>. If no server is supplied on the
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater command line, the host named by the default-server clause
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater in the options statement of the <command>rndc</command>
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater configuration file will be used.
ec899c963c91c16c393e067996400ae244921110Tinderbox User </varlistentry>
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater <varlistentry>
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater <term>-p <replaceable class="parameter">port</replaceable></term>
ec899c963c91c16c393e067996400ae244921110Tinderbox User Send commands to TCP port
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater <replaceable class="parameter">port</replaceable>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt of BIND 9's default control channel port, 953.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User </varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt Quiet mode: Message text returned by the server
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt will not be printed except when there is an error.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt Instructs <command>rndc</command> to print the result code
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt returned by <command>named</command> after executing the
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt requested command (e.g., ISC_R_SUCCESS, ISC_R_FAILURE, etc).
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater </varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <varlistentry>
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater Enable verbose logging.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </varlistentry>
30c0c7470d5bfabd8f43c563f4eca636d06cc484Tinderbox User <varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <term>-y <replaceable class="parameter">key_id</replaceable></term>
<term><userinput>addzone <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional> <replaceable>configuration</replaceable> </userinput></term>
<prompt>$ </prompt><userinput>rndc addzone example.com '{ type master; file "example.com.db"; };'</userinput>
<term><userinput>delzone <optional>-clean</optional> <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional> </userinput></term>
<term><userinput>dumpdb <optional>-all|-cache|-zone|-adb|-bad|-fail</optional> <optional><replaceable>view ...</replaceable></optional></userinput></term>
<term><userinput>flushname</userinput> <replaceable>name</replaceable> <optional><replaceable>view</replaceable></optional> </term>
<term><userinput>flushtree</userinput> <replaceable>name</replaceable> <optional><replaceable>view</replaceable></optional> </term>
<term><userinput>freeze <optional><replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></optional></userinput></term>
<term><userinput>loadkeys <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>managed-keys <replaceable>(status | refresh | sync)</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>modzone <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional> <replaceable>configuration</replaceable> </userinput></term>
<term><userinput>notify <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
All of these options can be shortened, i.e., to
<term><userinput>refresh <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>reload <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>retransfer <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>secroots <optional>-</optional> <optional><replaceable>view ...</replaceable></optional></userinput></term>
<term><userinput>showzone <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional> </userinput></term>
<term><userinput>sign <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>signing <optional>( -list | -clear <replaceable>keyid/algorithm</replaceable> | -clear <literal>all</literal> | -nsec3param ( <replaceable>parameters</replaceable> | <literal>none</literal> ) | -serial <replaceable>value</replaceable> ) </optional> <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional> </userinput></term>
<term><userinput>sync <optional>-clean</optional> <optional><replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></optional></userinput></term>
<term><userinput>thaw <optional><replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></optional></userinput></term>
<term><userinput>tsig-delete</userinput> <replaceable>keyname</replaceable> <optional><replaceable>view</replaceable></optional></term>
<term><userinput>validation ( on | off | check ) <optional><replaceable>view ...</replaceable></optional> </userinput></term>