rndc.docbook revision 4610465ed9408cbe434dbfb8be8ea53f48969c91
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence <refentryinfo>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence </refentryinfo>
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews <refentrytitle><application>rndc</application></refentrytitle>
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews <refnamediv>
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews <refname><application>rndc</application></refname>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <refpurpose>name server control utility</refpurpose>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence </refnamediv>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <refsynopsisdiv>
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark Andrews <cmdsynopsis>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <arg><option>-c <replaceable class="parameter">config-file</replaceable></option></arg>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <arg><option>-s <replaceable class="parameter">server</replaceable></option></arg>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <arg><option>-p <replaceable class="parameter">port</replaceable></option></arg>
b09983678f5d116d3c8387aaeab4f2dc4deb0454David Lawrence <arg><option>-y <replaceable class="parameter">key_id</replaceable></option></arg>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence </cmdsynopsis>
f621719829356f27e831507b75e88e8a655e48d8Danny Mayer </refsynopsisdiv>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <command>rndc</command> controls the operation of a name
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence server. It supersedes the <command>ndc</command> utility
024face21cdfbfc7a862a3be061e6780533ef755Andreas Gustafsson that was provided in old BIND releases. If
230bc05e7e4a6ba7fa4ee396048ab669552dcbe2Andreas Gustafsson <command>rndc</command> is invoked with no command line
2c2cda0045ec97d0db445ed777411930f27c0dd0Bob Halley options or arguments, it prints a short summary of the
81ae5e1ae678320e46342d4bbb71bfb81227a248Andreas Gustafsson supported commands and the available options and their
4607e7a9b8dfb1b41c70e51c2b603daaf22cf302Mark Andrews <command>rndc</command> communicates with the name server
bc6af069c80ca33a5619d71d57859724cab1f4c4Mark Andrews over a TCP connection, sending commands authenticated with
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver digital signatures. In the current versions of
230bc05e7e4a6ba7fa4ee396048ab669552dcbe2Andreas Gustafsson <command>rndc</command> and <command>named</command> named
5fe5a0c02634eaadfcbc3528bf2c184557110a3bAndreas Gustafsson the only supported authentication algorithm is HMAC-MD5,
5fe5a0c02634eaadfcbc3528bf2c184557110a3bAndreas Gustafsson which uses a shared secret on each end of the connection.
5fe5a0c02634eaadfcbc3528bf2c184557110a3bAndreas Gustafsson This provides TSIG-style authentication for the command
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence request and the name server's response. All commands sent
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence over the channel must be signed by a key_id known to the
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <command>rndc</command> reads a configuration file to
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence determine how to contact the name server and decide what
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence algorithm and key it should use.
81ae5e1ae678320e46342d4bbb71bfb81227a248Andreas Gustafsson <variablelist>
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson <varlistentry>
230bc05e7e4a6ba7fa4ee396048ab669552dcbe2Andreas Gustafsson <term>-c <replaceable class="parameter">config-file</replaceable></term>
84fcfe530b60140f3f95f1d3894358d8c8ba4391Andreas Gustafsson Use <replaceable class="parameter">config-file</replaceable>
d4edcfe5eb6862ff4d5922e974e509d1f6cdf76fBrian Wellington as the configuration file instead of the default,
73ac1894ea64bc50aff7406872d0e9c5df6d9cf6Mark Andrews </varlistentry>
03e200df5dc283f24a6a349f0b31d3eab26da893Mark Andrews <varlistentry>
4e55893d307162770fbd7e0967043f0aef9d7583Evan Hunt <term>-s <replaceable class="parameter">server</replaceable></term>
b09983678f5d116d3c8387aaeab4f2dc4deb0454David Lawrence <replaceable class="parameter">server</replaceable> is
edcd1247ad7e81bb8b430e610d9718f64c70f05dDavid Lawrence the name or address of the server which matches a
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence server statement in the configuration file for
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein <command>rndc</command>. If no server is supplied on the
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff command line, the host named by the default-server clause
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence in the option statement of the configuration file will be
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence </varlistentry>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <varlistentry>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <term>-p <replaceable class="parameter">port</replaceable></term>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence Send commands to TCP port
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <replaceable class="parameter">port</replaceable> instead
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff of BIND 9's default control channel port, 953.
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff </varlistentry>
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff <varlistentry>
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff <term>-y <replaceable class="parameter">keyid</replaceable></term>
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff Use the key <replaceable class="parameter">keyid</replaceable>
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence from the configuration file.
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence <replaceable class="parameter">keyid</replaceable> must be
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence known by named with the same algorithm and secret string