| 1 |
.\" Man page generated from reStructuredText |
| 2 |
.\" by the Docutils 0.22.4 manpage writer. |
| 3 |
. |
| 4 |
. |
| 5 |
.nr rst2man-indent-level 0 |
| 6 |
. |
| 7 |
.de1 rstReportMargin |
| 8 |
\\$1 \\n[an-margin] |
| 9 |
level \\n[rst2man-indent-level] |
| 10 |
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 11 |
- |
| 12 |
\\n[rst2man-indent0] |
| 13 |
\\n[rst2man-indent1] |
| 14 |
\\n[rst2man-indent2] |
| 15 |
.. |
| 16 |
.de1 INDENT |
| 17 |
.\" .rstReportMargin pre: |
| 18 |
. RS \\$1 |
| 19 |
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] |
| 20 |
. nr rst2man-indent-level +1 |
| 21 |
.\" .rstReportMargin post: |
| 22 |
.. |
| 23 |
.de UNINDENT |
| 24 |
. RE |
| 25 |
.\" indent \\n[an-margin] |
| 26 |
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 27 |
.nr rst2man-indent-level -1 |
| 28 |
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 29 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
| 30 |
.. |
| 31 |
.TH "DNSSEC-SIGNZONE" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9" |
| 32 |
.SH NAME |
| 33 |
dnssec-signzone \- DNSSEC zone signing tool |
| 34 |
.SH SYNOPSIS |
| 35 |
.sp |
| 36 |
\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\-F\fP] [\fB\-g\fP] [\fB\-G sync\-records\fP] [\fB\-h\fP] [\fB\-i\fP interval] [\fB\-I\fP input\-format] [\fB\-j\fP jitter] [\fB\-J\fP filename] [\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...] |
| 37 |
.SH DESCRIPTION |
| 38 |
.sp |
| 39 |
\fBdnssec\-signzone\fP signs a zone; it generates NSEC and RRSIG records |
| 40 |
and produces a signed version of the zone. The security status of |
| 41 |
delegations from the signed zone (that is, whether the child zones are |
| 42 |
secure) is determined by the presence or absence of a \fBkeyset\fP |
| 43 |
file for each child zone. |
| 44 |
.SH OPTIONS |
| 45 |
.INDENT 0.0 |
| 46 |
.TP |
| 47 |
.B \-a |
| 48 |
This option verifies all generated signatures. |
| 49 |
.UNINDENT |
| 50 |
.INDENT 0.0 |
| 51 |
.TP |
| 52 |
.B \-c class |
| 53 |
This option specifies the DNS class of the zone. |
| 54 |
.UNINDENT |
| 55 |
.INDENT 0.0 |
| 56 |
.TP |
| 57 |
.B \-C |
| 58 |
This option sets compatibility mode, in which a \fBkeyset\-zonename\fP file is generated in addition |
| 59 |
to \fBdsset\-zonename\fP when signing a zone, for use by older versions |
| 60 |
of \fBdnssec\-signzone\fP\&. |
| 61 |
.UNINDENT |
| 62 |
.INDENT 0.0 |
| 63 |
.TP |
| 64 |
.B \-d directory |
| 65 |
This option indicates the directory where BIND 9 should look for \fBdsset\-\fP or \fBkeyset\-\fP files. |
| 66 |
.UNINDENT |
| 67 |
.INDENT 0.0 |
| 68 |
.TP |
| 69 |
.B \-D |
| 70 |
This option indicates that only those record types automatically managed by |
| 71 |
\fBdnssec\-signzone\fP, i.e., RRSIG, NSEC, NSEC3 and NSEC3PARAM records, should be included in the output. |
| 72 |
If smart signing (\fB\-S\fP) is used, DNSKEY records are also included. |
| 73 |
The resulting file can be included in the original zone file with |
| 74 |
\fB$INCLUDE\fP\&. This option cannot be combined with \fB\-O raw\fP |
| 75 |
or serial\-number updating. |
| 76 |
.UNINDENT |
| 77 |
.INDENT 0.0 |
| 78 |
.TP |
| 79 |
.B \-E engine |
| 80 |
This option specifies the hardware to use for cryptographic |
| 81 |
operations, such as a secure key store used for signing, when applicable. |
| 82 |
.sp |
| 83 |
When BIND 9 is built with OpenSSL, this needs to be set to the OpenSSL |
| 84 |
engine identifier that drives the cryptographic accelerator or |
| 85 |
hardware service module (usually \fBpkcs11\fP). |
| 86 |
.UNINDENT |
| 87 |
.INDENT 0.0 |
| 88 |
.TP |
| 89 |
.B \-F |
| 90 |
This options turns on FIPS (US Federal Information Processing Standards) |
| 91 |
mode if the underlying crytographic library supports running in FIPS |
| 92 |
mode. |
| 93 |
.UNINDENT |
| 94 |
.INDENT 0.0 |
| 95 |
.TP |
| 96 |
.B \-g |
| 97 |
This option indicates that DS records for child zones should be generated from a \fBdsset\-\fP or \fBkeyset\-\fP |
| 98 |
file. Existing DS records are removed. |
| 99 |
.UNINDENT |
| 100 |
.INDENT 0.0 |
| 101 |
.TP |
| 102 |
.B \-G sync\-records |
| 103 |
This option indicates which CDS and CDNSKEY records should be generated. \fBsync\-records\fP is a |
| 104 |
comma\-separated string with the following allowed items: \fBcdnskey\fP, and \fBcds:<digest\-type>\fP, |
| 105 |
where \fBdigest\-type\fP is an allowed algorithm such as SHA\-256 (2), or SHA\-384 (4). |
| 106 |
Only works in combination with smart signing (\fB\-S\fP). |
| 107 |
.UNINDENT |
| 108 |
.INDENT 0.0 |
| 109 |
.TP |
| 110 |
.B \-J filename |
| 111 |
This option tells \fBdnssec\-signzone\fP to read the journal from the given file |
| 112 |
when loading the zone file. |
| 113 |
.UNINDENT |
| 114 |
.INDENT 0.0 |
| 115 |
.TP |
| 116 |
.B \-K directory |
| 117 |
This option specifies the directory to search for DNSSEC keys. If not |
| 118 |
specified, it defaults to the current directory. |
| 119 |
.UNINDENT |
| 120 |
.INDENT 0.0 |
| 121 |
.TP |
| 122 |
.B \-k key |
| 123 |
This option tells BIND 9 to treat the specified key as a key\-signing key, ignoring any key flags. This |
| 124 |
option may be specified multiple times. |
| 125 |
.UNINDENT |
| 126 |
.INDENT 0.0 |
| 127 |
.TP |
| 128 |
.B \-M maxttl |
| 129 |
This option sets the maximum TTL for the signed zone. Any TTL higher than \fBmaxttl\fP |
| 130 |
in the input zone is reduced to \fBmaxttl\fP in the output. This |
| 131 |
provides certainty as to the largest possible TTL in the signed zone, |
| 132 |
which is useful to know when rolling keys. The maxttl is the longest |
| 133 |
possible time before signatures that have been retrieved by resolvers |
| 134 |
expire from resolver caches. Zones that are signed with this |
| 135 |
option should be configured to use a matching \fBmax\-zone\-ttl\fP in |
| 136 |
\fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&. (Note: This option is incompatible with \fB\-D\fP, |
| 137 |
because it modifies non\-DNSSEC data in the output zone.) |
| 138 |
.UNINDENT |
| 139 |
.INDENT 0.0 |
| 140 |
.TP |
| 141 |
.B \-s start\-time |
| 142 |
This option specifies the date and time when the generated RRSIG records become |
| 143 |
valid. This can be either an absolute or relative time. An absolute |
| 144 |
start time is indicated by a number in YYYYMMDDHHMMSS notation; |
| 145 |
20000530144500 denotes 14:45:00 UTC on May 30th, 2000. A relative |
| 146 |
start time is indicated by \fB+N\fP, which is N seconds from the current |
| 147 |
time. If no \fBstart\-time\fP is specified, the current time minus 1 |
| 148 |
hour (to allow for clock skew) is used. |
| 149 |
.UNINDENT |
| 150 |
.INDENT 0.0 |
| 151 |
.TP |
| 152 |
.B \-e end\-time |
| 153 |
This option specifies the date and time when the generated RRSIG records expire. As |
| 154 |
with \fBstart\-time\fP, an absolute time is indicated in YYYYMMDDHHMMSS |
| 155 |
notation. A time relative to the start time is indicated with \fB+N\fP, |
| 156 |
which is N seconds from the start time. A time relative to the |
| 157 |
current time is indicated with \fBnow+N\fP\&. If no \fBend\-time\fP is |
| 158 |
specified, 30 days from the start time is the default. |
| 159 |
\fBend\-time\fP must be later than \fBstart\-time\fP\&. |
| 160 |
.UNINDENT |
| 161 |
.INDENT 0.0 |
| 162 |
.TP |
| 163 |
.B \-X extended end\-time |
| 164 |
This option specifies the date and time when the generated RRSIG records for the |
| 165 |
DNSKEY RRset expire. This is to be used in cases when the DNSKEY |
| 166 |
signatures need to persist longer than signatures on other records; |
| 167 |
e.g., when the private component of the KSK is kept offline and the |
| 168 |
KSK signature is to be refreshed manually. |
| 169 |
.sp |
| 170 |
As with \fBend\-time\fP, an absolute time is indicated in |
| 171 |
YYYYMMDDHHMMSS notation. A time relative to the start time is |
| 172 |
indicated with \fB+N\fP, which is N seconds from the start time. A time |
| 173 |
relative to the current time is indicated with \fBnow+N\fP\&. If no |
| 174 |
\fBextended end\-time\fP is specified, the value of \fBend\-time\fP is used |
| 175 |
as the default. (\fBend\-time\fP, in turn, defaults to 30 days from the |
| 176 |
start time.) \fBextended end\-time\fP must be later than \fBstart\-time\fP\&. |
| 177 |
.UNINDENT |
| 178 |
.INDENT 0.0 |
| 179 |
.TP |
| 180 |
.B \-f output\-file |
| 181 |
This option indicates the name of the output file containing the signed zone. The default |
| 182 |
is to append \fB\&.signed\fP to the input filename. If \fBoutput\-file\fP is |
| 183 |
set to \fB\-\fP, then the signed zone is written to the standard |
| 184 |
output, with a default output format of \fBfull\fP\&. |
| 185 |
.UNINDENT |
| 186 |
.INDENT 0.0 |
| 187 |
.TP |
| 188 |
.B \-h |
| 189 |
This option prints a short summary of the options and arguments to |
| 190 |
\fBdnssec\-signzone\fP\&. |
| 191 |
.UNINDENT |
| 192 |
.INDENT 0.0 |
| 193 |
.TP |
| 194 |
.B \-V |
| 195 |
This option prints version information. |
| 196 |
.UNINDENT |
| 197 |
.INDENT 0.0 |
| 198 |
.TP |
| 199 |
.B \-i interval |
| 200 |
This option indicates that, when a previously signed zone is passed as input, records may be |
| 201 |
re\-signed. The \fBinterval\fP option specifies the cycle interval as an |
| 202 |
offset from the current time, in seconds. If a RRSIG record expires |
| 203 |
after the cycle interval, it is retained; otherwise, it is considered |
| 204 |
to be expiring soon and it is replaced. |
| 205 |
.sp |
| 206 |
The default cycle interval is one quarter of the difference between |
| 207 |
the signature end and start times. So if neither \fBend\-time\fP nor |
| 208 |
\fBstart\-time\fP is specified, \fBdnssec\-signzone\fP generates |
| 209 |
signatures that are valid for 30 days, with a cycle interval of 7.5 |
| 210 |
days. Therefore, if any existing RRSIG records are due to expire in |
| 211 |
less than 7.5 days, they are replaced. |
| 212 |
.sp |
| 213 |
Note that the calculation of cycle interval is based upon the validity |
| 214 |
period of the replacement signatures that would be generated by |
| 215 |
\fBdnssec\-signzone\fP, not on the valid lifetimes of the input RRSIGs being |
| 216 |
considered for pre\-expiry replacement. |
| 217 |
.UNINDENT |
| 218 |
.INDENT 0.0 |
| 219 |
.TP |
| 220 |
.B \-I input\-format |
| 221 |
This option sets the format of the input zone file. Possible formats are |
| 222 |
\fBtext\fP (the default), and \fBraw\fP\&. This option is primarily |
| 223 |
intended to be used for dynamic signed zones, so that the dumped zone |
| 224 |
file in a non\-text format containing updates can be signed directly. |
| 225 |
This option is not useful for non\-dynamic zones. |
| 226 |
.UNINDENT |
| 227 |
.INDENT 0.0 |
| 228 |
.TP |
| 229 |
.B \-j jitter |
| 230 |
When signing a zone with a fixed signature lifetime, all RRSIG |
| 231 |
records issued at the time of signing expire simultaneously. If the |
| 232 |
zone is incrementally signed, i.e., a previously signed zone is passed |
| 233 |
as input to the signer, all expired signatures must be regenerated |
| 234 |
at approximately the same time. The \fBjitter\fP option specifies a jitter |
| 235 |
window that is used to randomize the signature expire time, thus |
| 236 |
spreading incremental signature regeneration over time. |
| 237 |
.sp |
| 238 |
Signature lifetime jitter also, to some extent, benefits validators and |
| 239 |
servers by spreading out cache expiration, i.e., if large numbers of |
| 240 |
RRSIGs do not expire at the same time from all caches, there is |
| 241 |
less congestion than if all validators need to refetch at around the |
| 242 |
same time. |
| 243 |
.UNINDENT |
| 244 |
.INDENT 0.0 |
| 245 |
.TP |
| 246 |
.B \-L serial |
| 247 |
When writing a signed zone to \(dqraw\(dq format, this option sets the \(dqsource |
| 248 |
serial\(dq value in the header to the specified \fBserial\fP number. (This is |
| 249 |
expected to be used primarily for testing purposes.) |
| 250 |
.UNINDENT |
| 251 |
.INDENT 0.0 |
| 252 |
.TP |
| 253 |
.B \-n ncpus |
| 254 |
This option specifies the number of threads to use. By default, one thread is |
| 255 |
started for each detected CPU. |
| 256 |
.UNINDENT |
| 257 |
.INDENT 0.0 |
| 258 |
.TP |
| 259 |
.B \-N soa\-serial\-format |
| 260 |
This option sets the SOA serial number format of the signed zone. Possible formats are |
| 261 |
\fBkeep\fP (the default), \fBincrement\fP, \fBunixtime\fP, and |
| 262 |
\fBdate\fP\&. |
| 263 |
.INDENT 7.0 |
| 264 |
.TP |
| 265 |
\fBkeep\fP |
| 266 |
This format indicates that the SOA serial number should not be modified. |
| 267 |
.TP |
| 268 |
\fBincrement\fP |
| 269 |
This format increments the SOA serial number using \fBRFC 1982\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1982\:.html> arithmetic. |
| 270 |
.TP |
| 271 |
\fBunixtime\fP |
| 272 |
This format sets the SOA serial number to the number of seconds |
| 273 |
since the beginning of the Unix epoch, unless the serial |
| 274 |
number is already greater than or equal to that value, in |
| 275 |
which case it is simply incremented by one. |
| 276 |
.TP |
| 277 |
\fBdate\fP |
| 278 |
This format sets the SOA serial number to today\(aqs date, in |
| 279 |
YYYYMMDDNN format, unless the serial number is already greater |
| 280 |
than or equal to that value, in which case it is simply |
| 281 |
incremented by one. |
| 282 |
.UNINDENT |
| 283 |
.UNINDENT |
| 284 |
.INDENT 0.0 |
| 285 |
.TP |
| 286 |
.B \-o origin |
| 287 |
This option sets the zone origin. If not specified, the name of the zone file is |
| 288 |
assumed to be the origin. |
| 289 |
.UNINDENT |
| 290 |
.INDENT 0.0 |
| 291 |
.TP |
| 292 |
.B \-O output\-format |
| 293 |
This option sets the format of the output file containing the signed |
| 294 |
zone. Possible formats are \fBtext\fP (the default), which is the standard |
| 295 |
textual representation of the zone; \fBfull\fP, which is text output in a |
| 296 |
format suitable for processing by external scripts; and \fBraw\fP and |
| 297 |
\fBraw=N\fP, which store the zone in binary formats for rapid loading by |
| 298 |
\fBnamed\fP \%<#\:std-iscman-named>\&. \fBraw=N\fP specifies the format version of the raw zone file: |
| 299 |
if N is 0, the raw file can be read by any version of \fBnamed\fP \%<#\:std-iscman-named>; if N is |
| 300 |
1, the file can be read by release 9.9.0 or higher. The default is 1. |
| 301 |
.UNINDENT |
| 302 |
.INDENT 0.0 |
| 303 |
.TP |
| 304 |
.B \-P |
| 305 |
This option disables post\-sign verification tests. |
| 306 |
.sp |
| 307 |
The post\-sign verification tests ensure that for each algorithm in |
| 308 |
use there is at least one non\-revoked self\-signed KSK key, that all |
| 309 |
revoked KSK keys are self\-signed, and that all records in the zone |
| 310 |
are signed by the algorithm. This option skips these tests. |
| 311 |
.UNINDENT |
| 312 |
.INDENT 0.0 |
| 313 |
.TP |
| 314 |
.B \-Q |
| 315 |
This option removes signatures from keys that are no longer active. |
| 316 |
.sp |
| 317 |
Normally, when a previously signed zone is passed as input to the |
| 318 |
signer, and a DNSKEY record has been removed and replaced with a new |
| 319 |
one, signatures from the old key that are still within their validity |
| 320 |
period are retained. This allows the zone to continue to validate |
| 321 |
with cached copies of the old DNSKEY RRset. The \fB\-Q\fP option forces |
| 322 |
\fBdnssec\-signzone\fP to remove signatures from keys that are no longer |
| 323 |
active. This enables ZSK rollover using the procedure described in |
| 324 |
\fBRFC 6781 Section 4.1.1.1\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc6781\:.html#\:section-4\:.1\:.1.1> (\(dqPre\-Publish Zone Signing Key Rollover\(dq). |
| 325 |
.UNINDENT |
| 326 |
.INDENT 0.0 |
| 327 |
.TP |
| 328 |
.B \-q |
| 329 |
This option enables quiet mode, which suppresses unnecessary output. Without this option, when |
| 330 |
\fBdnssec\-signzone\fP is run it prints three pieces of information to standard output: the number of |
| 331 |
keys in use; the algorithms used to verify the zone was signed correctly and |
| 332 |
other status information; and the filename containing the signed |
| 333 |
zone. With the option that output is suppressed, leaving only the filename. |
| 334 |
.UNINDENT |
| 335 |
.INDENT 0.0 |
| 336 |
.TP |
| 337 |
.B \-R |
| 338 |
This option removes signatures from keys that are no longer published. |
| 339 |
.sp |
| 340 |
This option is similar to \fB\-Q\fP, except it forces |
| 341 |
\fBdnssec\-signzone\fP to remove signatures from keys that are no longer |
| 342 |
published. This enables ZSK rollover using the procedure described in |
| 343 |
\fBRFC 6781 Section 4.1.1.2\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc6781\:.html#\:section-4\:.1\:.1.2> (\(dqDouble Signature Zone Signing Key |
| 344 |
Rollover\(dq). |
| 345 |
.UNINDENT |
| 346 |
.INDENT 0.0 |
| 347 |
.TP |
| 348 |
.B \-S |
| 349 |
This option enables smart signing, which instructs \fBdnssec\-signzone\fP to search the key |
| 350 |
repository for keys that match the zone being signed, and to include |
| 351 |
them in the zone if appropriate. |
| 352 |
.sp |
| 353 |
When a key is found, its timing metadata is examined to determine how |
| 354 |
it should be used, according to the following rules. Each successive |
| 355 |
rule takes priority over the prior ones: |
| 356 |
.INDENT 7.0 |
| 357 |
.INDENT 3.5 |
| 358 |
If no timing metadata has been set for the key, the key is |
| 359 |
published in the zone and used to sign the zone. |
| 360 |
.sp |
| 361 |
If the key\(aqs publication date is set and is in the past, the key |
| 362 |
is published in the zone. |
| 363 |
.sp |
| 364 |
If the key\(aqs activation date is set and is in the past, the key is |
| 365 |
published (regardless of publication date) and used to sign the |
| 366 |
zone. |
| 367 |
.sp |
| 368 |
If the key\(aqs revocation date is set and is in the past, and the key |
| 369 |
is published, then the key is revoked, and the revoked key is used |
| 370 |
to sign the zone. |
| 371 |
.sp |
| 372 |
If either the key\(aqs unpublication or deletion date is set and |
| 373 |
in the past, the key is NOT published or used to sign the zone, |
| 374 |
regardless of any other metadata. |
| 375 |
.sp |
| 376 |
If the key\(aqs sync publication date is set and is in the past, |
| 377 |
synchronization records (type CDS and/or CDNSKEY) are created. |
| 378 |
.sp |
| 379 |
If the key\(aqs sync deletion date is set and is in the past, |
| 380 |
synchronization records (type CDS and/or CDNSKEY) are removed. |
| 381 |
.UNINDENT |
| 382 |
.UNINDENT |
| 383 |
.UNINDENT |
| 384 |
.INDENT 0.0 |
| 385 |
.TP |
| 386 |
.B \-T ttl |
| 387 |
This option specifies a TTL to be used for new DNSKEY records imported into the |
| 388 |
zone from the key repository. If not specified, the default is the |
| 389 |
TTL value from the zone\(aqs SOA record. This option is ignored when |
| 390 |
signing without \fB\-S\fP, since DNSKEY records are not imported from |
| 391 |
the key repository in that case. It is also ignored if there are any |
| 392 |
pre\-existing DNSKEY records at the zone apex, in which case new |
| 393 |
records\(aq TTL values are set to match them, or if any of the |
| 394 |
imported DNSKEY records had a default TTL value. In the event of a |
| 395 |
conflict between TTL values in imported keys, the shortest one is |
| 396 |
used. |
| 397 |
.UNINDENT |
| 398 |
.INDENT 0.0 |
| 399 |
.TP |
| 400 |
.B \-t |
| 401 |
This option prints statistics at completion. |
| 402 |
.UNINDENT |
| 403 |
.INDENT 0.0 |
| 404 |
.TP |
| 405 |
.B \-u |
| 406 |
This option updates the NSEC/NSEC3 chain when re\-signing a previously signed zone. |
| 407 |
With this option, a zone signed with NSEC can be switched to NSEC3, |
| 408 |
or a zone signed with NSEC3 can be switched to NSEC or to NSEC3 with |
| 409 |
different parameters. Without this option, \fBdnssec\-signzone\fP |
| 410 |
retains the existing chain when re\-signing. |
| 411 |
.UNINDENT |
| 412 |
.INDENT 0.0 |
| 413 |
.TP |
| 414 |
.B \-v level |
| 415 |
This option sets the debugging level. |
| 416 |
.UNINDENT |
| 417 |
.INDENT 0.0 |
| 418 |
.TP |
| 419 |
.B \-x |
| 420 |
This option indicates that BIND 9 should only sign the DNSKEY, CDNSKEY, and CDS RRsets with key\-signing keys, |
| 421 |
and should omit signatures from zone\-signing keys. |
| 422 |
.UNINDENT |
| 423 |
.INDENT 0.0 |
| 424 |
.TP |
| 425 |
.B \-z |
| 426 |
This option indicates that BIND 9 should ignore the KSK flag on keys when determining what to sign. This causes |
| 427 |
KSK\-flagged keys to sign all records, not just the DNSKEY RRset. |
| 428 |
.UNINDENT |
| 429 |
.INDENT 0.0 |
| 430 |
.TP |
| 431 |
.B \-3 salt |
| 432 |
This option generates an NSEC3 chain with the given hex\-encoded salt. A dash |
| 433 |
(\-) can be used to indicate that no salt is to be used when |
| 434 |
generating the NSEC3 chain. |
| 435 |
.sp |
| 436 |
\fBNote:\fP |
| 437 |
.INDENT 7.0 |
| 438 |
.INDENT 3.5 |
| 439 |
\fB\-3 \-\fP is the recommended configuration. Adding salt provides no practical benefits. |
| 440 |
See \fBRFC 9276\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc9276\:.html>\&. |
| 441 |
.UNINDENT |
| 442 |
.UNINDENT |
| 443 |
.UNINDENT |
| 444 |
.INDENT 0.0 |
| 445 |
.TP |
| 446 |
.B \-H iterations |
| 447 |
This option indicates that, when generating an NSEC3 chain, BIND 9 should use this many iterations. The default |
| 448 |
is 0. |
| 449 |
.sp |
| 450 |
\fBWarning:\fP |
| 451 |
.INDENT 7.0 |
| 452 |
.INDENT 3.5 |
| 453 |
Values greater than 0 cause interoperability issues and also increase the risk of CPU\-exhausting DoS attacks. |
| 454 |
See \fBRFC 9276\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc9276\:.html>\&. |
| 455 |
.UNINDENT |
| 456 |
.UNINDENT |
| 457 |
.UNINDENT |
| 458 |
.INDENT 0.0 |
| 459 |
.TP |
| 460 |
.B \-A |
| 461 |
This option indicates that, when generating an NSEC3 chain, BIND 9 should set the OPTOUT flag on all NSEC3 |
| 462 |
records and should not generate NSEC3 records for insecure delegations. |
| 463 |
.sp |
| 464 |
\fBWarning:\fP |
| 465 |
.INDENT 7.0 |
| 466 |
.INDENT 3.5 |
| 467 |
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. |
| 468 |
See \fBRFC 9276\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc9276\:.html>\&. |
| 469 |
.UNINDENT |
| 470 |
.UNINDENT |
| 471 |
.UNINDENT |
| 472 |
.INDENT 0.0 |
| 473 |
.TP |
| 474 |
.B \-AA |
| 475 |
This option turns the OPTOUT flag off for |
| 476 |
all records. This is useful when using the \fB\-u\fP option to modify an |
| 477 |
NSEC3 chain which previously had OPTOUT set. |
| 478 |
.UNINDENT |
| 479 |
.INDENT 0.0 |
| 480 |
.TP |
| 481 |
.B zonefile |
| 482 |
This option sets the file containing the zone to be signed. |
| 483 |
.UNINDENT |
| 484 |
.INDENT 0.0 |
| 485 |
.TP |
| 486 |
.B key |
| 487 |
This option specifies which keys should be used to sign the zone. If no keys are |
| 488 |
specified, the zone is examined for DNSKEY records at the |
| 489 |
zone apex. If these records are found and there are matching private keys in |
| 490 |
the current directory, they are used for signing. |
| 491 |
.UNINDENT |
| 492 |
.SH EXAMPLE |
| 493 |
.sp |
| 494 |
The following command signs the \fBexample.com\fP zone with the |
| 495 |
ECDSAP256SHA256 key generated by \fBdnssec\-keygen\fP \%<#\:std-iscman-dnssec-keygen> |
| 496 |
(Kexample.com.+013+17247). Because the \fB\-S\fP option is not being used, |
| 497 |
the zone\(aqs keys must be in the master file (\fBdb.example.com\fP). This |
| 498 |
invocation looks for \fBdsset\fP files in the current directory, so that |
| 499 |
DS records can be imported from them (\fB\-g\fP). |
| 500 |
.INDENT 0.0 |
| 501 |
.INDENT 3.5 |
| 502 |
.sp |
| 503 |
.EX |
| 504 |
% dnssec\-signzone \-g \-o example.com db.example.com \e |
| 505 |
Kexample.com.+013+17247 |
| 506 |
db.example.com.signed |
| 507 |
% |
| 508 |
.EE |
| 509 |
.UNINDENT |
| 510 |
.UNINDENT |
| 511 |
.sp |
| 512 |
In the above example, \fBdnssec\-signzone\fP creates the file |
| 513 |
\fBdb.example.com.signed\fP\&. This file should be referenced in a zone |
| 514 |
statement in the \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf> file. |
| 515 |
.sp |
| 516 |
This example re\-signs a previously signed zone with default parameters. |
| 517 |
The private keys are assumed to be in the current directory. |
| 518 |
.INDENT 0.0 |
| 519 |
.INDENT 3.5 |
| 520 |
.sp |
| 521 |
.EX |
| 522 |
% cp db.example.com.signed db.example.com |
| 523 |
% dnssec\-signzone \-o example.com db.example.com |
| 524 |
db.example.com.signed |
| 525 |
% |
| 526 |
.EE |
| 527 |
.UNINDENT |
| 528 |
.UNINDENT |
| 529 |
.SH SEE ALSO |
| 530 |
.sp |
| 531 |
\fBdnssec\-keygen(8)\fP \%<#\:std-iscman-dnssec-keygen>, BIND 9 Administrator Reference Manual, \fBRFC 4033\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc4033\:.html>, |
| 532 |
\fBRFC 6781\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc6781\:.html>\&. |
| 533 |
.SH Author |
| 534 |
Internet Systems Consortium |
| 535 |
.SH Copyright |
| 536 |
2026, Internet Systems Consortium |
| 537 |
.\" End of generated man page. |