Debian Codegraph @

doc/man/dnssec-cds.1in

raw
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-CDS" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 dnssec-cds \- change DS records for a child zone based on CDS/CDNSKEY
34 .SH SYNOPSIS
35 .sp
36 \fBdnssec\-cds\fP [\fB\-a\fP alg...] [\fB\-c\fP class] [\fB\-D\fP] {\fB\-d\fP dsset\-file} {\fB\-f\fP child\-file} [\fB\-i**[extension]] [\fP\-s** start\-time] [\fB\-T\fP ttl] [\fB\-u\fP] [\fB\-v\fP level] [\fB\-V\fP] {domain}
37 .SH DESCRIPTION
38 .sp
39 The \fBdnssec\-cds\fP command changes DS records at a delegation point
40 based on CDS or CDNSKEY records published in the child zone. If both CDS
41 and CDNSKEY records are present in the child zone, the CDS is preferred.
42 This enables a child zone to inform its parent of upcoming changes to
43 its key\-signing keys (KSKs); by polling periodically with \fBdnssec\-cds\fP, the
44 parent can keep the DS records up\-to\-date and enable automatic rolling
45 of KSKs.
46 .sp
47 Two input files are required. The \fB\-f child\-file\fP option specifies a
48 file containing the child\(aqs CDS and/or CDNSKEY records, plus RRSIG and
49 DNSKEY records so that they can be authenticated. The \fB\-d path\fP option
50 specifies the location of a file containing the current DS records. For
51 example, this could be a \fBdsset\-\fP file generated by
52 \fBdnssec\-signzone\fP \%<#\:std-iscman-dnssec-signzone>, or the output of \fBdnssec\-dsfromkey\fP \%<#\:std-iscman-dnssec-dsfromkey>, or the
53 output of a previous run of \fBdnssec\-cds\fP\&.
54 .sp
55 The \fBdnssec\-cds\fP command uses special DNSSEC validation logic
56 specified by \fBRFC 7344\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc7344\:.html>\&. It requires that the CDS and/or CDNSKEY records
57 be validly signed by a key represented in the existing DS records. This
58 is typically the pre\-existing KSK.
59 .sp
60 For protection against replay attacks, the signatures on the child
61 records must not be older than they were on a previous run of
62 \fBdnssec\-cds\fP\&. Their age is obtained from the modification time of the
63 \fBdsset\-\fP file, or from the \fB\-s\fP option.
64 .sp
65 To protect against breaking the delegation, \fBdnssec\-cds\fP ensures that
66 the DNSKEY RRset can be verified by every key algorithm in the new DS
67 RRset, and that the same set of keys are covered by every DS digest
68 type.
69 .sp
70 By default, replacement DS records are written to the standard output;
71 with the \fB\-i\fP option the input file is overwritten in place. The
72 replacement DS records are the same as the existing records, when no
73 change is required. The output can be empty if the CDS/CDNSKEY records
74 specify that the child zone wants to be insecure.
75 .sp
76 \fBWarning:\fP
77 .INDENT 0.0
78 .INDENT 3.5
79 Be careful not to delete the DS records when \fBdnssec\-cds\fP fails!
80 .UNINDENT
81 .UNINDENT
82 .sp
83 Alternatively, :option\(gadnssec\-cds \-u\(ga writes an \fBnsupdate\fP \%<#\:std-iscman-nsupdate> script to the
84 standard output. The \fB\-u\fP and \fB\-i\fP options can be used together to
85 maintain a \fBdsset\-\fP file as well as emit an \fBnsupdate\fP \%<#\:std-iscman-nsupdate> script.
86 .SH OPTIONS
87 .INDENT 0.0
88 .TP
89 .B \-a algorithm
90 When converting CDS records to DS records, this option specifies
91 the acceptable digest algorithms. This option can be repeated, so
92 that multiple digest types are allowed. If none of the CDS records
93 use an acceptable digest type, \fBdnssec\-cds\fP will try to use CDNSKEY
94 records instead; if there are no CDNSKEY records, it reports an error.
95 .sp
96 When converting CDNSKEY records to DS records, this option specifies the
97 digest algorithm to use. It can be repeated, so that multiple DS records
98 are created for each CDNSKEY records.
99 .sp
100 The algorithm must be one of SHA\-1, SHA\-256, or SHA\-384. These values
101 are case\-insensitive, and the hyphen may be omitted. If no algorithm
102 is specified, the default is SHA\-256 only.
103 .UNINDENT
104 .INDENT 0.0
105 .TP
106 .B \-c class
107 This option specifies the DNS class of the zones.
108 .UNINDENT
109 .INDENT 0.0
110 .TP
111 .B \-D
112 This option generates DS records from CDNSKEY records if both CDS and CDNSKEY
113 records are present in the child zone. By default CDS records are
114 preferred.
115 .UNINDENT
116 .INDENT 0.0
117 .TP
118 .B \-d path
119 This specifies the location of the parent DS records. The path can be the name of a file
120 containing the DS records; if it is a directory, \fBdnssec\-cds\fP
121 looks for a \fBdsset\-\fP file for the domain inside the directory.
122 .sp
123 To protect against replay attacks, child records are rejected if they
124 were signed earlier than the modification time of the \fBdsset\-\fP
125 file. This can be adjusted with the \fB\-s\fP option.
126 .UNINDENT
127 .INDENT 0.0
128 .TP
129 .B \-f child\-file
130 This option specifies the file containing the child\(aqs CDS and/or CDNSKEY records, plus its
131 DNSKEY records and the covering RRSIG records, so that they can be
132 authenticated.
133 .sp
134 The examples below describe how to generate this file.
135 .UNINDENT
136 .INDENT 0.0
137 .TP
138 .B \-i extension
139 This option updates the \fBdsset\-\fP file in place, instead of writing DS records to
140 the standard output.
141 .sp
142 There must be no space between the \fB\-i\fP and the extension. If
143 no extension is provided, the old \fBdsset\-\fP is discarded. If an
144 extension is present, a backup of the old \fBdsset\-\fP file is kept
145 with the extension appended to its filename.
146 .sp
147 To protect against replay attacks, the modification time of the
148 \fBdsset\-\fP file is set to match the signature inception time of the
149 child records, provided that it is later than the file\(aqs current
150 modification time.
151 .UNINDENT
152 .INDENT 0.0
153 .TP
154 .B \-s start\-time
155 This option specifies the date and time after which RRSIG records become
156 acceptable. This can be either an absolute or a relative time. An
157 absolute start time is indicated by a number in YYYYMMDDHHMMSS
158 notation; 20170827133700 denotes 13:37:00 UTC on August 27th, 2017. A
159 time relative to the \fBdsset\-\fP file is indicated with \fB\-N\fP, which is N
160 seconds before the file modification time. A time relative to the
161 current time is indicated with \fBnow+N\fP\&.
162 .sp
163 If no start\-time is specified, the modification time of the
164 \fBdsset\-\fP file is used.
165 .UNINDENT
166 .INDENT 0.0
167 .TP
168 .B \-T ttl
169 This option specifies a TTL to be used for new DS records. If not specified, the
170 default is the TTL of the old DS records. If they had no explicit TTL,
171 the new DS records also have no explicit TTL.
172 .UNINDENT
173 .INDENT 0.0
174 .TP
175 .B \-u
176 This option writes an \fBnsupdate\fP \%<#\:std-iscman-nsupdate> script to the standard output, instead of
177 printing the new DS reords. The output is empty if no change is
178 needed.
179 .sp
180 Note: The TTL of new records needs to be specified: it can be done in the
181 original \fBdsset\-\fP file, with the \fB\-T\fP option, or using the
182 \fBnsupdate\fP \%<#\:std-iscman-nsupdate> \fBttl\fP command.
183 .UNINDENT
184 .INDENT 0.0
185 .TP
186 .B \-V
187 This option prints version information.
188 .UNINDENT
189 .INDENT 0.0
190 .TP
191 .B \-v level
192 This option sets the debugging level. Level 1 is intended to be usefully verbose
193 for general users; higher levels are intended for developers.
194 .UNINDENT
195 .INDENT 0.0
196 .TP
197 .B \fBdomain\fP
198 This indicates the name of the delegation point/child zone apex.
199 .UNINDENT
200 .SH EXIT STATUS
201 .sp
202 The \fBdnssec\-cds\fP command exits 0 on success, or non\-zero if an error
203 occurred.
204 .sp
205 If successful, the DS records may or may not need to be
206 changed.
207 .SH EXAMPLES
208 .sp
209 Before running \fBdnssec\-signzone\fP \%<#\:std-iscman-dnssec-signzone>, ensure that the delegations
210 are up\-to\-date by running \fBdnssec\-cds\fP on every \fBdsset\-\fP file.
211 .sp
212 To fetch the child records required by \fBdnssec\-cds\fP, invoke
213 \fBdig\fP \%<#\:std-iscman-dig> as in the script below. It is acceptable if the \fBdig\fP \%<#\:std-iscman-dig> fails, since
214 \fBdnssec\-cds\fP performs all the necessary checking.
215 .INDENT 0.0
216 .INDENT 3.5
217 .sp
218 .EX
219 for f in dsset\-*
220 do
221 d=${f#dsset\-}
222 dig +dnssec +noall +answer $d DNSKEY $d CDNSKEY $d CDS |
223 dnssec\-cds \-i \-f /dev/stdin \-d $f $d
224 done
225 .EE
226 .UNINDENT
227 .UNINDENT
228 .sp
229 When the parent zone is automatically signed by \fBnamed\fP \%<#\:std-iscman-named>,
230 \fBdnssec\-cds\fP can be used with \fBnsupdate\fP \%<#\:std-iscman-nsupdate> to maintain a delegation as follows.
231 The \fBdsset\-\fP file allows the script to avoid having to fetch and
232 validate the parent DS records, and it maintains the replay attack
233 protection time.
234 .INDENT 0.0
235 .INDENT 3.5
236 .sp
237 .EX
238 dig +dnssec +noall +answer $d DNSKEY $d CDNSKEY $d CDS |
239 dnssec\-cds \-u \-i \-f /dev/stdin \-d $f $d |
240 nsupdate \-l
241 .EE
242 .UNINDENT
243 .UNINDENT
244 .SH SEE ALSO
245 .sp
246 \fBdig(1)\fP \%<#\:std-iscman-dig>, \fBdnssec\-settime(8)\fP \%<#\:std-iscman-dnssec-settime>, \fBdnssec\-signzone(8)\fP \%<#\:std-iscman-dnssec-signzone>, \fBnsupdate(1)\fP \%<#\:std-iscman-nsupdate>, BIND 9 Administrator
247 Reference Manual, \fBRFC 7344\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc7344\:.html>\&.
248 .SH Author
249 Internet Systems Consortium
250 .SH Copyright
251 2026, Internet Systems Consortium
252 .\" End of generated man page.