rndc.docbook revision 2f5461d23b4044b62d4d668732611909d902e54d
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley [<!ENTITY mdash "—">]>
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - Copyright (C) 2004, 2005, 2007, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - Copyright (C) 2000, 2001 Internet Software Consortium.
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - Permission to use, copy, modify, and/or distribute this software for any
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - purpose with or without fee is hereby granted, provided that the above
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - copyright notice and this permission notice appear in all copies.
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley - PERFORMANCE OF THIS SOFTWARE.
904a5734375869ffb504ed8cde6b68cafadb6d64Bob Halley <refentryinfo>
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley </refentryinfo>
904a5734375869ffb504ed8cde6b68cafadb6d64Bob Halley <refentrytitle><application>rndc</application></refentrytitle>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <refnamediv>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <refname><application>rndc</application></refname>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <refpurpose>name server control utility</refpurpose>
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley </refnamediv>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </copyright>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </copyright>
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley <refsynopsisdiv>
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews <cmdsynopsis>
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews <arg><option>-b <replaceable class="parameter">source-address</replaceable></option></arg>
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews <arg><option>-c <replaceable class="parameter">config-file</replaceable></option></arg>
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews <arg><option>-k <replaceable class="parameter">key-file</replaceable></option></arg>
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews <arg><option>-s <replaceable class="parameter">server</replaceable></option></arg>
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley <arg><option>-p <replaceable class="parameter">port</replaceable></option></arg>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <arg><option>-y <replaceable class="parameter">key_id</replaceable></option></arg>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </cmdsynopsis>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </refsynopsisdiv>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews controls the operation of a name
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews server. It supersedes the <command>ndc</command> utility
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews that was provided in old BIND releases. If
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <command>rndc</command> is invoked with no command line
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews options or arguments, it prints a short summary of the
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews supported commands and the available options and their
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews communicates with the name server over a TCP connection, sending
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews commands authenticated with digital signatures. In the current
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <command>rndc</command> and <command>named</command>,
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews the only supported authentication algorithms are HMAC-MD5
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews (for compatibility), HMAC-SHA1, HMAC-SHA224, HMAC-SHA256
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews (default), HMAC-SHA384 and HMAC-SHA512.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews They use a shared secret on each end of the connection.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews This provides TSIG-style authentication for the command
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews request and the name server's response. All commands sent
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews over the channel must be signed by a key_id known to the
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews reads a configuration file to
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews determine how to contact the name server and decide what
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews algorithm and key it should use.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <variablelist>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <term>-b <replaceable class="parameter">source-address</replaceable></term>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Use <replaceable class="parameter">source-address</replaceable>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews as the source address for the connection to the server.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Multiple instances are permitted to allow setting of both
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews the IPv4 and IPv6 source addresses.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <term>-c <replaceable class="parameter">config-file</replaceable></term>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Use <replaceable class="parameter">config-file</replaceable>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews as the configuration file instead of the default,
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <term>-k <replaceable class="parameter">key-file</replaceable></term>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Use <replaceable class="parameter">key-file</replaceable>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews as the key file instead of the default,
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <filename>/etc/rndc.key</filename> will be used to
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews authenticate
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews commands sent to the server if the <replaceable class="parameter">config-file</replaceable>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews does not exist.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <term>-s <replaceable class="parameter">server</replaceable></term>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <para><replaceable class="parameter">server</replaceable> is
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews the name or address of the server which matches a
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews server statement in the configuration file for
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <command>rndc</command>. If no server is supplied on the
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews command line, the host named by the default-server clause
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews in the options statement of the <command>rndc</command>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews configuration file will be used.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <term>-p <replaceable class="parameter">port</replaceable></term>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Send commands to TCP port
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <replaceable class="parameter">port</replaceable>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews of BIND 9's default control channel port, 953.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Quiet mode: Message text returned by the server
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews will not be printed except when there is an error.
62e22bc7a5497d759583693ba22d3ef4d9a042afAndreas Gustafsson </varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Enable verbose logging.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <term>-y <replaceable class="parameter">key_id</replaceable></term>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Use the key <replaceable class="parameter">key_id</replaceable>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews from the configuration file.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <replaceable class="parameter">key_id</replaceable>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews known by named with the same algorithm and secret string
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews in order for control message validation to succeed.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews If no <replaceable class="parameter">key_id</replaceable>
62e22bc7a5497d759583693ba22d3ef4d9a042afAndreas Gustafsson is specified, <command>rndc</command> will first look
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews for a key clause in the server statement of the server
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews being used, or if no server statement is present for that
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews host, then the default-key clause of the options statement.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Note that the configuration file contains shared secrets
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews which are used to send authenticated control commands
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews to name servers. It should therefore not have general read
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews or write access.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </variablelist>
de10b83a231451e03d08b3293c503d11ea03a90bMark Andrews A list of commands supported by <command>rndc</command> can
de10b83a231451e03d08b3293c503d11ea03a90bMark Andrews be seen by running <command>rndc</command> without arguments.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Currently supported commands are:
518be7faab2498c795e6dc9bb25ac10ca38b3a8dMark Andrews <variablelist>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews Reload configuration file and zones.
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews </varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <varlistentry>
52637f592f705ca93fadc218e403fd55e8ce4aeaMark Andrews <term><userinput>reload <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews Reload the given zone.
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews </varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <term><userinput>refresh <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews Schedule zone maintenance for the given zone.
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews </varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <term><userinput>retransfer <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews Retransfer the given slave zone from the master server.
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews If the zone is configured to use
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews version of the zone is discarded; after the
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews retransfer of the unsigned version is complete, the
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews signed version will be regenerated with all new
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews </varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <term><userinput>sign <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews Fetch all DNSSEC keys for the given zone
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews from the key directory (see the
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews the BIND 9 Administrator Reference Manual). If they are within
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews their publication period, merge them into the
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews zone's DNSKEY RRset. If the DNSKEY RRset
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews is changed, then the zone is automatically
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews re-signed with the new key set.
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews This command requires that the
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews <command>auto-dnssec</command> zone option be set
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews and also requires the zone to be configured to
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews allow dynamic DNS.
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews (See "Dynamic Update Policies" in the Administrator
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews Reference Manual for more details.)
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews </varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <term><userinput>loadkeys <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews Fetch all DNSSEC keys for the given zone
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews from the key directory. If they are within
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews their publication period, merge them into the
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews zone's DNSKEY RRset. Unlike <command>rndc
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews sign</command>, however, the zone is not
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews immediately re-signed by the new keys, but is
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews allowed to incrementally re-sign over time.
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews This command requires that the
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews and also requires the zone to be configured to
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews allow dynamic DNS.
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews (See "Dynamic Update Policies" in the Administrator
1ef8965366d91e02a4672c35a187d30aa4a4c72cMark Andrews Reference Manual for more details.)
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews </varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <varlistentry>
d0221bfa6a08f7b284b231886928aa5d8ac87fc2Mark Andrews <term><userinput>freeze <optional><replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></optional></userinput></term>
904a5734375869ffb504ed8cde6b68cafadb6d64Bob Halley Suspend updates to a dynamic zone. If no zone is
985687b4e080182c1a3a2173df02b94a5b78b24fBob Halley specified, then all zones are suspended. This allows
<term><userinput>thaw <optional><replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></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>notify <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>zonestatus <optional><replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></optional></userinput></term>
<term><userinput>dumpdb <optional>-all|-cache|-zone</optional> <optional><replaceable>view ...</replaceable></optional></userinput></term>
<term><userinput>secroots <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>validation ( on | off | check ) <optional><replaceable>view ...</replaceable></optional> </userinput></term>
All of these options can be shortened, i.e., to
<term><userinput>tsig-delete</userinput> <replaceable>keyname</replaceable> <optional><replaceable>view</replaceable></optional></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>signing <optional>( -list | -clear <replaceable>keyid/algorithm</replaceable> | -clear <literal>all</literal> | -nsec3param ( <replaceable>parameters</replaceable> | <literal>none</literal> ) ) </optional> <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional> </userinput></term>