278N/A - Copyright (C) 2004-2014 Internet Systems Consortium, Inc. ("ISC") 278N/A - Copyright (C) 2000-2003 Internet Software Consortium. 278N/A - Permission to use, copy, modify, and/or distribute this software for any 278N/A - purpose with or without fee is hereby granted, provided that the above 278N/A - copyright notice and this permission notice appear in all copies. 278N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 278N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 278N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 278N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 278N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 278N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 278N/A - PERFORMANCE OF THIS SOFTWARE. 278N/A<
meta http-
equiv="Content-Type" content="text/html; charset=ISO-8859-1">
278N/A<
meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
5680N/A<
link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
278N/A<
body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
278N/A<
table width="100%" summary="Navigation header">
5680N/A<
tr><
th colspan="3" align="center"><
span class="application">ddns-confgen</
span></
th></
tr>
278N/A<
td width="20%" align="left">
2899N/A<
th width="60%" align="center">Manual pages</
th>
3351N/A<
div class="refentry" lang="en">
<
p><
span class="application">ddns-confgen</
span> — ddns key generation tool</
p>
<
div class="refsynopsisdiv">
<
div class="cmdsynopsis"><
p><
code class="command">tsig-keygen</
code> [<
code class="option">-a <
em class="replaceable"><
code>algorithm</
code></
em></
code>] [<
code class="option">-h</
code>] [<
code class="option">-r <
em class="replaceable"><
code>randomfile</
code></
em></
code>] [name]</
p></
div>
<
div class="cmdsynopsis"><
p><
code class="command">ddns-confgen</
code> [<
code class="option">-a <
em class="replaceable"><
code>algorithm</
code></
em></
code>] [<
code class="option">-h</
code>] [<
code class="option">-k <
em class="replaceable"><
code>keyname</
code></
em></
code>] [<
code class="option">-q</
code>] [<
code class="option">-r <
em class="replaceable"><
code>randomfile</
code></
em></
code>] [ -s <
em class="replaceable"><
code>name</
code></
em> | -z <
em class="replaceable"><
code>zone</
code></
em> ]</
p></
div>
<
div class="refsect1" lang="en">
<
a name="id2665139"></
a><
h2>DESCRIPTION</
h2>
<
span><
strong class="command">tsig-keygen</
strong></
span> and <
span><
strong class="command">ddns-confgen</
strong></
span>
are invocation methods for a utility that generates keys for use
in TSIG signing. The resulting keys can be used, for example,
to secure dynamic DNS updates to a zone or for the
<
span><
strong class="command">rndc</
strong></
span> command channel.
When run as <
span><
strong class="command">tsig-keygen</
strong></
span>, a domain name
can be specified on the command line which will be used as
the name of the generated key. If no name is specified,
the default is <
code class="constant">tsig-key</
code>.
When run as <
span><
strong class="command">ddns-confgen</
strong></
span>, the generated
key is accompanied by configuration text and instructions
that can be used with <
span><
strong class="command">nsupdate</
strong></
span> and
<
span><
strong class="command">named</
strong></
span> when setting up dynamic DNS,
including an example <
span><
strong class="command">update-policy</
strong></
span>
statement. (This usage similar to the
<
span><
strong class="command">rndc-confgen</
strong></
span> command for setting
up command channel security.)
Note that <
span><
strong class="command">named</
strong></
span> itself can configure a
local DDNS key for use with <
span><
strong class="command">nsupdate -l</
strong></
span>:
it does this when a zone is configured with
<
span><
strong class="command">update-policy local;</
strong></
span>.
<
span><
strong class="command">ddns-confgen</
strong></
span> is only needed when a
more elaborate configuration is required: for instance,
if <
span><
strong class="command">nsupdate</
strong></
span> is to be used from a remote
<
div class="refsect1" lang="en">
<
a name="id2665242"></
a><
h2>OPTIONS</
h2>
<
div class="variablelist"><
dl>
<
dt><
span class="term">-a <
em class="replaceable"><
code>algorithm</
code></
em></
span></
dt>
Specifies the algorithm to use for the TSIG key. Available
choices are: hmac-md5, hmac-sha1, hmac-sha224, hmac-sha256,
hmac-sha384 and hmac-sha512. The default is hmac-sha256.
Options are case-insensitive, and the "hmac-" prefix
<
dt><
span class="term">-h</
span></
dt>
Prints a short summary of options and arguments.
<
dt><
span class="term">-k <
em class="replaceable"><
code>keyname</
code></
em></
span></
dt>
Specifies the key name of the DDNS authentication key.
The default is <
code class="constant">ddns-key</
code> when neither
the <
code class="option">-s</
code> nor <
code class="option">-z</
code> option is
specified; otherwise, the default
is <
code class="constant">ddns-key</
code> as a separate label
followed by the argument of the option,
e.g.,
The key name must have the format of a valid domain name,
consisting of letters, digits, hyphens and periods.
<
dt><
span class="term">-q</
span></
dt>
(<
span><
strong class="command">ddns-confgen</
strong></
span> only.) Quiet mode: Print
only the key, with no explanatory text or usage examples;
This is essentially identical to <
span><
strong class="command">tsig-keygen</
strong></
span>.
<
dt><
span class="term">-r <
em class="replaceable"><
code>randomfile</
code></
em></
span></
dt>
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
<
dt><
span class="term">-s <
em class="replaceable"><
code>name</
code></
em></
span></
dt>
(<
span><
strong class="command">ddns-confgen</
strong></
span> only.)
Generate configuration example to allow dynamic updates
of a single hostname. The example <
span><
strong class="command">
named.conf</
strong></
span>
text shows how to set an update policy for the specified
<
em class="replaceable"><
code>name</
code></
em>
using the "name" nametype. The default key name is
ddns-key.<
em class="replaceable"><
code>name</
code></
em>.
Note that the "self" nametype cannot be used, since
the name to be updated may differ from the key name.
This option cannot be used with the <
code class="option">-z</
code> option.
<
dt><
span class="term">-z <
em class="replaceable"><
code>zone</
code></
em></
span></
dt>
(<
span><
strong class="command">ddns-confgen</
strong></
span> only.)
Generate configuration example to allow dynamic updates
of a zone: The example <
span><
strong class="command">
named.conf</
strong></
span> text
shows how to set an update policy for the specified
<
em class="replaceable"><
code>zone</
code></
em>
using the "zonesub" nametype, allowing updates to
all subdomain names within that
<
em class="replaceable"><
code>zone</
code></
em>.
This option cannot be used with the <
code class="option">-s</
code> option.
<
div class="refsect1" lang="en">
<
a name="id2666005"></
a><
h2>SEE ALSO</
h2>
<
p><
span class="citerefentry"><
span class="refentrytitle">nsupdate</
span>(1)</
span>,
<
span class="citerefentry"><
span class="refentrytitle">
named.conf</
span>(5)</
span>,
<
span class="citerefentry"><
span class="refentrytitle">named</
span>(8)</
span>,
<
em class="citetitle">BIND 9 Administrator Reference Manual</
em>.
<
div class="refsect1" lang="en">
<
a name="id2666112"></
a><
h2>AUTHOR</
h2>
<
p><
span class="corpauthor">Internet Systems Consortium</
span>
<
table width="100%" summary="Navigation footer">
<
td width="40%" align="left">
<
td width="20%" align="center"><
a accesskey="u" href="Bv9ARM.ch10.html">Up</
a></
td>
<
td width="40%" align="left" valign="top">
<
span class="application">rndc-confgen</
span>�</
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">arpaname</
span>
<
p style="text-align: center;">BIND Version 9.11</
p>