DNSSEC-SIGNZONE(1)
๐ DNSSEC-SIGNZONE(1) ๐
okay bestie, this is the BIND 9 manual page for dnssec-signzone, and weโre covering it in two parts. This half is the intro plus the option list through -o origin โจ.
โจ NAME โจ
dnssec-signzone โ DNSSEC zone signing tool. Thatโs the whole assignment: it signs your zone and produces a signed version. iconic behavior, honestly ๐.
๐ SYNOPSIS ๐
hereโs the full flag parade, exactly as written:
dnssec-signzone [-a] [-c class] [-d directory] [-D] [-E engine] [-e
end-time] [-f output-file] [-F] [-g] [-G sync-records] [-h] [-i
interval] [-I input-format] [-j jitter] [-J filename] [-K directory] [-k
key] [-L serial] [-M maxttl] [-N soa-serial-format] [-o origin] [-O
output-format] [-P] [-Q] [-q] [-R] [-S] [-s start-time] [-T ttl] [-t]
[-u] [-v level] [-V] [-X extended end-time] [-x] [-z] [-3 salt] [-H
iterations] [-A] {zonefile} [key...]
๐ฆ DESCRIPTION ๐ฆ
dnssec-signzone signs a zone; it generates NSEC and RRSIG records and produces a signed version of the zone. The security status of delegations from the signed zone (that is, whether the child zones are secure) is determined by the presence or absence of a keyset file for each child zone. no cap, that keyset file is basically the vibe check for child-zone security ๐.
๐ OPTIONS ๐
okay, flag by flag, letโs go ๐ :
-aโ this option verifies all generated signatures. all of them, bestie โ no skipping.-c classโ this option specifies the DNS class of the zone.-Cโ this option sets compatibility mode, in which akeyset-zonenamefile is generated in addition todsset-zonenamewhen signing a zone, for use by older versions ofdnssec-signzone. legacy support said โheyโ ๐-d directoryโ this option indicates the directory whereBIND 9should look fordsset-orkeyset-files.-Dโ this option indicates that only those record types automatically managed bydnssec-signzone, i.e.,RRSIG,NSEC,NSEC3andNSEC3PARAMrecords, should be included in the output. If smart signing (-S) is used,DNSKEYrecords are also included. The resulting file can be included in the original zone file with$INCLUDE. This option cannot be combined with-O rawor serial-number updating. so do not try it, bestie ๐-E engineโ this option specifies the hardware to use for cryptographic operations, such as a secure key store used for signing, when applicable.
When BIND 9 is built with OpenSSL, this needs to be set to the OpenSSL engine identifier that drives the cryptographic accelerator or hardware service module (usually pkcs11).
-Fโ this option turns on FIPS (US Federal Information Processing Standards) mode if the underlying cryptographic library supports running in FIPS mode.-gโ this option indicates thatDSrecords for child zones should be generated from adsset-orkeyset-file. ExistingDSrecords are removed. clean slate energy โจ-G sync-recordsโ this option indicates whichCDSandCDNSKEYrecords should be generated.sync-recordsis a comma-separated string with the following allowed items:cdnskey, andcds:<digest-type>, wheredigest-typeis an allowed algorithm such asSHA-256 (2), orSHA-384 (4). Only works in combination with smart signing (-S). iykyk ๐ฅ-J filenameโ this option tellsdnssec-signzoneto read the journal from the given file when loading the zone file.-K directoryโ this option specifies the directory to search for DNSSEC keys. If not specified, it defaults to the current directory.-k keyโ this option tellsBIND 9to treat the specified key as a key-signing key, ignoring any key flags. This option may be specified multiple times. stack โem if you got โem ๐ซถ-M maxttlโ this option sets the maximum TTL for the signed zone. Any TTL higher thanmaxttlin the input zone is reduced tomaxttlin the output. This provides certainty as to the largest possible TTL in the signed zone, which is useful to know when rolling keys. Themaxttlis the longest possible time before signatures that have been retrieved by resolvers expire from resolver caches. Zones that are signed with this option should be configured to use a matchingmax-zone-ttlinnamed.conf. (Note: this option is incompatible with-D, because it modifies non-DNSSEC data in the output zone.) periodt ๐-s start-timeโ this option specifies the date and time when the generatedRRSIGrecords become valid. This can be either an absolute or relative time. An absolute start time is indicated by a number inYYYYMMDDHHMMSSnotation;20000530144500denotes 14:45:00 UTC on May 30th, 2000. A relative start time is indicated by+N, which is N seconds from the current time. If nostart-timeis specified, the current time minus 1 hour (to allow for clock skew) is used. clock skew said โnot todayโ โฐ-e end-timeโ this option specifies the date and time when the generatedRRSIGrecords expire. As withstart-time, an absolute time is indicated inYYYYMMDDHHMMSSnotation. A time relative to the start time is indicated with+N, which is N seconds from the start time. A time relative to the current time is indicated withnow+N. If noend-timeis specified, 30 days from the start time is the default.end-timemust be later thanstart-time. no time-travel nonsense, bestie ๐-X extended end-timeโ this option specifies the date and time when the generatedRRSIGrecords for theDNSKEYRRset expire. This is to be used in cases when theDNSKEYsignatures need to persist longer than signatures on other records; e.g., when the private component of theKSKis kept offline and theKSKsignature is to be refreshed manually.
As with end-time, an absolute time is indicated in YYYYMMDDHHMMSS notation. A time relative to the start time is indicated with +N, which is N seconds from the start time. A time relative to the current time is indicated with now+N. If no extended end-time is specified, the value of end-time is used as the default. (end-time, in turn, defaults to 30 days from the start time.) extended end-time must be later than start-time. offline KSK main character energy ๐
-f output-fileโ this option indicates the name of the output file containing the signed zone. The default is to append.signedto the input filename. Ifoutput-fileis set to-, then the signed zone is written to the standard output, with a default output format offull. stdout slay ๐-hโ this option prints a short summary of the options and arguments todnssec-signzone.-Vโ this option prints version information.-i intervalโ this option indicates that, when a previously signed zone is passed as input, records may be re-signed. Theintervaloption specifies the cycle interval as an offset from the current time, in seconds. If aRRSIGrecord expires after the cycle interval, it is retained; otherwise, it is considered to be expiring soon and it is replaced.
The default cycle interval is one quarter of the difference between the signature end and start times. So if neither end-time nor start-time is specified, dnssec-signzone generates 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 less than 7.5 days, they are replaced.
Note that the calculation of cycle interval is based upon the validity period of the replacement signatures that would be generated by dnssec-signzone, not on the valid lifetimes of the input RRSIGs being considered for pre-expiry replacement. math but make it DNSSEC ๐งฎ
-I input-formatโ this option sets the format of the input zone file. Possible formats aretext(the default), andraw. This option is primarily intended to be used for dynamic signed zones, so that the dumped zone file in a non-text format containing updates can be signed directly. This option is not useful for non-dynamic zones.-j jitterโ when signing a zone with a fixed signature lifetime, allRRSIGrecords 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. Thejitteroption specifies a jitter window that is used to randomize the signature expire time, thus spreading incremental signature regeneration over time.
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 same time. spread the chaos, reduce the traffic ๐
-L serialโ when writing a signed zone torawformat, this option sets thesource serialvalue in the header to the specified serial number. (This is expected to be used primarily for testing purposes.)-n ncpusโ this option specifies the number of threads to use. By default, one thread is started for each detected CPU.-N soa-serial-formatโ this option sets the SOA serial number format of the signed zone. Possible formats arekeep(the default),increment,unixtime, anddate.keepโ this format indicates that the SOA serial number should not be modified.incrementโ this format increments the SOA serial number using RFC 1982 arithmetic.unixtimeโ 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.dateโ this format sets the SOA serial number to todayโs date, inYYYYMMDDNNformat, unless the serial number is already greater than or equal to that value, in which case it is simply incremented by one.
-o originโ this option sets the zone origin. If not specified, the name of the zone file is assumed to be the origin. default behavior said โI got youโ ๐ซถ-O output-formatโ okay bestie, this one sets the format of the output file that contains the signed zone. The possible formats aretext(the default), which is the standard textual representation of the zone;full, which is text output in a format suitable for processing by external scripts; andrawandraw=N, which store the zone in binary formats for rapid loading bynamed.raw=Nspecifies the format version of the raw zone file: ifNis0, the raw file can be read by any version ofnamed; ifNis1, the file can be read by release9.9.0or higher. The default is1. ๐-Pโ this option disables post-sign verification tests. 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 are signed by the algorithm. This option skips these tests. ๐ซถ-Qโ this option removes signatures from keys that are no longer active. Normally, when a previously signed zone is passed as input to the 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 with cached copies of the old DNSKEY RRset. The-Qoption forcesdnssec-signzoneto remove signatures from keys that are no longer active. This enables ZSK rollover using the procedure described in RFC 6781 Section 4.1.1.1 (https://datatracker.ietf.org/doc/html/rfc6781.html#section-4.1.1.1) ("Pre-Publish Zone Signing Key Rollover"). โจ-qโ this option enables quiet mode, which suppresses unnecessary output. Without this option, whendnssec-signzoneis 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;
- the filename containing the signed zone. With the option, that output is suppressed, leaving only the filename. ๐คซ
-Rโ this option removes signatures from keys that are no longer published. This option is similar to-Q, except it forcesdnssec-signzoneto remove signatures from keys that are no longer published. This enables ZSK rollover using the procedure described in RFC 6781 Section 4.1.1.2 (https://datatracker.ietf.org/doc/html/rfc6781.html#section-4.1.1.2) ("Double Signature Zone Signing Key Rollover"). ๐-Sโ this option enables smart signing, which instructsdnssec-signzoneto search the key repository for keys that match the zone being signed, and to include them in the zone if appropriate. 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:- If no timing metadata has been set for the key, the key is published in the zone and used to sign the zone.
- If the key's publication date is set and is in the past, the key is published in the zone.
- If the key's activation date is set and is in the past, the key is published (regardless of publication date) and used to sign the zone.
- If the key's revocation date is set and is in the past, and the key is published, then the key is revoked, and the revoked key is used to sign the zone.
- If either the key's unpublication or deletion date is set and in the past, the key is NOT published or used to sign the zone, regardless of any other metadata.
- If the key's sync publication date is set and is in the past, synchronization records (type CDS and/or CDNSKEY) are created.
- If the key's sync deletion date is set and is in the past, synchronization records (type CDS and/or CDNSKEY) are removed.
-T ttlโ this option specifies a TTL to be used for new DNSKEY records imported into the zone from the key repository. If not specified, the default is the TTL value from the zone's SOA record. This option is ignored when signing without-S, since DNSKEY records are not imported from 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 records' 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 conflict between TTL values in imported keys, the shortest one is used. ๐-tโ this option prints statistics at completion. โญ-uโ this option updates the NSEC/NSEC3 chain when re-signing a previously signed zone. With this option, a zone signed with NSEC can be switched to NSEC3, or a zone signed with NSEC3 can be switched to NSEC or to NSEC3 with different parameters. Without this option,dnssec-signzoneretains the existing chain when re-signing. ๐ฆ-v levelโ this option sets the debugging level. ๐-xโ 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. ๐-zโ this option indicates that BIND 9 should ignore the KSK flag on keys when determining what to sign. This causes KSK-flagged keys to sign all records, not just the DNSKEY RRset. ๐-3 saltโ 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 generating the NSEC3 chain.
Note:-3 -is the recommended configuration. Adding salt provides no practical benefits. See RFC 9276 (https://datatracker.ietf.org/doc/html/rfc9276.html). ๐ธ
-H iterationsโ this option indicates that, when generating an NSEC3 chain, BIND 9 should use this many iterations. The default is0.
Warning: Values greater than0cause interoperability issues and also increase the risk of CPU-exhausting DoS attacks. See RFC 9276 (https://datatracker.ietf.org/doc/html/rfc9276.html). ๐ญ
-Aโ 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.
Warning: Do not use this option unless all its implications are fully understood. This option is intended only for extremely large zones (comparable tocom.) with sparse secure delegations. See RFC 9276 (https://datatracker.ietf.org/doc/html/rfc9276.html). ๐ฅ
-AAโ this option turns the OPTOUT flag off for all records. This is useful when using the-uoption to modify an NSEC3 chain which previously had OPTOUT set. ๐zonefileโ this option sets the file containing the zone to be signed. ๐keyโ 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. ๐
โจ EXAMPLE โจ
The following command signs the example.com zone with the ECDSAP256SHA256 key generated by dnssec-keygen (Kexample.com.+013+17247). Because the -S option is not being used, the zone's keys must be in the master file (db.example.com). This invocation looks for dsset files in the current directory, so that DS records can be imported from them (-g).
% dnssec-signzone -g -o example.com db.example.com \
Kexample.com.+013+17247
db.example.com.signed
%
In the above example, dnssec-signzone creates the file db.example.com.signed. This file should be referenced in a zone statement in the named.conf file.
This example re-signs a previously signed zone with default parameters. The private keys are assumed to be in the current directory.
% cp db.example.com.signed db.example.com
% dnssec-signzone -o example.com db.example.com
db.example.com.signed
%
๐ SEE ALSO ๐
dnssec-keygen(8)- BIND 9 Administrator Reference Manual
- RFC 4033 (
https://datatracker.ietf.org/doc/html/rfc4033.html) - RFC 6781 (
https://datatracker.ietf.org/doc/html/rfc6781.html)
๐ Author ๐
Internet Systems Consortium
๐ Copyright ๐
2026, Internet Systems Consortium
This page is serving BIND 9.20.30, dated 2026-10-12 โ periodt. ๐
โจ
๐ฆ where this page comes from
- alpine 3.22: bind-doc 9.20.30-r0 ยท MPL-2.0
- alpine 3.23: bind-doc 9.20.30-r0 ยท MPL-2.0
- alpine 3.24: bind-doc 9.20.30-r0 ยท MPL-2.0
- nixos 26.05: bind 9.20.30
- nixpkgs unstable: bind 9.20.30
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms