]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bind9/bin/dnssec/dnssec-signzone.8
Copy xen includes in to RELENG_6 branch
[FreeBSD/FreeBSD.git] / contrib / bind9 / bin / dnssec / dnssec-signzone.8
1 .\" Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
2 .\" Copyright (C) 2000-2003 Internet Software Consortium.
3 .\" 
4 .\" Permission to use, copy, modify, and 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.23.2.1.4.14 2007/05/09 03:32:36 marka 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\-n\ \fR\fB\fInthreads\fR\fR] [\fB\-o\ \fR\fB\fIorigin\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 \-n \fIncpus\fR
123 .RS 4
124 Specifies the number of threads to use. By default, one thread is started for each detected CPU.
125 .RE
126 .PP
127 \-o \fIorigin\fR
128 .RS 4
129 The zone origin. If not specified, the name of the zone file is assumed to be the origin.
130 .RE
131 .PP
132 \-p
133 .RS 4
134 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.
135 .RE
136 .PP
137 \-r \fIrandomdev\fR
138 .RS 4
139 Specifies the source of randomness. If the operating system does not provide a
140 \fI/dev/random\fR
141 or equivalent device, the default source of randomness is keyboard input.
142 \fIrandomdev\fR
143 specifies the name of a character device or file containing random data to be used instead of the default. The special value
144 \fIkeyboard\fR
145 indicates that keyboard input should be used.
146 .RE
147 .PP
148 \-t
149 .RS 4
150 Print statistics at completion.
151 .RE
152 .PP
153 \-v \fIlevel\fR
154 .RS 4
155 Sets the debugging level.
156 .RE
157 .PP
158 \-z
159 .RS 4
160 Ignore KSK flag on key when determining what to sign.
161 .RE
162 .PP
163 zonefile
164 .RS 4
165 The file containing the zone to be signed.
166 .RE
167 .PP
168 key
169 .RS 4
170 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.
171 .RE
172 .SH "EXAMPLE"
173 .PP
174 The following command signs the
175 \fBexample.com\fR
176 zone with the DSA key generated by
177 \fBdnssec\-keygen\fR
178 (Kexample.com.+003+17247). The zone's keys must be in the master file (\fIdb.example.com\fR). This invocation looks for
179 \fIkeyset\fR
180 files, in the current directory, so that DS records can be generated from them (\fB\-g\fR).
181 .sp
182 .RS 4
183 .nf
184 % dnssec\-signzone \-g \-o example.com db.example.com \\
185 Kexample.com.+003+17247
186 db.example.com.signed
187 %
188 .fi
189 .RE
190 .PP
191 In the above example,
192 \fBdnssec\-signzone\fR
193 creates the file
194 \fIdb.example.com.signed\fR. This file should be referenced in a zone statement in a
195 \fInamed.conf\fR
196 file.
197 .PP
198 This example re\-signs a previously signed zone with default parameters. The private keys are assumed to be in the current directory.
199 .sp
200 .RS 4
201 .nf
202 % cp db.example.com.signed db.example.com
203 % dnssec\-signzone \-o example.com db.example.com
204 db.example.com.signed
205 %
206 .fi
207 .RE
208 .SH "SEE ALSO"
209 .PP
210 \fBdnssec\-keygen\fR(8),
211 BIND 9 Administrator Reference Manual,
212 RFC 2535.
213 .SH "AUTHOR"
214 .PP
215 Internet Systems Consortium
216 .SH "COPYRIGHT"
217 Copyright \(co 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
218 .br
219 Copyright \(co 2000\-2003 Internet Software Consortium.
220 .br