man.rndc-confgen.html revision aa6c5a3e331958d3c92c2facdbd2b8daa55b5959
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<!--
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - Copyright (C) 2000-2003 Internet Software Consortium.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce -
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - Permission to use, copy, modify, and/or distribute this software for any
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - purpose with or without fee is hereby granted, provided that the above
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - copyright notice and this permission notice appear in all copies.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce -
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce - PERFORMANCE OF THIS SOFTWARE.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce-->
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<!-- $Id$ -->
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<html>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<head>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<title>rndc-confgen</title>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<link rel="prev" href="man.rndc.conf.html" title="rndc.conf">
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<link rel="next" href="man.ddns-confgen.html" title="ddns-confgen">
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce</head>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<div class="navheader">
edaadf8de0c86a2cfff2d29215775d42919476f3Pavel Březina<table width="100%" summary="Navigation header">
edaadf8de0c86a2cfff2d29215775d42919476f3Pavel Březina<tr><th colspan="3" align="center"><span class="application">rndc-confgen</span></th></tr>
4ebab24f65b54720a6672898b76185462015ababPavel Březina<tr>
75d66aea7accc842e68c88f085f9053112b20eccPavel Březina<td width="20%" align="left">
c1058e96679c7ed1372825bf5226ce7d28a8e6ffPavel Březina<a accesskey="p" href="man.rndc.conf.html">Prev</a>�</td>
dee7a89098b698e756f63e4041734d7322ad8b1ePavel Březina<th width="60%" align="center">Manual pages</th>
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce<td width="20%" align="right">�<a accesskey="n" href="man.ddns-confgen.html">Next</a>
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce</td>
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce</tr>
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce</table>
2745b0156f12df7a7eb93d57716233243658e4d9Jakub Hrozek<hr>
22a21e910fd216ec1468fe769dcc29f1621a52a4Ondrej Kos</div>
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce<div class="refentry" lang="en">
b9c563c29243291f40489bb0dcbf3946fca72d58Jakub Hrozek<a name="man.rndc-confgen"></a><div class="titlepage"></div>
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce<div class="refnamediv">
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce<h2>Name</h2>
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce<p><span class="application">rndc-confgen</span> &#8212; rndc key generation tool</p>
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo Sorce</div>
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce<div class="refsynopsisdiv">
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce<h2>Synopsis</h2>
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo Sorce<div class="cmdsynopsis"><p><code class="command">rndc-confgen</code> [<code class="option">-a</code>] [<code class="option">-A <em class="replaceable"><code>algorithm</code></em></code>] [<code class="option">-b <em class="replaceable"><code>keysize</code></em></code>] [<code class="option">-c <em class="replaceable"><code>keyfile</code></em></code>] [<code class="option">-h</code>] [<code class="option">-k <em class="replaceable"><code>keyname</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port</code></em></code>] [<code class="option">-r <em class="replaceable"><code>randomfile</code></em></code>] [<code class="option">-s <em class="replaceable"><code>address</code></em></code>] [<code class="option">-t <em class="replaceable"><code>chrootdir</code></em></code>] [<code class="option">-u <em class="replaceable"><code>user</code></em></code>]</p></div>
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo Sorce</div>
7c69221077c780e62f6c536e78675f2dc1c131bcMichal Zidek<div class="refsect1" lang="en">
7c69221077c780e62f6c536e78675f2dc1c131bcMichal Zidek<a name="id2664309"></a><h2>DESCRIPTION</h2>
7c69221077c780e62f6c536e78675f2dc1c131bcMichal Zidek<p><span><strong class="command">rndc-confgen</strong></span>
aa7202c8ae677becd6c91d6a27a607fe0f3995eePavel Březina generates configuration files
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina for <span><strong class="command">rndc</strong></span>. It can be used as a
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina convenient alternative to writing the
7a4e3e29196e3abc1746714fcf93624edae89f93Lukas Slebodnik <code class="filename">rndc.conf</code> file
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub Hrozek and the corresponding <span><strong class="command">controls</strong></span>
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub Hrozek and <span><strong class="command">key</strong></span>
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub Hrozek statements in <code class="filename">named.conf</code> by hand.
7caf7ed4f2eae1ec1c0717b4ee6ce78bdacd5926Jakub Hrozek Alternatively, it can be run with the <span><strong class="command">-a</strong></span>
dcc6877aa2e2dd63a9dc9c411a9c58feaeb36b9aStephen Gallagher option to set up a <code class="filename">rndc.key</code> file and
bc30ce9b7d588a17e58012e699986f0d6898b791Pavel Březina avoid the need for a <code class="filename">rndc.conf</code> file
2a96981a0ac781d01e5bba473409ed2bdf4cd4e0Jakub Hrozek and a <span><strong class="command">controls</strong></span> statement altogether.
e81deec535d11912b87954c81a1edd768c1386c9Jakub Hrozek </p>
4dd38025efda88f123eac672f87d3cda12f050c8Jakub Hrozek</div>
4dd38025efda88f123eac672f87d3cda12f050c8Jakub Hrozek<div class="refsect1" lang="en">
0161a3c5637a0c0092bf54c436bb3d6508d7df26Jakub Hrozek<a name="id2664375"></a><h2>OPTIONS</h2>
0161a3c5637a0c0092bf54c436bb3d6508d7df26Jakub Hrozek<div class="variablelist"><dl>
7a4e3e29196e3abc1746714fcf93624edae89f93Lukas Slebodnik<dt><span class="term">-a</span></dt>
60cab26b12df9a2153823972cde0c38ca86e01b9Yassir Elley<dd>
1319e71fd1680ca4864afe0b1aca2b8c8e4a1ee4Stef Walter<p>
0c1d65998907930678da2d091789446f2c344d5dJakub Hrozek Do automatic <span><strong class="command">rndc</strong></span> configuration.
a2ea3f5d9ef9f17efbb61e942c2bc6cff7d1ebf2Jakub Hrozek This creates a file <code class="filename">rndc.key</code>
f3a25949de81f80c136bb073e4a8f504b080c20cJakub Hrozek in <code class="filename">/etc</code> (or whatever
78a08d30b5fbf6e1e3b589e0cf67022e0c1faa33Michal Židek <code class="varname">sysconfdir</code>
8394eddba54b5d3e3fda868145e3751247bdbdb2Michal Zidek was specified as when <acronym class="acronym">BIND</acronym> was
5a5c5cdeb92f4012fc75fd717bfea06598f68f12Pavel Reichl built)
7a4e3e29196e3abc1746714fcf93624edae89f93Lukas Slebodnik that is read by both <span><strong class="command">rndc</strong></span>
1243e093fd31c5660adf1bb3dd477d6935a755beJakub Hrozek and <span><strong class="command">named</strong></span> on startup. The
1243e093fd31c5660adf1bb3dd477d6935a755beJakub Hrozek <code class="filename">rndc.key</code> file defines a default
7a4e3e29196e3abc1746714fcf93624edae89f93Lukas Slebodnik command channel and authentication key allowing
979e8d8d6ed444007eeff6be5269e8dc5d2bdf68Pavel Reichl <span><strong class="command">rndc</strong></span> to communicate with
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek <span><strong class="command">named</strong></span> on the local host
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozek with no further configuration.
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozek </p>
a8d887323f83984679a7d9b827a70146656bb7b2Sumit Bose<p>
b42bf6c0c01db08208fb81d8295a2909d307284aPavel Reichl Running <span><strong class="command">rndc-confgen -a</strong></span> allows
9118a539a5d59f669f551114f880fe91d6bb8741Jakub Hrozek BIND 9 and <span><strong class="command">rndc</strong></span> to be used as
b5825c74b6bf7a99ae2172392dbecb51179013a6Jakub Hrozek drop-in
19e44537c28f6d5f011cd7ac885c74c1e892605fSimo Sorce replacements for BIND 8 and <span><strong class="command">ndc</strong></span>,
5f7cd30c865046a7ea69944f7e07c85b4c43465aSumit Bose with no changes to the existing BIND 8
c30b7a1931211fdcae0564551a7625cc4f6dee9fJakub Hrozek <code class="filename">named.conf</code> file.
e732d23f3ec986a463d757781a334040e03d1f59Jakub Hrozek </p>
e732d23f3ec986a463d757781a334040e03d1f59Jakub Hrozek<p>
dd285415d7a8d8376207960cfa3e977524c3b98cJakub Hrozek If a more elaborate configuration than that
dd285415d7a8d8376207960cfa3e977524c3b98cJakub Hrozek generated by <span><strong class="command">rndc-confgen -a</strong></span>
beec1ee5799570f34a51ea57674c7291c15f7022Jakub Hrozek is required, for example if rndc is to be used remotely,
fcbcfa69f9291936f01f24b5fcb5a7672dca46f3Jakub Hrozek you should run <span><strong class="command">rndc-confgen</strong></span> without
4714118890e51b365fbce543d0a042b4b59b2b25Michal Zidek the
efc65e78fa4e01e6cecc8690a9899af61213be62Fabiano Fidêncio <span><strong class="command">-a</strong></span> option and set up a
41cd6072648bb7a9e14e56ed38004a2947f67657Jakub Hrozek <code class="filename">rndc.conf</code> and
65a38b8c9cabde6c46cc0e9868f54cb9bb10afbfFabiano Fidêncio <code class="filename">named.conf</code>
7171a7584dda534dde5409f3e7f4657e845ece15Fabiano Fidêncio as directed.
d4757440418c7b73bbecec7e40baf6dfe8cc9460Sumit Bose </p>
d4757440418c7b73bbecec7e40baf6dfe8cc9460Sumit Bose</dd>
b9c563c29243291f40489bb0dcbf3946fca72d58Jakub Hrozek<dt><span class="term">-A <em class="replaceable"><code>algorithm</code></em></span></dt>
b9c563c29243291f40489bb0dcbf3946fca72d58Jakub Hrozek<dd><p>
b9c563c29243291f40489bb0dcbf3946fca72d58Jakub Hrozek Specifies the algorithm to use for the TSIG key. Available
b9c563c29243291f40489bb0dcbf3946fca72d58Jakub Hrozek choices are: hmac-md5, hmac-sha1, hmac-sha224, hmac-sha256,
cac0db2f8004ae88b9263dc3888a11a2d3d3d114Jakub Hrozek hmac-sha384 and hmac-sha512. The default is hmac-md5.
cac0db2f8004ae88b9263dc3888a11a2d3d3d114Jakub Hrozek </p></dd>
300b9e9217ee1ed8d845ed2370c5ccf5c87afb36Pavel Březina<dt><span class="term">-b <em class="replaceable"><code>keysize</code></em></span></dt>
300b9e9217ee1ed8d845ed2370c5ccf5c87afb36Pavel Březina<dd><p>
300b9e9217ee1ed8d845ed2370c5ccf5c87afb36Pavel Březina Specifies the size of the authentication key in bits.
300b9e9217ee1ed8d845ed2370c5ccf5c87afb36Pavel Březina Must be between 1 and 512 bits; the default is the
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek hash size.
0a0b34f5fbe8f4a8c533a7d65f0f2961ee264054Jakub Hrozek </p></dd>
2af80640f18966d65cf82106059ce3c060df93bfamitkuma<dt><span class="term">-c <em class="replaceable"><code>keyfile</code></em></span></dt>
ccd349f0274217e1f0cc118e3a6045e2235ce420Fabiano Fidêncio<dd><p>
7650ded4ffa87fcf7ce5adf00920fecf89cffcf5Michal Zidek Used with the <span><strong class="command">-a</strong></span> option to specify
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce an alternate location for <code class="filename">rndc.key</code>.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce </p></dd>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<dt><span class="term">-h</span></dt>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<dd><p>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce Prints a short summary of the options and arguments to
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce <span><strong class="command">rndc-confgen</strong></span>.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce </p></dd>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<dt><span class="term">-k <em class="replaceable"><code>keyname</code></em></span></dt>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce<dd><p>
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce Specifies the key name of the rndc authentication key.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce This must be a valid domain name.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce The default is <code class="constant">rndc-key</code>.
</p></dd>
<dt><span class="term">-p <em class="replaceable"><code>port</code></em></span></dt>
<dd><p>
Specifies the command channel port where <span><strong class="command">named</strong></span>
listens for connections from <span><strong class="command">rndc</strong></span>.
The default is 953.
</p></dd>
<dt><span class="term">-r <em class="replaceable"><code>randomfile</code></em></span></dt>
<dd><p>
Specifies a source of random data for generating the
authorization. If the operating
system does not provide a <code class="filename">/dev/random</code>
or equivalent device, the default source of randomness
is keyboard input. <code class="filename">randomdev</code>
specifies
the name of a character device or file containing random
data to be used instead of the default. The special value
<code class="filename">keyboard</code> indicates that keyboard
input should be used.
</p></dd>
<dt><span class="term">-s <em class="replaceable"><code>address</code></em></span></dt>
<dd><p>
Specifies the IP address where <span><strong class="command">named</strong></span>
listens for command channel connections from
<span><strong class="command">rndc</strong></span>. The default is the loopback
address 127.0.0.1.
</p></dd>
<dt><span class="term">-t <em class="replaceable"><code>chrootdir</code></em></span></dt>
<dd><p>
Used with the <span><strong class="command">-a</strong></span> option to specify
a directory where <span><strong class="command">named</strong></span> will run
chrooted. An additional copy of the <code class="filename">rndc.key</code>
will be written relative to this directory so that
it will be found by the chrooted <span><strong class="command">named</strong></span>.
</p></dd>
<dt><span class="term">-u <em class="replaceable"><code>user</code></em></span></dt>
<dd><p>
Used with the <span><strong class="command">-a</strong></span> option to set the
owner
of the <code class="filename">rndc.key</code> file generated.
If
<span><strong class="command">-t</strong></span> is also specified only the file
in
the chroot area has its owner changed.
</p></dd>
</dl></div>
</div>
<div class="refsect1" lang="en">
<a name="id2665324"></a><h2>EXAMPLES</h2>
<p>
To allow <span><strong class="command">rndc</strong></span> to be used with
no manual configuration, run
</p>
<p><strong class="userinput"><code>rndc-confgen -a</code></strong>
</p>
<p>
To print a sample <code class="filename">rndc.conf</code> file and
corresponding <span><strong class="command">controls</strong></span> and <span><strong class="command">key</strong></span>
statements to be manually inserted into <code class="filename">named.conf</code>,
run
</p>
<p><strong class="userinput"><code>rndc-confgen</code></strong>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2666200"></a><h2>SEE ALSO</h2>
<p><span class="citerefentry"><span class="refentrytitle">rndc</span>(8)</span>,
<span class="citerefentry"><span class="refentrytitle">rndc.conf</span>(5)</span>,
<span class="citerefentry"><span class="refentrytitle">named</span>(8)</span>,
<em class="citetitle">BIND 9 Administrator Reference Manual</em>.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id2666238"></a><h2>AUTHOR</h2>
<p><span class="corpauthor">Internet Systems Consortium</span>
</p>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="man.rndc.conf.html">Prev</a>�</td>
<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch13.html">Up</a></td>
<td width="40%" align="right">�<a accesskey="n" href="man.ddns-confgen.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">
<code class="filename">rndc.conf</code>�</td>
<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
<td width="40%" align="right" valign="top">�<span class="application">ddns-confgen</span>
</td>
</tr>
</table>
</div>
<p style="text-align: center;">BIND 9.11.0pre-alpha</p>
</body>
</html>