Debian Codegraph @

doc/man/dnssec-dsfromkey.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-DSFROMKEY" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 dnssec-dsfromkey \- DNSSEC DS RR generation tool
34 .SH SYNOPSIS
35 .sp
36 \fBdnssec\-dsfromkey\fP [ \fB\-1\fP | \fB\-2\fP | \fB\-a\fP alg ] [ \fB\-C\fP ] [\fB\-T\fP TTL] [\fB\-v\fP level] [\fB\-K\fP directory] {keyfile}
37 .sp
38 \fBdnssec\-dsfromkey\fP [ \fB\-1\fP | \fB\-2\fP | \fB\-a\fP alg ] [ \fB\-C\fP ] [\fB\-T\fP TTL] [\fB\-v\fP level] [\fB\-c\fP class] [\fB\-A\fP] {\fB\-f\fP file} [dnsname]
39 .sp
40 \fBdnssec\-dsfromkey\fP [ \fB\-1\fP | \fB\-2\fP | \fB\-a\fP alg ] [ \fB\-C\fP ] [\fB\-T\fP TTL] [\fB\-v\fP level] [\fB\-c\fP class] [\fB\-K\fP directory] {\fB\-s\fP} {dnsname}
41 .sp
42 \fBdnssec\-dsfromkey\fP [ \fB\-h\fP | \fB\-V\fP ]
43 .SH DESCRIPTION
44 .sp
45 The \fBdnssec\-dsfromkey\fP command outputs DS (Delegation
46 Signer) resource records (RRs), or CDS (Child DS) RRs with the
47 \fB\-C\fP option.
48 .sp
49 By default, only KSKs are converted (keys with flags = 257). The
50 \fB\-A\fP option includes ZSKs (flags = 256). Revoked keys are
51 never included.
52 .sp
53 The input keys can be specified in a number of ways:
54 .sp
55 By default, \fBdnssec\-dsfromkey\fP reads a key file named in
56 the format \fBKnnnn.+aaa+iiiii.key\fP, as generated by
57 \fBdnssec\-keygen\fP \%<#\:std-iscman-dnssec-keygen>\&.
58 .sp
59 With the \fB\-f file\fP option, \fBdnssec\-dsfromkey\fP
60 reads keys from a zone file or partial zone file (which can contain
61 just the DNSKEY records).
62 .sp
63 With the \fB\-s\fP option, \fBdnssec\-dsfromkey\fP reads a
64 \fBkeyset\-\fP file, as generated by \fBdnssec\-keygen\fP \%<#\:std-iscman-dnssec-keygen> \fB\-C\fP\&.
65 .SH OPTIONS
66 .INDENT 0.0
67 .TP
68 .B \-1
69 This option is an abbreviation for \fB\-a SHA1\fP\&. This
70 digest is deprecated.
71 .UNINDENT
72 .INDENT 0.0
73 .TP
74 .B \-2
75 This option is an abbreviation for \fB\-a SHA\-256\fP\&.
76 .UNINDENT
77 .INDENT 0.0
78 .TP
79 .B \-a algorithm
80 This option specifies a digest algorithm to use when converting
81 DNSKEY records to DS records. This option can be repeated, so
82 that multiple DS records are created for each DNSKEY record.
83 .sp
84 The algorithm must be one of SHA\-1 (deprecated), SHA\-256, or
85 SHA\-384. These values are case\-insensitive, and the hyphen may
86 be omitted. If no algorithm is specified, the default is SHA\-256.
87 .UNINDENT
88 .INDENT 0.0
89 .TP
90 .B \-A
91 This option indicates that ZSKs are to be included when generating
92 DS records. Without this option, only keys which have the KSK
93 flag set are converted to DS records and printed. This option
94 is only useful in \fB\-f\fP zone file mode.
95 .UNINDENT
96 .INDENT 0.0
97 .TP
98 .B \-c class
99 This option specifies the DNS class; the default is IN. This
100 option is only useful in \fB\-s\fP keyset or \fB\-f\fP
101 zone file mode.
102 .UNINDENT
103 .INDENT 0.0
104 .TP
105 .B \-C
106 This option generates CDS records rather than DS records.
107 .UNINDENT
108 .INDENT 0.0
109 .TP
110 .B \-f file
111 This option sets zone file mode, in which the final dnsname
112 argument of \fBdnssec\-dsfromkey\fP is the DNS domain name
113 of a zone whose master file can be read from \fBfile\fP\&. If the
114 zone name is the same as \fBfile\fP, then it may be omitted.
115 .sp
116 If \fBfile\fP is \fB\-\fP, then the zone data is read from the standard
117 input. This makes it possible to use the output of the \fBdig\fP \%<#\:std-iscman-dig>
118 command as input, as in:
119 .sp
120 \fBdig dnskey example.com | dnssec\-dsfromkey \-f \- example.com\fP
121 .UNINDENT
122 .INDENT 0.0
123 .TP
124 .B \-h
125 This option prints usage information.
126 .UNINDENT
127 .INDENT 0.0
128 .TP
129 .B \-K directory
130 This option tells BIND 9 to look for key files or \fBkeyset\-\fP
131 files in \fBdirectory\fP\&.
132 .UNINDENT
133 .INDENT 0.0
134 .TP
135 .B \-s
136 This option enables keyset mode, in which the final dnsname
137 argument from \fBdnssec\-dsfromkey\fP is the DNS domain name
138 used to locate a \fBkeyset\-\fP file.
139 .UNINDENT
140 .INDENT 0.0
141 .TP
142 .B \-T TTL
143 This option specifies the TTL of the DS records. By default the
144 TTL is omitted.
145 .UNINDENT
146 .INDENT 0.0
147 .TP
148 .B \-v level
149 This option sets the debugging level.
150 .UNINDENT
151 .INDENT 0.0
152 .TP
153 .B \-V
154 This option prints version information.
155 .UNINDENT
156 .SH EXAMPLE
157 .sp
158 To build the SHA\-256 DS RR from the \fBKexample.com.+003+26160\fP keyfile,
159 issue the following command:
160 .sp
161 \fBdnssec\-dsfromkey \-2 Kexample.com.+003+26160\fP
162 .sp
163 The command returns something similar to:
164 .sp
165 \fBexample.com. IN DS 26160 5 2 3A1EADA7A74B8D0BA86726B0C227AA85AB8BBD2B2004F41A868A54F0C5EA0B94\fP
166 .SH FILES
167 .sp
168 The keyfile can be designated by the key identification
169 \fBKnnnn.+aaa+iiiii\fP or the full file name \fBKnnnn.+aaa+iiiii.key\fP, as
170 generated by \fBdnssec\-keygen\fP \%<#\:std-iscman-dnssec-keygen>\&.
171 .sp
172 The keyset file name is built from the \fBdirectory\fP, the string
173 \fBkeyset\-\fP, and the \fBdnsname\fP\&.
174 .SH CAVEAT
175 .sp
176 A keyfile error may return \(dqfile not found,\(dq even if the file exists.
177 .SH SEE ALSO
178 .sp
179 \fBdnssec\-keygen(8)\fP \%<#\:std-iscman-dnssec-keygen>, \fBdnssec\-signzone(8)\fP \%<#\:std-iscman-dnssec-signzone>, BIND 9 Administrator Reference Manual,
180 \fBRFC 3658\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc3658\:.html> (DS RRs), \fBRFC 4509\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc4509\:.html> (SHA\-256 for DS RRs),
181 \fBRFC 6605\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc6605\:.html> (SHA\-384 for DS RRs), \fBRFC 7344\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc7344\:.html> (CDS and CDNSKEY RRs).
182 .SH Author
183 Internet Systems Consortium
184 .SH Copyright
185 2026, Internet Systems Consortium
186 .\" End of generated man page.