man.dnssec-signzone.html revision 1c51f79aba598e5e20bde66aea0237e347f6d5ce
98N/A<!--
98N/A - Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
98N/A - Copyright (C) 2000-2003 Internet Software Consortium.
98N/A -
1356N/A - Permission to use, copy, modify, and distribute this software for any
98N/A - purpose with or without fee is hereby granted, provided that the above
98N/A - copyright notice and this permission notice appear in all copies.
919N/A -
919N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
919N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
919N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
919N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
919N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
919N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
919N/A - PERFORMANCE OF THIS SOFTWARE.
919N/A-->
919N/A<!-- $Id: man.dnssec-signzone.html,v 1.115 2009/06/06 01:12:32 tbox Exp $ -->
919N/A<html>
919N/A<head>
919N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
919N/A<title>dnssec-signzone</title>
919N/A<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
919N/A<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
919N/A<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
98N/A<link rel="prev" href="man.dnssec-keygen.html" title="dnssec-keygen">
98N/A<link rel="next" href="man.named-checkconf.html" title="named-checkconf">
98N/A</head>
98N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
98N/A<div class="navheader">
98N/A<table width="100%" summary="Navigation header">
1356N/A<tr><th colspan="3" align="center"><span class="application">dnssec-signzone</span></th></tr>
1356N/A<tr>
1356N/A<td width="20%" align="left">
1265N/A<a accesskey="p" href="man.dnssec-keygen.html">Prev</a>�</td>
493N/A<th width="60%" align="center">Manual pages</th>
98N/A<td width="20%" align="right">�<a accesskey="n" href="man.named-checkconf.html">Next</a>
911N/A</td>
1374N/A</tr>
1374N/A</table>
1374N/A<hr>
911N/A</div>
98N/A<div class="refentry" lang="en">
235N/A<a name="man.dnssec-signzone"></a><div class="titlepage"></div>
493N/A<div class="refnamediv">
98N/A<h2>Name</h2>
916N/A<p><span class="application">dnssec-signzone</span> &#8212; DNSSEC zone signing tool</p>
916N/A</div>
916N/A<div class="refsynopsisdiv">
916N/A<h2>Synopsis</h2>
970N/A<div class="cmdsynopsis"><p><code class="command">dnssec-signzone</code> [<code class="option">-a</code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-d <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-e <em class="replaceable"><code>end-time</code></em></code>] [<code class="option">-f <em class="replaceable"><code>output-file</code></em></code>] [<code class="option">-g</code>] [<code class="option">-h</code>] [<code class="option">-k <em class="replaceable"><code>key</code></em></code>] [<code class="option">-l <em class="replaceable"><code>domain</code></em></code>] [<code class="option">-i <em class="replaceable"><code>interval</code></em></code>] [<code class="option">-I <em class="replaceable"><code>input-format</code></em></code>] [<code class="option">-j <em class="replaceable"><code>jitter</code></em></code>] [<code class="option">-N <em class="replaceable"><code>soa-serial-format</code></em></code>] [<code class="option">-o <em class="replaceable"><code>origin</code></em></code>] [<code class="option">-O <em class="replaceable"><code>output-format</code></em></code>] [<code class="option">-p</code>] [<code class="option">-P</code>] [<code class="option">-r <em class="replaceable"><code>randomdev</code></em></code>] [<code class="option">-s <em class="replaceable"><code>start-time</code></em></code>] [<code class="option">-t</code>] [<code class="option">-v <em class="replaceable"><code>level</code></em></code>] [<code class="option">-z</code>] [<code class="option">-3 <em class="replaceable"><code>salt</code></em></code>] [<code class="option">-H <em class="replaceable"><code>iterations</code></em></code>] [<code class="option">-A</code>] {zonefile} [key...]</p></div>
970N/A</div>
970N/A<div class="refsect1" lang="en">
970N/A<a name="id2608776"></a><h2>DESCRIPTION</h2>
970N/A<p><span><strong class="command">dnssec-signzone</strong></span>
970N/A signs a zone. It generates
970N/A NSEC and RRSIG records and produces a signed version of the
970N/A zone. The security status of delegations from the signed zone
970N/A (that is, whether the child zones are secure or not) is
970N/A determined by the presence or absence of a
970N/A <code class="filename">keyset</code> file for each child zone.
970N/A </p>
970N/A</div>
970N/A<div class="refsect1" lang="en">
970N/A<a name="id2608795"></a><h2>OPTIONS</h2>
970N/A<div class="variablelist"><dl>
970N/A<dt><span class="term">-a</span></dt>
970N/A<dd><p>
970N/A Verify all generated signatures.
970N/A </p></dd>
970N/A<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
970N/A<dd><p>
970N/A Specifies the DNS class of the zone.
970N/A </p></dd>
970N/A<dt><span class="term">-k <em class="replaceable"><code>key</code></em></span></dt>
1029N/A<dd><p>
1029N/A Treat specified key as a key signing key ignoring any
1124N/A key flags. This option may be specified multiple times.
1124N/A </p></dd>
1124N/A<dt><span class="term">-l <em class="replaceable"><code>domain</code></em></span></dt>
1124N/A<dd><p>
1124N/A Generate a DLV set in addition to the key (DNSKEY) and DS sets.
1124N/A The domain is appended to the name of the records.
1303N/A </p></dd>
1303N/A<dt><span class="term">-d <em class="replaceable"><code>directory</code></em></span></dt>
1333N/A<dd><p>
1333N/A Look for <code class="filename">keyset</code> files in
1366N/A <code class="option">directory</code> as the directory
1366N/A </p></dd>
970N/A<dt><span class="term">-g</span></dt>
98N/A<dd><p>
98N/A Generate DS records for child zones from keyset files.
1265N/A Existing DS records will be removed.
1124N/A </p></dd>
1124N/A<dt><span class="term">-s <em class="replaceable"><code>start-time</code></em></span></dt>
1124N/A<dd><p>
1265N/A Specify the date and time when the generated RRSIG records
1265N/A become valid. This can be either an absolute or relative
1265N/A time. An absolute start time is indicated by a number
1124N/A in YYYYMMDDHHMMSS notation; 20000530144500 denotes
98N/A 14:45:00 UTC on May 30th, 2000. A relative start time is
493N/A indicated by +N, which is N seconds from the current time.
98N/A If no <code class="option">start-time</code> is specified, the current
970N/A time minus 1 hour (to allow for clock skew) is used.
970N/A </p></dd>
970N/A<dt><span class="term">-e <em class="replaceable"><code>end-time</code></em></span></dt>
1026N/A<dd><p>
970N/A Specify the date and time when the generated RRSIG records
970N/A expire. As with <code class="option">start-time</code>, an absolute
1026N/A time is indicated in YYYYMMDDHHMMSS notation. A time relative
1124N/A to the start time is indicated with +N, which is N seconds from
1003N/A the start time. A time relative to the current time is
98N/A indicated with now+N. If no <code class="option">end-time</code> is
98N/A specified, 30 days from the start time is used as a default.
98N/A </p></dd>
908N/A<dt><span class="term">-f <em class="replaceable"><code>output-file</code></em></span></dt>
591N/A<dd><p>
493N/A The name of the output file containing the signed zone. The
493N/A default is to append <code class="filename">.signed</code> to
1201N/A the
1201N/A input filename.
1201N/A </p></dd>
1201N/A<dt><span class="term">-h</span></dt>
1265N/A<dd><p>
1265N/A Prints a short summary of the options and arguments to
1201N/A <span><strong class="command">dnssec-signzone</strong></span>.
1201N/A </p></dd>
1201N/A<dt><span class="term">-i <em class="replaceable"><code>interval</code></em></span></dt>
1201N/A<dd>
493N/A<p>
493N/A When a previously-signed zone is passed as input, records
493N/A may be resigned. The <code class="option">interval</code> option
493N/A specifies the cycle interval as an offset from the current
493N/A time (in seconds). If a RRSIG record expires after the
493N/A cycle interval, it is retained. Otherwise, it is considered
1026N/A to be expiring soon, and it will be replaced.
705N/A </p>
493N/A<p>
557N/A The default cycle interval is one quarter of the difference
1176N/A between the signature end and start times. So if neither
493N/A <code class="option">end-time</code> or <code class="option">start-time</code>
965N/A are specified, <span><strong class="command">dnssec-signzone</strong></span>
965N/A generates
965N/A signatures that are valid for 30 days, with a cycle
1196N/A interval of 7.5 days. Therefore, if any existing RRSIG records
1196N/A are due to expire in less than 7.5 days, they would be
1196N/A replaced.
1196N/A </p>
1196N/A</dd>
1196N/A<dt><span class="term">-I <em class="replaceable"><code>input-format</code></em></span></dt>
1196N/A<dd><p>
1196N/A The format of the input zone file.
1196N/A Possible formats are <span><strong class="command">"text"</strong></span> (default)
1357N/A and <span><strong class="command">"raw"</strong></span>.
1357N/A This option is primarily intended to be used for dynamic
1196N/A signed zones so that the dumped zone file in a non-text
606N/A format containing updates can be signed directly.
606N/A The use of this option does not make much sense for
851N/A non-dynamic zones.
851N/A </p></dd>
851N/A<dt><span class="term">-j <em class="replaceable"><code>jitter</code></em></span></dt>
851N/A<dd>
851N/A<p>
851N/A When signing a zone with a fixed signature lifetime, all
851N/A RRSIG records issued at the time of signing expires
98N/A simultaneously. If the zone is incrementally signed, i.e.
1193N/A a previously-signed zone is passed as input to the signer,
1193N/A all expired signatures have to be regenerated at about the
1193N/A same time. The <code class="option">jitter</code> option specifies a
591N/A jitter window that will be used to randomize the signature
963N/A expire time, thus spreading incremental signature
1201N/A regeneration over time.
910N/A </p>
1097N/A<p>
910N/A Signature lifetime jitter also to some extent benefits
1097N/A validators and servers by spreading out cache expiration,
910N/A i.e. if large numbers of RRSIGs don't expire at the same time
98N/A from all caches there will be less congestion than if all
98N/A validators need to refetch at mostly the same time.
910N/A </p>
910N/A</dd>
970N/A<dt><span class="term">-n <em class="replaceable"><code>ncpus</code></em></span></dt>
1030N/A<dd><p>
1030N/A Specifies the number of threads to use. By default, one
970N/A thread is started for each detected CPU.
970N/A </p></dd>
970N/A<dt><span class="term">-N <em class="replaceable"><code>soa-serial-format</code></em></span></dt>
1097N/A<dd>
1097N/A<p>
1030N/A The SOA serial number format of the signed zone.
1030N/A Possible formats are <span><strong class="command">"keep"</strong></span> (default),
910N/A <span><strong class="command">"increment"</strong></span> and
98N/A <span><strong class="command">"unixtime"</strong></span>.
1193N/A </p>
1193N/A<div class="variablelist"><dl>
1193N/A<dt><span class="term"><span><strong class="command">"keep"</strong></span></span></dt>
1193N/A<dd><p>Do not modify the SOA serial number.</p></dd>
1193N/A<dt><span class="term"><span><strong class="command">"increment"</strong></span></span></dt>
1193N/A<dd><p>Increment the SOA serial number using RFC 1982
1193N/A arithmetics.</p></dd>
1193N/A<dt><span class="term"><span><strong class="command">"unixtime"</strong></span></span></dt>
1193N/A<dd><p>Set the SOA serial number to the number of seconds
1193N/A since epoch.</p></dd>
1193N/A</dl></div>
606N/A</dd>
98N/A<dt><span class="term">-o <em class="replaceable"><code>origin</code></em></span></dt>
606N/A<dd><p>
98N/A The zone origin. If not specified, the name of the zone file
591N/A is assumed to be the origin.
851N/A </p></dd>
111N/A<dt><span class="term">-O <em class="replaceable"><code>output-format</code></em></span></dt>
606N/A<dd><p>
1088N/A The format of the output file containing the signed zone.
1088N/A Possible formats are <span><strong class="command">"text"</strong></span> (default)
1088N/A and <span><strong class="command">"raw"</strong></span>.
733N/A </p></dd>
1265N/A<dt><span class="term">-p</span></dt>
1265N/A<dd><p>
733N/A Use pseudo-random data when signing the zone. This is faster,
963N/A but less secure, than using real random data. This option
851N/A may be useful when signing large zones or when the entropy
963N/A source is limited.
1088N/A </p></dd>
1088N/A<dt><span class="term">-P</span></dt>
1088N/A<dd>
1088N/A<p>
98N/A Disable post sign verification tests.
851N/A </p>
1097N/A<p>
1097N/A The post sign verification test ensures that for each algorithm
851N/A in use there is at least one non revoked self signed KSK key,
935N/A that all revoked KSK keys are self signed, and that all records
851N/A in the zone are signed by the algorithm.
851N/A This option skips these tests.
935N/A </p>
606N/A</dd>
935N/A<dt><span class="term">-r <em class="replaceable"><code>randomdev</code></em></span></dt>
935N/A<dd><p>
935N/A Specifies the source of randomness. If the operating
935N/A system does not provide a <code class="filename">/dev/random</code>
212N/A or equivalent device, the default source of randomness
1183N/A is keyboard input. <code class="filename">randomdev</code>
1183N/A specifies
1183N/A the name of a character device or file containing random
1183N/A data to be used instead of the default. The special value
1196N/A <code class="filename">keyboard</code> indicates that keyboard
1183N/A input should be used.
1183N/A </p></dd>
1183N/A<dt><span class="term">-t</span></dt>
1233N/A<dd><p>
1196N/A Print statistics at completion.
1196N/A </p></dd>
1183N/A<dt><span class="term">-v <em class="replaceable"><code>level</code></em></span></dt>
98N/A<dd><p>
98N/A Sets the debugging level.
1196N/A </p></dd>
1183N/A<dt><span class="term">-z</span></dt>
1333N/A<dd><p>
908N/A Ignore KSK flag on key when determining what to sign.
963N/A </p></dd>
963N/A<dt><span class="term">-3 <em class="replaceable"><code>salt</code></em></span></dt>
963N/A<dd><p>
963N/A Generate a NSEC3 chain with the given hex encoded salt.
963N/A A dash (<em class="replaceable"><code>salt</code></em>) can
963N/A be used to indicate that no salt is to be used when generating the NSEC3 chain.
1030N/A </p></dd>
970N/A<dt><span class="term">-H <em class="replaceable"><code>iterations</code></em></span></dt>
1097N/A<dd><p>
1097N/A When generating a NSEC3 chain use this many interations. The
970N/A default is 100.
970N/A </p></dd>
970N/A<dt><span class="term">-A</span></dt>
970N/A<dd><p>
970N/A When generating a NSEC3 chain set the OPTOUT flag on all
970N/A NSEC3 records and do not generate NSEC3 records for insecure
1152N/A delegations.
970N/A </p></dd>
970N/A<dt><span class="term">zonefile</span></dt>
970N/A<dd><p>
970N/A The file containing the zone to be signed.
1026N/A </p></dd>
974N/A<dt><span class="term">key</span></dt>
970N/A<dd><p>
970N/A Specify which keys should be used to sign the zone. If
1026N/A no keys are specified, then the zone will be examined
970N/A for DNSKEY records at the zone apex. If these are found and
970N/A there are matching private keys, in the current directory,
974N/A then these will be used for signing.
974N/A </p></dd>
970N/A</dl></div>
1026N/A</div>
970N/A<div class="refsect1" lang="en">
970N/A<a name="id2659385"></a><h2>EXAMPLE</h2>
970N/A<p>
970N/A The following command signs the <strong class="userinput"><code>example.com</code></strong>
970N/A zone with the DSA key generated by <span><strong class="command">dnssec-keygen</strong></span>
970N/A (Kexample.com.+003+17247). The zone's keys must be in the master
970N/A file (<code class="filename">db.example.com</code>). This invocation looks
970N/A for <code class="filename">keyset</code> files, in the current directory,
970N/A so that DS records can be generated from them (<span><strong class="command">-g</strong></span>).
970N/A </p>
970N/A<pre class="programlisting">% dnssec-signzone -g -o example.com db.example.com \
970N/AKexample.com.+003+17247
970N/Adb.example.com.signed
970N/A%</pre>
970N/A<p>
970N/A In the above example, <span><strong class="command">dnssec-signzone</strong></span> creates
1003N/A the file <code class="filename">db.example.com.signed</code>. This
1003N/A file should be referenced in a zone statement in a
1003N/A <code class="filename">named.conf</code> file.
1003N/A </p>
1003N/A<p>
1003N/A This example re-signs a previously signed zone with default parameters.
970N/A The private keys are assumed to be in the current directory.
970N/A </p>
970N/A<pre class="programlisting">% cp db.example.com.signed db.example.com
970N/A% dnssec-signzone -o example.com db.example.com
970N/Adb.example.com.signed
970N/A%</pre>
970N/A</div>
970N/A<div class="refsect1" lang="en">
970N/A<a name="id2659458"></a><h2>SEE ALSO</h2>
970N/A<p><span class="citerefentry"><span class="refentrytitle">dnssec-keygen</span>(8)</span>,
970N/A <em class="citetitle">BIND 9 Administrator Reference Manual</em>,
970N/A <em class="citetitle">RFC 4033</em>.
970N/A </p>
1030N/A</div>
1030N/A<div class="refsect1" lang="en">
1030N/A<a name="id2659482"></a><h2>AUTHOR</h2>
1030N/A<p><span class="corpauthor">Internet Systems Consortium</span>
1030N/A </p>
1030N/A</div>
1030N/A</div>
1030N/A<div class="navfooter">
1030N/A<hr>
1030N/A<table width="100%" summary="Navigation footer">
1030N/A<tr>
1030N/A<td width="40%" align="left">
1030N/A<a accesskey="p" href="man.dnssec-keygen.html">Prev</a>�</td>
1030N/A<td width="20%" align="center"><a accesskey="u" href="Bv9ARM.ch10.html">Up</a></td>
1030N/A<td width="40%" align="right">�<a accesskey="n" href="man.named-checkconf.html">Next</a>
1030N/A</td>
1030N/A</tr>
1030N/A<tr>
1030N/A<td width="40%" align="left" valign="top">
1030N/A<span class="application">dnssec-keygen</span>�</td>
1030N/A<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
1030N/A<td width="40%" align="right" valign="top">�<span class="application">named-checkconf</span>
1030N/A</td>
1030N/A</tr>
1192N/A</table>
1299N/A</div>
1030N/A</body>
1030N/A</html>
1030N/A