2019-03-31 12:49:47 +02:00
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
2021-09-16 10:57:04 +02:00
.TH "DNSSEC-SIGNZONE" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
.SH NAME
dnssec-signzone \- DNSSEC zone signing tool
2019-03-31 12:49:47 +02:00
.SH SYNOPSIS
.sp
\fBdnssec\-signzone\fP [\fB\-a\fP] [\fB\-c\fP class] [\fB\-d\fP directory] [\fB\-D\fP] [\fB\-E\fP engine] [\fB\-e\fP end\-time] [\fB\-f\fP output\-file] [\fB\-g\fP] [\fB\-h\fP] [\fB\-i\fP interval] [\fB\-I\fP input\-format] [\fB\-j\fP jitter] [\fB\-K\fP directory] [\fB\-k\fP key] [\fB\-L\fP serial] [\fB\-M\fP maxttl] [\fB\-N\fP soa\-serial\-format] [\fB\-o\fP origin] [\fB\-O\fP output\-format] [\fB\-P\fP] [\fB\-Q\fP] [\fB\-q\fP] [\fB\-R\fP] [\fB\-S\fP] [\fB\-s\fP start\-time] [\fB\-T\fP ttl] [\fB\-t\fP] [\fB\-u\fP] [\fB\-v\fP level] [\fB\-V\fP] [\fB\-X\fP extended end\-time] [\fB\-x\fP] [\fB\-z\fP] [\fB\-3\fP salt] [\fB\-H\fP iterations] [\fB\-A\fP] {zonefile} [key...]
.SH DESCRIPTION
.sp
2020-07-02 10:53:16 +02:00
\fBdnssec\-signzone\fP signs a zone; it generates NSEC and RRSIG records
2019-03-31 12:49:47 +02:00
and produces a signed version of the zone. The security status of
delegations from the signed zone (that is, whether the child zones are
2020-07-02 10:53:16 +02:00
secure) is determined by the presence or absence of a \fBkeyset\fP
2019-03-31 12:49:47 +02:00
file for each child zone.
.SH OPTIONS
.INDENT 0.0
.TP
2022-03-02 15:12:17 +01:00
.B \-a
2020-07-02 10:53:16 +02:00
This option verifies all generated signatures.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-c class
2020-07-02 10:53:16 +02:00
This option specifies the DNS class of the zone.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-C
2020-07-02 10:53:16 +02:00
This option sets compatibility mode, in which a \fBkeyset\-zonename\fP file is generated in addition
2019-03-31 12:49:47 +02:00
to \fBdsset\-zonename\fP when signing a zone, for use by older versions
of \fBdnssec\-signzone\fP\&.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-d directory
2020-07-02 10:53:16 +02:00
This option indicates the directory where BIND 9 should look for \fBdsset\-\fP or \fBkeyset\-\fP files.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-D
2020-07-02 10:53:16 +02:00
This option indicates that only those record types automatically managed by
\fBdnssec\-signzone\fP, i.e., RRSIG, NSEC, NSEC3 and NSEC3PARAM records, should be included in the output.
2022-03-02 16:54:31 +01:00
If smart signing (\fI\%\-S\fP) is used, DNSKEY records are also included.
2019-03-31 12:49:47 +02:00
The resulting file can be included in the original zone file with
2022-03-02 16:54:31 +01:00
\fB$INCLUDE\fP\&. This option cannot be combined with \fI\%\-O raw\fP
2021-09-16 11:46:13 +02:00
or serial\-number updating.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-E engine
2020-07-02 10:53:16 +02:00
This option specifies the hardware to use for cryptographic
operations, such as a secure key store used for signing, when applicable.
2019-03-31 12:49:47 +02:00
.sp
2021-01-18 08:57:52 +01:00
When BIND 9 is built with OpenSSL, this needs to be set to the OpenSSL
engine identifier that drives the cryptographic accelerator or
2021-05-20 16:26:53 +02:00
hardware service module (usually \fBpkcs11\fP).
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-g
2020-07-02 10:53:16 +02:00
This option indicates that DS records for child zones should be generated from a \fBdsset\-\fP or \fBkeyset\-\fP
file. Existing DS records are removed.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-K directory
2020-07-02 10:53:16 +02:00
This option specifies the directory to search for DNSSEC keys. If not
specified, it defaults to the current directory.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-k key
2020-07-02 10:53:16 +02:00
This option tells BIND 9 to treat the specified key as a key\-signing key, ignoring any key flags. This
2019-03-31 12:49:47 +02:00
option may be specified multiple times.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-M maxttl
2020-07-02 10:53:16 +02:00
This option sets the maximum TTL for the signed zone. Any TTL higher than \fBmaxttl\fP
in the input zone is reduced to \fBmaxttl\fP in the output. This
2019-03-31 12:49:47 +02:00
provides certainty as to the largest possible TTL in the signed zone,
2020-07-02 10:53:16 +02:00
which is useful to know when rolling keys. The maxttl is the longest
2019-03-31 12:49:47 +02:00
possible time before signatures that have been retrieved by resolvers
2020-07-02 10:53:16 +02:00
expire from resolver caches. Zones that are signed with this
2019-03-31 12:49:47 +02:00
option should be configured to use a matching \fBmax\-zone\-ttl\fP in
2022-04-22 13:05:10 +02:00
\fI\%named.conf\fP\&. (Note: This option is incompatible with \fI\%\-D\fP,
2019-03-31 12:49:47 +02:00
because it modifies non\-DNSSEC data in the output zone.)
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-s start\-time
2020-07-02 10:53:16 +02:00
This option specifies the date and time when the generated RRSIG records become
2019-03-31 12:49:47 +02:00
valid. This can be either an absolute or relative time. An absolute
start time is indicated by a number in YYYYMMDDHHMMSS notation;
20000530144500 denotes 14:45:00 UTC on May 30th, 2000. A relative
2020-07-02 10:53:16 +02:00
start time is indicated by \fB+N\fP, which is N seconds from the current
2019-03-31 12:49:47 +02:00
time. If no \fBstart\-time\fP is specified, the current time minus 1
hour (to allow for clock skew) is used.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-e end\-time
2020-07-02 10:53:16 +02:00
This option specifies the date and time when the generated RRSIG records expire. As
2019-03-31 12:49:47 +02:00
with \fBstart\-time\fP, an absolute time is indicated in YYYYMMDDHHMMSS
2020-07-02 10:53:16 +02:00
notation. A time relative to the start time is indicated with \fB+N\fP,
2019-03-31 12:49:47 +02:00
which is N seconds from the start time. A time relative to the
2020-07-02 10:53:16 +02:00
current time is indicated with \fBnow+N\fP\&. If no \fBend\-time\fP is
specified, 30 days from the start time is the default.
2019-03-31 12:49:47 +02:00
\fBend\-time\fP must be later than \fBstart\-time\fP\&.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-X extended end\-time
2020-07-02 10:53:16 +02:00
This option specifies the date and time when the generated RRSIG records for the
DNSKEY RRset expire. This is to be used in cases when the DNSKEY
2019-03-31 12:49:47 +02:00
signatures need to persist longer than signatures on other records;
e.g., when the private component of the KSK is kept offline and the
KSK signature is to be refreshed manually.
.sp
2020-07-02 10:53:16 +02:00
As with \fBend\-time\fP, an absolute time is indicated in
2019-03-31 12:49:47 +02:00
YYYYMMDDHHMMSS notation. A time relative to the start time is
2020-07-02 10:53:16 +02:00
indicated with \fB+N\fP, which is N seconds from the start time. A time
relative to the current time is indicated with \fBnow+N\fP\&. If no
2019-03-31 12:49:47 +02:00
\fBextended end\-time\fP is specified, the value of \fBend\-time\fP is used
as the default. (\fBend\-time\fP, in turn, defaults to 30 days from the
start time.) \fBextended end\-time\fP must be later than \fBstart\-time\fP\&.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-f output\-file
2020-07-02 10:53:16 +02:00
This option indicates the name of the output file containing the signed zone. The default
2019-03-31 12:49:47 +02:00
is to append \fB\&.signed\fP to the input filename. If \fBoutput\-file\fP is
2020-07-02 10:53:16 +02:00
set to \fB\-\fP, then the signed zone is written to the standard
output, with a default output format of \fBfull\fP\&.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-h
2020-07-02 10:53:16 +02:00
This option prints a short summary of the options and arguments to
2019-03-31 12:49:47 +02:00
\fBdnssec\-signzone\fP\&.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-V
2020-07-02 10:53:16 +02:00
This option prints version information.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-i interval
2020-07-02 10:53:16 +02:00
This option indicates that, when a previously signed zone is passed as input, records may be
re\-signed. The \fBinterval\fP option specifies the cycle interval as an
offset from the current time, in seconds. If a RRSIG record expires
after the cycle interval, it is retained; otherwise, it is considered
to be expiring soon and it is replaced.
2019-03-31 12:49:47 +02:00
.sp
The default cycle interval is one quarter of the difference between
2020-07-02 10:53:16 +02:00
the signature end and start times. So if neither \fBend\-time\fP nor
\fBstart\-time\fP is specified, \fBdnssec\-signzone\fP generates
2019-03-31 12:49:47 +02:00
signatures that are valid for 30 days, with a cycle interval of 7.5
days. Therefore, if any existing RRSIG records are due to expire in
2020-07-02 10:53:16 +02:00
less than 7.5 days, they are replaced.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-I input\-format
2021-09-16 11:46:13 +02:00
This option sets the format of the input zone file. Possible formats are
\fBtext\fP (the default), and \fBraw\fP\&. This option is primarily
2020-07-02 10:53:16 +02:00
intended to be used for dynamic signed zones, so that the dumped zone
2019-03-31 12:49:47 +02:00
file in a non\-text format containing updates can be signed directly.
2020-07-02 10:53:16 +02:00
This option is not useful for non\-dynamic zones.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-j jitter
2019-03-31 12:49:47 +02:00
When signing a zone with a fixed signature lifetime, all RRSIG
2020-07-02 10:53:16 +02:00
records issued at the time of signing expire simultaneously. If the
zone is incrementally signed, i.e., a previously signed zone is passed
as input to the signer, all expired signatures must be regenerated
at approximately the same time. The \fBjitter\fP option specifies a jitter
window that is used to randomize the signature expire time, thus
2019-03-31 12:49:47 +02:00
spreading incremental signature regeneration over time.
.sp
2020-07-02 10:53:16 +02:00
Signature lifetime jitter also, to some extent, benefits validators and
servers by spreading out cache expiration, i.e., if large numbers of
RRSIGs do not expire at the same time from all caches, there is
less congestion than if all validators need to refetch at around the
2019-03-31 12:49:47 +02:00
same time.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-L serial
2021-09-16 11:46:13 +02:00
When writing a signed zone to "raw" format, this option sets the "source
2020-07-02 10:53:16 +02:00
serial" value in the header to the specified \fBserial\fP number. (This is
2019-03-31 12:49:47 +02:00
expected to be used primarily for testing purposes.)
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-n ncpus
2020-07-02 10:53:16 +02:00
This option specifies the number of threads to use. By default, one thread is
2019-03-31 12:49:47 +02:00
started for each detected CPU.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-N soa\-serial\-format
2020-07-02 10:53:16 +02:00
This option sets the SOA serial number format of the signed zone. Possible formats are
\fBkeep\fP (the default), \fBincrement\fP, \fBunixtime\fP, and
\fBdate\fP\&.
2019-03-31 12:49:47 +02:00
.INDENT 7.0
.TP
2020-07-02 10:53:16 +02:00
\fBkeep\fP
This format indicates that the SOA serial number should not be modified.
2019-03-31 12:49:47 +02:00
.TP
2020-07-02 10:53:16 +02:00
\fBincrement\fP
This format increments the SOA serial number using \fI\%RFC 1982\fP arithmetic.
2019-03-31 12:49:47 +02:00
.TP
2020-07-02 10:53:16 +02:00
\fBunixtime\fP
2020-12-11 14:07:31 +11:00
This format sets the SOA serial number to the number of seconds
since the beginning of the Unix epoch, unless the serial
number is already greater than or equal to that value, in
which case it is simply incremented by one.
2019-03-31 12:49:47 +02:00
.TP
2020-07-02 10:53:16 +02:00
\fBdate\fP
2020-12-11 14:07:31 +11:00
This format sets the SOA serial number to today\(aqs date, in
YYYYMMDDNN format, unless the serial number is already greater
than or equal to that value, in which case it is simply
incremented by one.
2019-03-31 12:49:47 +02:00
.UNINDENT
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-o origin
2020-07-02 10:53:16 +02:00
This option sets the zone origin. If not specified, the name of the zone file is
2019-03-31 12:49:47 +02:00
assumed to be the origin.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-O output\-format
2021-09-16 11:46:13 +02:00
This option sets the format of the output file containing the signed
zone. Possible formats are \fBtext\fP (the default), which is the standard
textual representation of the zone; \fBfull\fP, which is text output in a
format suitable for processing by external scripts; and \fBraw\fP and
\fBraw=N\fP, which store the zone in binary formats for rapid loading by
2022-04-22 13:05:10 +02:00
\fI\%named\fP\&. \fBraw=N\fP specifies the format version of the raw zone file:
if N is 0, the raw file can be read by any version of \fI\%named\fP; if N is
2021-09-16 11:46:13 +02:00
1, the file can be read by release 9.9.0 or higher. The default is 1.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-P
2020-07-02 10:53:16 +02:00
This option disables post\-sign verification tests.
2019-03-31 12:49:47 +02:00
.sp
2020-07-02 10:53:16 +02:00
The post\-sign verification tests ensure that for each algorithm in
use there is at least one non\-revoked self\-signed KSK key, that all
revoked KSK keys are self\-signed, and that all records in the zone
2019-03-31 12:49:47 +02:00
are signed by the algorithm. This option skips these tests.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-Q
2020-07-02 10:53:16 +02:00
This option removes signatures from keys that are no longer active.
2019-03-31 12:49:47 +02:00
.sp
2020-07-02 10:53:16 +02:00
Normally, when a previously signed zone is passed as input to the
2019-03-31 12:49:47 +02:00
signer, and a DNSKEY record has been removed and replaced with a new
one, signatures from the old key that are still within their validity
period are retained. This allows the zone to continue to validate
2022-03-02 16:54:31 +01:00
with cached copies of the old DNSKEY RRset. The \fI\%\-Q\fP option forces
2019-03-31 12:49:47 +02:00
\fBdnssec\-signzone\fP to remove signatures from keys that are no longer
active. This enables ZSK rollover using the procedure described in
\fI\%RFC 4641#4.2.1.1\fP ("Pre\-Publish Key Rollover").
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-q
2020-07-02 10:53:16 +02:00
This option enables quiet mode, which suppresses unnecessary output. Without this option, when
\fBdnssec\-signzone\fP is run it prints three pieces of information to standard output: the number of
keys in use; the algorithms used to verify the zone was signed correctly and
other status information; and the filename containing the signed
zone. With the option that output is suppressed, leaving only the filename.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2020-07-02 10:53:16 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-R
2020-07-02 10:53:16 +02:00
This option removes signatures from keys that are no longer published.
2019-03-31 12:49:47 +02:00
.sp
2022-03-02 16:54:31 +01:00
This option is similar to \fI\%\-Q\fP, except it forces
2020-07-02 10:53:16 +02:00
\fBdnssec\-signzone\fP to remove signatures from keys that are no longer
2019-03-31 12:49:47 +02:00
published. This enables ZSK rollover using the procedure described in
\fI\%RFC 4641#4.2.1.2\fP ("Double Signature Zone Signing Key
Rollover").
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-S
2020-07-02 10:53:16 +02:00
This option enables smart signing, which instructs \fBdnssec\-signzone\fP to search the key
2019-03-31 12:49:47 +02:00
repository for keys that match the zone being signed, and to include
them in the zone if appropriate.
.sp
When a key is found, its timing metadata is examined to determine how
it should be used, according to the following rules. Each successive
rule takes priority over the prior ones:
.INDENT 7.0
.INDENT 3.5
If no timing metadata has been set for the key, the key is
published in the zone and used to sign the zone.
.sp
If the key\(aqs publication date is set and is in the past, the key
is published in the zone.
.sp
2020-07-02 10:53:16 +02:00
If the key\(aqs activation date is set and is in the past, the key is
2019-03-31 12:49:47 +02:00
published (regardless of publication date) and used to sign the
zone.
.sp
2020-07-02 10:53:16 +02:00
If the key\(aqs revocation date is set and is in the past, and the key
2019-03-31 12:49:47 +02:00
is published, then the key is revoked, and the revoked key is used
to sign the zone.
.sp
2020-07-02 10:53:16 +02:00
If either the key\(aqs unpublication or deletion date is set and
2019-03-31 12:49:47 +02:00
in the past, the key is NOT published or used to sign the zone,
regardless of any other metadata.
.sp
2020-07-02 10:53:16 +02:00
If the key\(aqs sync publication date is set and is in the past,
2019-03-31 12:49:47 +02:00
synchronization records (type CDS and/or CDNSKEY) are created.
.sp
2020-07-02 10:53:16 +02:00
If the key\(aqs sync deletion date is set and is in the past,
2019-03-31 12:49:47 +02:00
synchronization records (type CDS and/or CDNSKEY) are removed.
.UNINDENT
.UNINDENT
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-T ttl
2020-07-02 10:53:16 +02:00
This option specifies a TTL to be used for new DNSKEY records imported into the
2019-03-31 12:49:47 +02:00
zone from the key repository. If not specified, the default is the
TTL value from the zone\(aqs SOA record. This option is ignored when
2022-03-02 16:54:31 +01:00
signing without \fI\%\-S\fP, since DNSKEY records are not imported from
2019-03-31 12:49:47 +02:00
the key repository in that case. It is also ignored if there are any
pre\-existing DNSKEY records at the zone apex, in which case new
2020-07-02 10:53:16 +02:00
records\(aq TTL values are set to match them, or if any of the
imported DNSKEY records had a default TTL value. In the event of a
2019-03-31 12:49:47 +02:00
conflict between TTL values in imported keys, the shortest one is
used.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-t
2020-07-02 10:53:16 +02:00
This option prints statistics at completion.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-u
2020-07-02 10:53:16 +02:00
This option updates the NSEC/NSEC3 chain when re\-signing a previously signed zone.
2019-03-31 12:49:47 +02:00
With this option, a zone signed with NSEC can be switched to NSEC3,
2020-07-02 10:53:16 +02:00
or a zone signed with NSEC3 can be switched to NSEC or to NSEC3 with
different parameters. Without this option, \fBdnssec\-signzone\fP
retains the existing chain when re\-signing.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-v level
2020-07-02 10:53:16 +02:00
This option sets the debugging level.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-x
2020-07-02 10:53:16 +02:00
This option indicates that BIND 9 should only sign the DNSKEY, CDNSKEY, and CDS RRsets with key\-signing keys,
and should omit signatures from zone\-signing keys. (This is similar to the
2022-04-22 13:05:10 +02:00
\fBdnssec\-dnskey\-kskonly yes;\fP zone option in \fI\%named\fP\&.)
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-z
2020-07-02 10:53:16 +02:00
This option indicates that BIND 9 should ignore the KSK flag on keys when determining what to sign. This causes
2019-03-31 12:49:47 +02:00
KSK\-flagged keys to sign all records, not just the DNSKEY RRset.
(This is similar to the \fBupdate\-check\-ksk no;\fP zone option in
2022-04-22 13:05:10 +02:00
\fI\%named\fP\&.)
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-3 salt
2020-07-02 10:53:16 +02:00
This option generates an NSEC3 chain with the given hex\-encoded salt. A dash
(\-) can be used to indicate that no salt is to be used when
2019-03-31 12:49:47 +02:00
generating the NSEC3 chain.
2022-06-09 19:26:40 +02:00
.sp
\fBNOTE:\fP
.INDENT 7.0
.INDENT 3.5
\fB\-3 \-\fP is the recommended configuration. Adding salt provides no practical benefits.
.UNINDENT
.UNINDENT
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-H iterations
2020-07-02 10:53:16 +02:00
This option indicates that, when generating an NSEC3 chain, BIND 9 should use this many iterations. The default
2022-06-10 09:42:35 +02:00
is 0.
2022-06-09 19:26:40 +02:00
.sp
\fBWARNING:\fP
.INDENT 7.0
.INDENT 3.5
Values greater than 0 cause interoperability issues and also increase the risk of CPU\-exhausting DoS attacks.
.UNINDENT
.UNINDENT
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B \-A
2020-07-02 10:53:16 +02:00
This option indicates that, when generating an NSEC3 chain, BIND 9 should set the OPTOUT flag on all NSEC3
records and should not generate NSEC3 records for insecure delegations.
2022-06-09 19:26:40 +02:00
.sp
\fBWARNING:\fP
.INDENT 7.0
.INDENT 3.5
Do not use this option unless all its implications are fully understood. This option is intended only for extremely large zones (comparable to \fBcom.\fP) with sparse secure delegations.
.UNINDENT
.UNINDENT
2022-03-02 16:54:31 +01:00
.UNINDENT
.INDENT 0.0
.TP
.B \-AA
This option turns the OPTOUT flag off for
all records. This is useful when using the \fI\%\-u\fP option to modify an
2019-03-31 12:49:47 +02:00
NSEC3 chain which previously had OPTOUT set.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B zonefile
2020-07-02 10:53:16 +02:00
This option sets the file containing the zone to be signed.
2022-03-02 15:12:17 +01:00
.UNINDENT
.INDENT 0.0
2019-03-31 12:49:47 +02:00
.TP
2022-03-02 15:12:17 +01:00
.B key
2020-07-02 10:53:16 +02:00
This option specifies which keys should be used to sign the zone. If no keys are
specified, the zone is examined for DNSKEY records at the
zone apex. If these records are found and there are matching private keys in
the current directory, they are used for signing.
2019-03-31 12:49:47 +02:00
.UNINDENT
.SH EXAMPLE
.sp
The following command signs the \fBexample.com\fP zone with the
2022-04-22 13:05:10 +02:00
ECDSAP256SHA256 key generated by \fI\%dnssec\-keygen\fP
2022-03-02 16:54:31 +01:00
(Kexample.com.+013+17247). Because the \fI\%\-S\fP option is not being used,
2019-03-31 12:49:47 +02:00
the zone\(aqs keys must be in the master file (\fBdb.example.com\fP). This
2020-07-02 10:53:16 +02:00
invocation looks for \fBdsset\fP files in the current directory, so that
2022-03-02 16:54:31 +01:00
DS records can be imported from them (\fI\%\-g\fP).
2019-03-31 12:49:47 +02:00
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
% dnssec\-signzone \-g \-o example.com db.example.com \e
Kexample.com.+013+17247
db.example.com.signed
%
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
In the above example, \fBdnssec\-signzone\fP creates the file
\fBdb.example.com.signed\fP\&. This file should be referenced in a zone
2022-04-22 13:05:10 +02:00
statement in the \fI\%named.conf\fP file.
2019-03-31 12:49:47 +02:00
.sp
This example re\-signs a previously signed zone with default parameters.
The private keys are assumed to be in the current directory.
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
% cp db.example.com.signed db.example.com
% dnssec\-signzone \-o example.com db.example.com
db.example.com.signed
%
.ft P
.fi
.UNINDENT
.UNINDENT
.SH SEE ALSO
.sp
2022-04-22 13:05:10 +02:00
\fI\%dnssec\-keygen(8)\fP, BIND 9 Administrator Reference Manual, \fI\%RFC 4033\fP,
2019-03-31 12:49:47 +02:00
\fI\%RFC 4641\fP\&.
.SH AUTHOR
Internet Systems Consortium
.SH COPYRIGHT
2022-01-03 10:29:49 +01:00
2022, Internet Systems Consortium
2019-03-31 12:49:47 +02:00
.\" Generated by docutils manpage writer.
.