rndc.docbook revision edad003e630cf9a25db88d95247d10eb96117d66
199767f8919635c4928607450d9e0abb932109ceToomas Soome<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
199767f8919635c4928607450d9e0abb932109ceToomas Soome "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
199767f8919635c4928607450d9e0abb932109ceToomas Soome [<!ENTITY mdash "—">]>
199767f8919635c4928607450d9e0abb932109ceToomas Soome - Copyright (C) 2004, 2005, 2007, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
199767f8919635c4928607450d9e0abb932109ceToomas Soome - Copyright (C) 2000, 2001 Internet Software Consortium.
199767f8919635c4928607450d9e0abb932109ceToomas Soome - Permission to use, copy, modify, and/or distribute this software for any
199767f8919635c4928607450d9e0abb932109ceToomas Soome - purpose with or without fee is hereby granted, provided that the above
199767f8919635c4928607450d9e0abb932109ceToomas Soome - copyright notice and this permission notice appear in all copies.
199767f8919635c4928607450d9e0abb932109ceToomas Soome - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
199767f8919635c4928607450d9e0abb932109ceToomas Soome - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
199767f8919635c4928607450d9e0abb932109ceToomas Soome - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
199767f8919635c4928607450d9e0abb932109ceToomas Soome - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
199767f8919635c4928607450d9e0abb932109ceToomas Soome - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
199767f8919635c4928607450d9e0abb932109ceToomas Soome - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
199767f8919635c4928607450d9e0abb932109ceToomas Soome - PERFORMANCE OF THIS SOFTWARE.
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refentryinfo>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </refentryinfo>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refentrytitle><application>rndc</application></refentrytitle>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refnamediv>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refname><application>rndc</application></refname>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refpurpose>name server control utility</refpurpose>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </refnamediv>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </copyright>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </copyright>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <refsynopsisdiv>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <cmdsynopsis>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg><option>-b <replaceable class="parameter">source-address</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg><option>-c <replaceable class="parameter">config-file</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg><option>-k <replaceable class="parameter">key-file</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg><option>-s <replaceable class="parameter">server</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg><option>-p <replaceable class="parameter">port</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <arg><option>-y <replaceable class="parameter">key_id</replaceable></option></arg>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </cmdsynopsis>
199767f8919635c4928607450d9e0abb932109ceToomas Soome </refsynopsisdiv>
199767f8919635c4928607450d9e0abb932109ceToomas Soome controls the operation of a name
199767f8919635c4928607450d9e0abb932109ceToomas Soome server. It supersedes the <command>ndc</command> utility
199767f8919635c4928607450d9e0abb932109ceToomas Soome that was provided in old BIND releases. If
199767f8919635c4928607450d9e0abb932109ceToomas Soome <command>rndc</command> is invoked with no command line
199767f8919635c4928607450d9e0abb932109ceToomas Soome options or arguments, it prints a short summary of the
199767f8919635c4928607450d9e0abb932109ceToomas Soome supported commands and the available options and their
199767f8919635c4928607450d9e0abb932109ceToomas Soome communicates with the name server over a TCP connection, sending
199767f8919635c4928607450d9e0abb932109ceToomas Soome commands authenticated with digital signatures. In the current
199767f8919635c4928607450d9e0abb932109ceToomas Soome <command>rndc</command> and <command>named</command>,
199767f8919635c4928607450d9e0abb932109ceToomas Soome the only supported authentication algorithms are HMAC-MD5
199767f8919635c4928607450d9e0abb932109ceToomas Soome (for compatibility), HMAC-SHA1, HMAC-SHA224, HMAC-SHA256
199767f8919635c4928607450d9e0abb932109ceToomas Soome (default), HMAC-SHA384 and HMAC-SHA512.
199767f8919635c4928607450d9e0abb932109ceToomas Soome They use a shared secret on each end of the connection.
199767f8919635c4928607450d9e0abb932109ceToomas Soome This provides TSIG-style authentication for the command
199767f8919635c4928607450d9e0abb932109ceToomas Soome request and the name server's response. All commands sent
199767f8919635c4928607450d9e0abb932109ceToomas Soome over the channel must be signed by a key_id known to the
199767f8919635c4928607450d9e0abb932109ceToomas Soome reads a configuration file to
199767f8919635c4928607450d9e0abb932109ceToomas Soome determine how to contact the name server and decide what
199767f8919635c4928607450d9e0abb932109ceToomas Soome algorithm and key it should use.
199767f8919635c4928607450d9e0abb932109ceToomas Soome <variablelist>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <term>-b <replaceable class="parameter">source-address</replaceable></term>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Use <replaceable class="parameter">source-address</replaceable>
199767f8919635c4928607450d9e0abb932109ceToomas Soome as the source address for the connection to the server.
199767f8919635c4928607450d9e0abb932109ceToomas Soome Multiple instances are permitted to allow setting of both
199767f8919635c4928607450d9e0abb932109ceToomas Soome the IPv4 and IPv6 source addresses.
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <varlistentry>
199767f8919635c4928607450d9e0abb932109ceToomas Soome <term>-c <replaceable class="parameter">config-file</replaceable></term>
199767f8919635c4928607450d9e0abb932109ceToomas Soome Use <replaceable class="parameter">config-file</replaceable>
199767f8919635c4928607450d9e0abb932109ceToomas Soome as the configuration file instead of the default,
199767f8919635c4928607450d9e0abb932109ceToomas Soome </varlistentry>
<term><userinput>reload <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>refresh <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>sign <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>loadkeys <replaceable>zone</replaceable> <optional><replaceable>class</replaceable> <optional><replaceable>view</replaceable></optional></optional></userinput></term>
<term><userinput>freeze <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>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>