DNSSEC-CDS(8)
π DNSSEC-CDS(8) π
okay so bestie, welcome to the dnssec-cds page from BIND 9 β this is the one that changes DS records for a child zone based on CDS/CDNSKEY, and it is genuinely kind of iconic for KSK rollover vibes. πΈ
π NAME π
dnssec-cds β change DS records for a child zone based on CDS/CDNSKEY.
β¨ SYNOPSIS β¨
dnssec-cds [-a alg...] [-c class] [-D] {-d dsset-file} {-f child-file}
[-i[extension]] [-s start-time] [-T ttl] [-u] [-v level] [-V]
{domain}
tiny heads-up, bestie: the in-place option is written exactly as-iextensionbelow β no space between the-iand the extension. π
π DESCRIPTION π
okay so the dnssec-cds command changes DS records at a delegation point based on CDS or CDNSKEY records published in the child zone. If both CDS and CDNSKEY records are present in the child zone, CDS is preferred. This enables a child zone to inform its parent of upcoming changes to its key-signing keys (KSKs); by polling periodically with dnssec-cds, the parent can keep the DS records up-to-date and enable automatic rolling of KSKs. π¦
Two input files are required. The -f child-file option specifies a file containing the childβs CDS and/or CDNSKEY records, plus RRSIG and DNSKEY records so that they can be authenticated. The -d path option specifies the location of a file containing the current DS records. For example, this could be a dsset- file generated by dnssec-signzone, or the output of dnssec-dsfromkey, or the output of a previous run of dnssec-cds. β¨
The dnssec-cds command uses special DNSSEC validation logic specified by RFC 7344. It requires that the CDS and/or CDNSKEY records be validly signed by a key represented in the existing DS records. This is typically the pre-existing KSK.
For protection against replay attacks, the signatures on the child records must not be older than they were on a previous run of dnssec-cds. Their age is obtained from the modification time of the dsset- file, or from the -s option.
To protect against breaking the delegation, dnssec-cds ensures that the DNSKEY RRset can be verified by every key algorithm in the new DS RRset, and that the same set of keys are covered by every DS digest type.
By default, replacement DS records are written to the standard output; with the -i option the input file is overwritten in place. The replacement DS records are the same as the existing records, when no change is required. The output can be empty if the CDS/CDNSKEY records specify that the child zone wants to be insecure.
WARNING: Be careful not to delete the DS records when dnssec-cds fails! π
Alternatively, dnssec-cds -u writes an nsupdate script to the standard output. The -u and -i options can be used together to maintain a dsset- file as well as emit an nsupdate script.
π OPTIONS π
-aalgorithm β specifies a digest algorithm to use when converting CDNSKEY records to DS records. This option can be repeated, so that multiple DS records are created for each CDNSKEY record. This option has no effect when using CDS records. The algorithm must be one ofSHA-1,SHA-256, orSHA-384. These values are case-insensitive, and the hyphen may be omitted. If no algorithm is specified, the default isSHA-256. β¨-cclass β specifies the DNS class of the zones.-Dβ generates DS records from CDNSKEY records if both CDS and CDNSKEY records are present in the child zone. By default CDS records are preferred.-dpath β specifies the location of the parent DS records. The path can be the name of a file containing the DS records; if it is a directory,dnssec-cdslooks for adsset-file for the domain inside the directory. To protect against replay attacks, child records are rejected if they were signed earlier than the modification time of thedsset-file. This can be adjusted with the-soption.-fchild-file β specifies the file containing the childβs CDS and/or CDNSKEY records, plus its DNSKEY records and the covering RRSIG records, so that they can be authenticated. The examples below describe how to generate this file.-iextensionβ updates thedsset-file in place, instead of writing DS records to the standard output. There must be no space between the-iand the extension. If no extension is provided, the olddsset-is discarded. If an extension is present, a backup of the olddsset-file is kept with the extension appended to its filename. To protect against replay attacks, the modification time of thedsset-file is set to match the signature inception time of the child records, provided that it is later than the fileβs current modification time. π-sstart-time β specifies the date and time after which RRSIG records become acceptable. This can be either an absolute or a relative time. An absolute start time is indicated by a number inYYYYMMDDHHMMSSnotation;20170827133700denotes 13:37:00 UTC on August 27th, 2017. A time relative to thedsset-file is indicated with-N, which is N seconds before the file modification time. A time relative to the current time is indicated withnow+N. If no start-time is specified, the modification time of thedsset-file is used.-Tttl β specifies a TTL to be used for new DS records. If not specified, the default is the TTL of the old DS records. If they had no explicit TTL, the new DS records also have no explicit TTL.-uβ writes annsupdatescript to the standard output, instead of printing the new DS reords. The output is empty if no change is needed. Note: The TTL of new records needs to be specified: it can be done in the originaldsset-file, with the-Toption, or using thensupdate ttlcommand. (yes,reordsβ that spelling is literally in the page, bestie π)-Vβ prints version information.-vlevel β sets the debugging level. Level 1 is intended to be usefully verbose for general users; higher levels are intended for developers.domainβ indicates the name of the delegation point/child zone apex. π
β EXIT STATUS β
The dnssec-cds command exits 0 on success, or non-zero if an error occurred.
If successful, the DS records may or may not need to be changed.
πΈ EXAMPLES πΈ
Before running dnssec-signzone, ensure that the delegations are up-to-date by running dnssec-cds on every dsset- file.
To fetch the child records required by dnssec-cds, invoke dig as in the script below. It is acceptable if the dig fails, since dnssec-cds performs all the necessary checking.
for f in dsset-*
do
d=${f#dsset-}
dig +dnssec +noall +answer $d DNSKEY $d CDNSKEY $d CDS |
dnssec-cds -i -f /dev/stdin -d $f $d
done
When the parent zone is automatically signed by named, dnssec-cds can be used with nsupdate to maintain a delegation as follows. The dsset- file allows the script to avoid having to fetch and validate the parent DS records, and it maintains the replay attack protection time.
dig +dnssec +noall +answer $d DNSKEY $d CDNSKEY $d CDS |
dnssec-cds -u -i -f /dev/stdin -d $f $d |
nsupdate -l
π¦ SEE ALSO π¦
dig(1)dnssec-settime(8)dnssec-signzone(8)nsupdate(1)- BIND 9 Administrator Reference Manual
- RFC 7344
π AUTHOR π
Internet Systems Consortium
π COPYRIGHT π
2024, Internet Systems Consortium
this cutie is DNSSEC-CDS(8) from BIND 9, version 9.16.50-RH, with copyright date 2024 β signed off with maximum bestie energy.** π
π«Άβ¨
π¦ where this page comes from
- centos-stream 9: bind-dnssec-doc 32:9.16.50-13.el9 Β· MPLv2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms