man.dnssec-signzone.html revision f470689ec45369e1a0710eed82167bbcde93f5f6
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac - Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC")
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac - Copyright (C) 2000-2003 Internet Software Consortium.
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac - Permission to use, copy, modify, and/or distribute this software for any
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac - purpose with or without fee is hereby granted, provided that the above
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac - copyright notice and this permission notice appear in all copies.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac - PERFORMANCE OF THIS SOFTWARE.
8cf870d281dc8c242f083d14dfef05f24aa5fceeJnRouvignac<!-- $Id$ -->
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<link rel="prev" href="man.dnssec-settime.html" title="dnssec-settime">
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<link rel="next" href="man.dnssec-verify.html" title="dnssec-verify">
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<tr><th colspan="3" align="center"><span class="application">dnssec-signzone</span></th></tr>
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<a accesskey="p" href="man.dnssec-settime.html">Prev</a>�</td>
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<td width="20%" align="right">�<a accesskey="n" href="man.dnssec-verify.html">Next</a>
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac<a name="man.dnssec-signzone"></a><div class="titlepage"></div>
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<p><span class="application">dnssec-signzone</span> — DNSSEC zone signing tool</p>
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac<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">-D</code>] [<code class="option">-E <em class="replaceable"><code>engine</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>directory</code></em></code>] [<code class="option">-k <em class="replaceable"><code>key</code></em></code>] [<code class="option">-L <em class="replaceable"><code>serial</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</code>] [<code class="option">-r <em class="replaceable"><code>randomdev</code></em></code>] [<code class="option">-S</code>] [<code class="option">-s <em class="replaceable"><code>start-time</code></em></code>] [<code class="option">-T <em class="replaceable"><code>ttl</code></em></code>] [<code class="option">-t</code>] [<code class="option">-u</code>] [<code class="option">-v <em class="replaceable"><code>level</code></em></code>] [<code class="option">-X <em class="replaceable"><code>extended end-time</code></em></code>] [<code class="option">-x</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>
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac<p><span><strong class="command">dnssec-signzone</strong></span>
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac signs a zone. It generates
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac NSEC and RRSIG records and produces a signed version of the
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac zone. The security status of delegations from the signed zone
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac (that is, whether the child zones are secure or not) is
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac determined by the presence or absence of a
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac <code class="filename">keyset</code> file for each child zone.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac Verify all generated signatures.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac Specifies the DNS class of the zone.
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac Compatibility mode: Generate a
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac <code class="filename">keyset-<em class="replaceable"><code>zonename</code></em></code>
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac file in addition to
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac <code class="filename">dsset-<em class="replaceable"><code>zonename</code></em></code>
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac when signing a zone, for use by older versions of
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac <span><strong class="command">dnssec-signzone</strong></span>.
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac<dt><span class="term">-d <em class="replaceable"><code>directory</code></em></span></dt>
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac Look for <code class="filename">dsset-</code> or
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac <code class="filename">keyset-</code> files in <code class="option">directory</code>.
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac Output only those record types automatically managed by
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac <span><strong class="command">dnssec-signzone</strong></span>, i.e. RRSIG, NSEC,
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac NSEC3 and NSEC3PARAM records. If smart signing
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac (<code class="option">-S</code>) is used, DNSKEY records are also
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac included. The resulting file can be included in the original
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac zone file with <span><strong class="command">$INCLUDE</strong></span>. This option
5f46089a53d8580088fe298226da26a46cbf47abJnRouvignac cannot be combined with <code class="option">-O raw</code>,
5f46089a53d8580088fe298226da26a46cbf47abJnRouvignac <code class="option">-O fast</code>, or serial number updating.
5f46089a53d8580088fe298226da26a46cbf47abJnRouvignac<dt><span class="term">-E <em class="replaceable"><code>engine</code></em></span></dt>
5f46089a53d8580088fe298226da26a46cbf47abJnRouvignac Uses a crypto hardware (OpenSSL engine) for the crypto operations
5f46089a53d8580088fe298226da26a46cbf47abJnRouvignac it supports, for instance signing with private keys from
5f46089a53d8580088fe298226da26a46cbf47abJnRouvignac a secure key store. When compiled with PKCS#11 support
5f46089a53d8580088fe298226da26a46cbf47abJnRouvignac it defaults to pkcs11; the empty name resets it to no engine.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac Generate DS records for child zones from
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac <code class="filename">dsset-</code> or <code class="filename">keyset-</code>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac file. Existing DS records will be removed.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac<dt><span class="term">-K <em class="replaceable"><code>directory</code></em></span></dt>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac Key repository: Specify a directory to search for DNSSEC keys.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac If not specified, defaults to the current directory.
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac<dt><span class="term">-k <em class="replaceable"><code>key</code></em></span></dt>
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac Treat specified key as a key signing key ignoring any
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac key flags. This option may be specified multiple times.
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac<dt><span class="term">-l <em class="replaceable"><code>domain</code></em></span></dt>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac Generate a DLV set in addition to the key (DNSKEY) and DS sets.
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac The domain is appended to the name of the records.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac<dt><span class="term">-s <em class="replaceable"><code>start-time</code></em></span></dt>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac Specify the date and time when the generated RRSIG records
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac become valid. This can be either an absolute or relative
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac time. An absolute start time is indicated by a number
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac in YYYYMMDDHHMMSS notation; 20000530144500 denotes
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac 14:45:00 UTC on May 30th, 2000. A relative start time is
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac indicated by +N, which is N seconds from the current time.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac If no <code class="option">start-time</code> is specified, the current
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac time minus 1 hour (to allow for clock skew) is used.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac<dt><span class="term">-e <em class="replaceable"><code>end-time</code></em></span></dt>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac Specify the date and time when the generated RRSIG records
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac expire. As with <code class="option">start-time</code>, an absolute
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac time is indicated in YYYYMMDDHHMMSS notation. A time relative
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac to the start time is indicated with +N, which is N seconds from
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac the start time. A time relative to the current time is
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac indicated with now+N. If no <code class="option">end-time</code> is
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac specified, 30 days from the start time is used as a default.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac <code class="option">end-time</code> must be later than
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac<dt><span class="term">-X <em class="replaceable"><code>extended end-time</code></em></span></dt>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac Specify the date and time when the generated RRSIG records
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac for the DNSKEY RRset will expire. This is to be used in cases
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac when the DNSKEY signatures need to persist longer than
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac signatures on other records; e.g., when the private component
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac of the KSK is kept offline and the KSK signature is to be
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac refreshed manually.
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac As with <code class="option">start-time</code>, an absolute
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac time is indicated in YYYYMMDDHHMMSS notation. A time relative
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac to the start time is indicated with +N, which is N seconds from
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac the start time. A time relative to the current time is
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac indicated with now+N. If no <code class="option">extended end-time</code> is
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac specified, the value of <code class="option">end-time</code> is used as
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac the default. (<code class="option">end-time</code>, in turn, defaults to
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac 30 days from the start time.) <code class="option">extended end-time</code>
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac must be later than <code class="option">start-time</code>.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac<dt><span class="term">-f <em class="replaceable"><code>output-file</code></em></span></dt>
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac The name of the output file containing the signed zone. The
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac default is to append <code class="filename">.signed</code> to
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac the input filename. If <code class="option">output-file</code> is
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac set to <code class="literal">"-"</code>, then the signed zone is
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac written to the standard output, with a default output
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac format of "full".
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac Prints a short summary of the options and arguments to
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac <span><strong class="command">dnssec-signzone</strong></span>.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac<dt><span class="term">-i <em class="replaceable"><code>interval</code></em></span></dt>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac When a previously-signed zone is passed as input, records
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac may be resigned. The <code class="option">interval</code> option
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac specifies the cycle interval as an offset from the current
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac time (in seconds). If a RRSIG record expires after the
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac cycle interval, it is retained. Otherwise, it is considered
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac to be expiring soon, and it will be replaced.
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac The default cycle interval is one quarter of the difference
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac between the signature end and start times. So if neither
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac <code class="option">end-time</code> or <code class="option">start-time</code>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac are specified, <span><strong class="command">dnssec-signzone</strong></span>
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac signatures that are valid for 30 days, with a cycle
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac interval of 7.5 days. Therefore, if any existing RRSIG records
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac are due to expire in less than 7.5 days, they would be
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac<dt><span class="term">-I <em class="replaceable"><code>input-format</code></em></span></dt>
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac The format of the input zone file.
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac Possible formats are <span><strong class="command">"text"</strong></span> (default),
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac <span><strong class="command">"raw"</strong></span>, and <span><strong class="command">"fast"</strong></span>.
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac This option is primarily intended to be used for dynamic
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac signed zones so that the dumped zone file in a non-text
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac format containing updates can be signed directly.
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac The use of this option does not make much sense for
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac non-dynamic zones.
09233123f386dbb53e6b349a4b2361b66f020356JnRouvignac<dt><span class="term">-j <em class="replaceable"><code>jitter</code></em></span></dt>
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac When signing a zone with a fixed signature lifetime, all
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac RRSIG records issued at the time of signing expires
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac simultaneously. If the zone is incrementally signed, i.e.
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac a previously-signed zone is passed as input to the signer,
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac all expired signatures have to be regenerated at about the
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac same time. The <code class="option">jitter</code> option specifies a
18d70922e52e438970c1e3315bed0af8ed8eea1cJnRouvignac jitter window that will be used to randomize the signature
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac expire time, thus spreading incremental signature
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac regeneration over time.
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac Signature lifetime jitter also to some extent benefits
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac validators and servers by spreading out cache expiration,
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac i.e. if large numbers of RRSIGs don't expire at the same time
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac from all caches there will be less congestion than if all
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac validators need to refetch at mostly the same time.
ca00e65bb45e396fffcd00c0ff137d484b952577JnRouvignac<dt><span class="term">-L <em class="replaceable"><code>serial</code></em></span></dt>
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac When writing a signed zone to "raw" or "fast" format, set the
253386d9f6c49b496237c0f941e0d1ae323f8b5bJnRouvignac "source serial" value in the header to the specified serial
and <span><strong class="command">"fast"</strong></span>, <span><strong class="command">"raw"</strong></span>,
Kexample.com.+003+17247