BIND - Update BIND to 9.5.2
[dragonfly.git] / contrib / bind-9.5.2 / bin / dnssec / dnssec-signzone.8
1 .\" Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
2 .\" Copyright (C) 2000-2003 Internet Software Consortium.
3 .\" 
4 .\" Permission to use, copy, modify, and/or distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies.
7 .\" 
8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 .\" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 .\" AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 .\" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 .\" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 .\" PERFORMANCE OF THIS SOFTWARE.
15 .\"
16 .\" $Id: dnssec-signzone.8,v 1.45.164.3 2009/07/11 01:43:27 tbox Exp $
17 .\"
18 .hy 0
19 .ad l
20 .\"     Title: dnssec\-signzone
21 .\"    Author: 
22 .\" Generator: DocBook XSL Stylesheets v1.71.1 <http://docbook.sf.net/>
23 .\"      Date: June 30, 2000
24 .\"    Manual: BIND9
25 .\"    Source: BIND9
26 .\"
27 .TH "DNSSEC\-SIGNZONE" "8" "June 30, 2000" "BIND9" "BIND9"
28 .\" disable hyphenation
29 .nh
30 .\" disable justification (adjust text to left margin only)
31 .ad l
32 .SH "NAME"
33 dnssec\-signzone \- DNSSEC zone signing tool
34 .SH "SYNOPSIS"
35 .HP 16
36 \fBdnssec\-signzone\fR [\fB\-a\fR] [\fB\-c\ \fR\fB\fIclass\fR\fR] [\fB\-d\ \fR\fB\fIdirectory\fR\fR] [\fB\-e\ \fR\fB\fIend\-time\fR\fR] [\fB\-f\ \fR\fB\fIoutput\-file\fR\fR] [\fB\-g\fR] [\fB\-h\fR] [\fB\-k\ \fR\fB\fIkey\fR\fR] [\fB\-l\ \fR\fB\fIdomain\fR\fR] [\fB\-i\ \fR\fB\fIinterval\fR\fR] [\fB\-I\ \fR\fB\fIinput\-format\fR\fR] [\fB\-j\ \fR\fB\fIjitter\fR\fR] [\fB\-N\ \fR\fB\fIsoa\-serial\-format\fR\fR] [\fB\-o\ \fR\fB\fIorigin\fR\fR] [\fB\-O\ \fR\fB\fIoutput\-format\fR\fR] [\fB\-p\fR] [\fB\-r\ \fR\fB\fIrandomdev\fR\fR] [\fB\-s\ \fR\fB\fIstart\-time\fR\fR] [\fB\-t\fR] [\fB\-v\ \fR\fB\fIlevel\fR\fR] [\fB\-z\fR] {zonefile} [key...]
37 .SH "DESCRIPTION"
38 .PP
39 \fBdnssec\-signzone\fR
40 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 or not) is determined by the presence or absence of a
41 \fIkeyset\fR
42 file for each child zone.
43 .SH "OPTIONS"
44 .PP
45 \-a
46 .RS 4
47 Verify all generated signatures.
48 .RE
49 .PP
50 \-c \fIclass\fR
51 .RS 4
52 Specifies the DNS class of the zone.
53 .RE
54 .PP
55 \-k \fIkey\fR
56 .RS 4
57 Treat specified key as a key signing key ignoring any key flags. This option may be specified multiple times.
58 .RE
59 .PP
60 \-l \fIdomain\fR
61 .RS 4
62 Generate a DLV set in addition to the key (DNSKEY) and DS sets. The domain is appended to the name of the records.
63 .RE
64 .PP
65 \-d \fIdirectory\fR
66 .RS 4
67 Look for
68 \fIkeyset\fR
69 files in
70 \fBdirectory\fR
71 as the directory
72 .RE
73 .PP
74 \-g
75 .RS 4
76 Generate DS records for child zones from keyset files. Existing DS records will be removed.
77 .RE
78 .PP
79 \-s \fIstart\-time\fR
80 .RS 4
81 Specify the date and time when the generated RRSIG records become valid. This can be either an absolute or relative time. An absolute start time is indicated by a number in YYYYMMDDHHMMSS notation; 20000530144500 denotes 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 no
82 \fBstart\-time\fR
83 is specified, the current time minus 1 hour (to allow for clock skew) is used.
84 .RE
85 .PP
86 \-e \fIend\-time\fR
87 .RS 4
88 Specify the date and time when the generated RRSIG records expire. As with
89 \fBstart\-time\fR, 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
90 \fBend\-time\fR
91 is specified, 30 days from the start time is used as a default.
92 .RE
93 .PP
94 \-f \fIoutput\-file\fR
95 .RS 4
96 The name of the output file containing the signed zone. The default is to append
97 \fI.signed\fR
98 to the input filename.
99 .RE
100 .PP
101 \-h
102 .RS 4
103 Prints a short summary of the options and arguments to
104 \fBdnssec\-signzone\fR.
105 .RE
106 .PP
107 \-i \fIinterval\fR
108 .RS 4
109 When a previously\-signed zone is passed as input, records may be resigned. The
110 \fBinterval\fR
111 option specifies the cycle interval as an offset from the current time (in seconds). If a RRSIG record expires after the cycle interval, it is retained. Otherwise, it is considered to be expiring soon, and it will be replaced.
112 .sp
113 The default cycle interval is one quarter of the difference between the signature end and start times. So if neither
114 \fBend\-time\fR
115 or
116 \fBstart\-time\fR
117 are specified,
118 \fBdnssec\-signzone\fR
119 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 would be replaced.
120 .RE
121 .PP
122 \-I \fIinput\-format\fR
123 .RS 4
124 The format of the input zone file. Possible formats are
125 \fB"text"\fR
126 (default) and
127 \fB"raw"\fR. 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. The use of this option does not make much sense for non\-dynamic zones.
128 .RE
129 .PP
130 \-j \fIjitter\fR
131 .RS 4
132 When signing a zone with a fixed signature lifetime, all RRSIG records issued at the time of signing expires simultaneously. If the zone is incrementally signed, i.e. a previously\-signed zone is passed as input to the signer, all expired signatures have to be regenerated at about the same time. The
133 \fBjitter\fR
134 option specifies a jitter window that will be used to randomize the signature expire time, thus spreading incremental signature regeneration over time.
135 .sp
136 Signature lifetime jitter also to some extent benefits validators and servers by spreading out cache expiration, i.e. if large numbers of RRSIGs don't expire at the same time from all caches there will be less congestion than if all validators need to refetch at mostly the same time.
137 .RE
138 .PP
139 \-n \fIncpus\fR
140 .RS 4
141 Specifies the number of threads to use. By default, one thread is started for each detected CPU.
142 .RE
143 .PP
144 \-N \fIsoa\-serial\-format\fR
145 .RS 4
146 The SOA serial number format of the signed zone. Possible formats are
147 \fB"keep"\fR
148 (default),
149 \fB"increment"\fR
150 and
151 \fB"unixtime"\fR.
152 .RS 4
153 .PP
154 \fB"keep"\fR
155 .RS 4
156 Do not modify the SOA serial number.
157 .RE
158 .PP
159 \fB"increment"\fR
160 .RS 4
161 Increment the SOA serial number using RFC 1982 arithmetics.
162 .RE
163 .PP
164 \fB"unixtime"\fR
165 .RS 4
166 Set the SOA serial number to the number of seconds since epoch.
167 .RE
168 .RE
169 .RE
170 .PP
171 \-o \fIorigin\fR
172 .RS 4
173 The zone origin. If not specified, the name of the zone file is assumed to be the origin.
174 .RE
175 .PP
176 \-O \fIoutput\-format\fR
177 .RS 4
178 The format of the output file containing the signed zone. Possible formats are
179 \fB"text"\fR
180 (default) and
181 \fB"raw"\fR.
182 .RE
183 .PP
184 \-p
185 .RS 4
186 Use pseudo\-random data when signing the zone. This is faster, but less secure, than using real random data. This option may be useful when signing large zones or when the entropy source is limited.
187 .RE
188 .PP
189 \-r \fIrandomdev\fR
190 .RS 4
191 Specifies the source of randomness. If the operating system does not provide a
192 \fI/dev/random\fR
193 or equivalent device, the default source of randomness is keyboard input.
194 \fIrandomdev\fR
195 specifies the name of a character device or file containing random data to be used instead of the default. The special value
196 \fIkeyboard\fR
197 indicates that keyboard input should be used.
198 .RE
199 .PP
200 \-t
201 .RS 4
202 Print statistics at completion.
203 .RE
204 .PP
205 \-v \fIlevel\fR
206 .RS 4
207 Sets the debugging level.
208 .RE
209 .PP
210 \-z
211 .RS 4
212 Ignore KSK flag on key when determining what to sign.
213 .RE
214 .PP
215 zonefile
216 .RS 4
217 The file containing the zone to be signed.
218 .RE
219 .PP
220 key
221 .RS 4
222 Specify which keys should be used to sign the zone. If no keys are specified, then the zone will be examined for DNSKEY records at the zone apex. If these are found and there are matching private keys, in the current directory, then these will be used for signing.
223 .RE
224 .SH "EXAMPLE"
225 .PP
226 The following command signs the
227 \fBexample.com\fR
228 zone with the DSA key generated by
229 \fBdnssec\-keygen\fR
230 (Kexample.com.+003+17247). The zone's keys must be in the master file (\fIdb.example.com\fR). This invocation looks for
231 \fIkeyset\fR
232 files, in the current directory, so that DS records can be generated from them (\fB\-g\fR).
233 .sp
234 .RS 4
235 .nf
236 % dnssec\-signzone \-g \-o example.com db.example.com \\
237 Kexample.com.+003+17247
238 db.example.com.signed
239 %
240 .fi
241 .RE
242 .PP
243 In the above example,
244 \fBdnssec\-signzone\fR
245 creates the file
246 \fIdb.example.com.signed\fR. This file should be referenced in a zone statement in a
247 \fInamed.conf\fR
248 file.
249 .PP
250 This example re\-signs a previously signed zone with default parameters. The private keys are assumed to be in the current directory.
251 .sp
252 .RS 4
253 .nf
254 % cp db.example.com.signed db.example.com
255 % dnssec\-signzone \-o example.com db.example.com
256 db.example.com.signed
257 %
258 .fi
259 .RE
260 .SH "SEE ALSO"
261 .PP
262 \fBdnssec\-keygen\fR(8),
263 BIND 9 Administrator Reference Manual,
264 RFC 4033.
265 .SH "AUTHOR"
266 .PP
267 Internet Systems Consortium
268 .SH "COPYRIGHT"
269 Copyright \(co 2004\-2008 Internet Systems Consortium, Inc. ("ISC")
270 .br
271 Copyright \(co 2000\-2003 Internet Software Consortium.
272 .br