Debian Codegraph @

doc/man/named-compilezone.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 "NAMED-COMPILEZONE" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 named-compilezone \- zone file validity checking or converting tool
34 .SH SYNOPSIS
35 .sp
36 \fBnamed\-compilezone\fP [\fB\-d\fP] [\fB\-h\fP] [\fB\-j\fP] [\fB\-q\fP] [\fB\-v\fP] [\fB\-c\fP class] [\fB\-C\fP mode] [\fB\-f\fP format] [\fB\-F\fP format] [\fB\-J\fP filename] [\fB\-i\fP mode] [\fB\-k\fP mode] [\fB\-m\fP mode] [\fB\-M\fP mode] [\fB\-n\fP mode] [\fB\-l\fP ttl] [\fB\-L\fP serial] [\fB\-r\fP mode] [\fB\-s\fP style] [\fB\-S\fP mode] [\fB\-t\fP directory] [\fB\-T\fP mode] [\fB\-w\fP directory] [\fB\-D\fP] [\fB\-W\fP mode] {\fB\-o\fP filename} {zonename} {filename}
37 .SH DESCRIPTION
38 .sp
39 \fBnamed\-compilezone\fP checks the syntax and integrity of a zone file,
40 and dumps the zone contents to a specified file in a specified format.
41 .sp
42 Unlike \fBnamed\-checkzone\fP, zone contents are not strictly checked
43 by default. If the output is to be used as an actual zone file to be loaded
44 by \fBnamed\fP \%<#\:std-iscman-named>, then the check levels should be manually configured to
45 be at least as strict as those specified in the \fBnamed\fP \%<#\:std-iscman-named> configuration
46 file.
47 .sp
48 Running \fBnamed\-checkzone\fP on the input prior to compiling will
49 ensure that the zone compiles with the default requirements of
50 \fBnamed\fP \%<#\:std-iscman-named>\&.
51 .SH OPTIONS
52 .INDENT 0.0
53 .TP
54 .B \-d
55 This option enables debugging.
56 .UNINDENT
57 .INDENT 0.0
58 .TP
59 .B \-h
60 This option prints the usage summary and exits.
61 .UNINDENT
62 .INDENT 0.0
63 .TP
64 .B \-q
65 This option sets quiet mode, which only sets an exit code to indicate
66 successful or failed completion.
67 .UNINDENT
68 .INDENT 0.0
69 .TP
70 .B \-v
71 This option prints the version of the \fBnamed\-checkzone\fP \%<#\:std-iscman-named-checkzone> program and exits.
72 .UNINDENT
73 .INDENT 0.0
74 .TP
75 .B \-j
76 When loading a zone file, this option tells \fBnamed\fP \%<#\:std-iscman-named> to read the journal if it exists. The journal
77 file name is assumed to be the zone file name with the
78 string \fB\&.jnl\fP appended.
79 .UNINDENT
80 .INDENT 0.0
81 .TP
82 .B \-J filename
83 When loading the zone file, this option tells \fBnamed\fP \%<#\:std-iscman-named> to read the journal from the given file, if
84 it exists. This implies \fB\-j\fP\&.
85 .UNINDENT
86 .INDENT 0.0
87 .TP
88 .B \-c class
89 This option specifies the class of the zone. If not specified, \fBIN\fP is assumed.
90 .UNINDENT
91 .INDENT 0.0
92 .TP
93 .B \-C mode
94 This option controls check mode on zone files when loading.
95 Possible modes are \fBcheck\-svcb:fail\fP and \fBcheck\-svcb:ignore\fP\&.
96 .sp
97 \fBcheck\-svcb:fail\fP turns on additional checks on \fB_dns\fP SVCB
98 records and \fBcheck\-svcb:ignore\fP disables these checks. The
99 default is \fBcheck\-svcb:ignore\fP\&.
100 .UNINDENT
101 .INDENT 0.0
102 .TP
103 .B \-i mode
104 This option performs post\-load zone integrity checks. Possible modes are
105 \fBfull\fP, \fBfull\-sibling\fP, \fBlocal\fP,
106 \fBlocal\-sibling\fP, and \fBnone\fP (the default).
107 .sp
108 Mode \fBfull\fP checks that MX records refer to A or AAAA records
109 (both in\-zone and out\-of\-zone hostnames). Mode \fBlocal\fP only
110 checks MX records which refer to in\-zone hostnames.
111 .sp
112 Mode \fBfull\fP checks that SRV records refer to A or AAAA records
113 (both in\-zone and out\-of\-zone hostnames). Mode \fBlocal\fP only
114 checks SRV records which refer to in\-zone hostnames.
115 .sp
116 Mode \fBfull\fP checks that delegation NS records refer to A or AAAA
117 records (both in\-zone and out\-of\-zone hostnames). It also checks that
118 glue address records in the zone match those advertised by the child.
119 Mode \fBlocal\fP only checks NS records which refer to in\-zone
120 hostnames or verifies that some required glue exists, i.e., when the
121 name server is in a child zone.
122 .sp
123 Modes \fBfull\-sibling\fP and \fBlocal\-sibling\fP disable sibling glue
124 checks, but are otherwise the same as \fBfull\fP and \fBlocal\fP,
125 respectively.
126 .sp
127 Mode \fBnone\fP disables the checks.
128 .UNINDENT
129 .INDENT 0.0
130 .TP
131 .B \-f format
132 This option specifies the format of the zone file. Possible formats are
133 \fBtext\fP (the default), and \fBraw\fP\&.
134 .UNINDENT
135 .INDENT 0.0
136 .TP
137 .B \-F format
138 This option specifies the format of the output file specified. For
139 \fBnamed\-checkzone\fP \%<#\:std-iscman-named-checkzone>, this does not have any effect unless it dumps
140 the zone contents.
141 .sp
142 Possible formats are \fBtext\fP (the default), which is the standard
143 textual representation of the zone, and \fBraw\fP and \fBraw=N\fP, which
144 store the zone in a binary format for rapid loading by \fBnamed\fP \%<#\:std-iscman-named>\&.
145 \fBraw=N\fP specifies the format version of the raw zone file: if \fBN\fP is
146 0, the raw file can be read by any version of \fBnamed\fP \%<#\:std-iscman-named>; if N is 1, the
147 file can only be read by release 9.9.0 or higher. The default is 1.
148 .UNINDENT
149 .INDENT 0.0
150 .TP
151 .B \-k mode
152 This option performs \fBcheck\-names\fP checks with the specified failure mode.
153 Possible modes are \fBfail\fP, \fBwarn\fP, and \fBignore\fP (the default).
154 .UNINDENT
155 .INDENT 0.0
156 .TP
157 .B \-l ttl
158 This option sets a maximum permissible TTL for the input file. Any record with a
159 TTL higher than this value causes the zone to be rejected. This
160 is similar to using the \fBmax\-zone\-ttl\fP option in \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
161 .UNINDENT
162 .INDENT 0.0
163 .TP
164 .B \-L serial
165 When compiling a zone to \fBraw\fP format, this option sets the \(dqsource
166 serial\(dq value in the header to the specified serial number. This is
167 expected to be used primarily for testing purposes.
168 .UNINDENT
169 .INDENT 0.0
170 .TP
171 .B \-m mode
172 This option specifies whether MX records should be checked to see if they are
173 addresses. Possible modes are \fBfail\fP, \fBwarn\fP, and
174 \fBignore\fP (the default).
175 .UNINDENT
176 .INDENT 0.0
177 .TP
178 .B \-M mode
179 This option checks whether a MX record refers to a CNAME. Possible modes are
180 \fBfail\fP, \fBwarn\fP, and \fBignore\fP (the default).
181 .UNINDENT
182 .INDENT 0.0
183 .TP
184 .B \-n mode
185 This option specifies whether NS records should be checked to see if they are
186 addresses. Possible modes are \fBfail\fP, \fBwarn\fP, and
187 \fBignore\fP (the default).
188 .UNINDENT
189 .INDENT 0.0
190 .TP
191 .B \-o filename
192 This option writes the zone output to \fBfilename\fP\&. If \fBfilename\fP is \fB\-\fP, then
193 the zone output is written to standard output. This is mandatory for \fBnamed\-compilezone\fP\&.
194 .UNINDENT
195 .INDENT 0.0
196 .TP
197 .B \-r mode
198 This option checks for records that are treated as different by DNSSEC but are
199 semantically equal in plain DNS. Possible modes are \fBfail\fP,
200 \fBwarn\fP, and \fBignore\fP (the default).
201 .UNINDENT
202 .INDENT 0.0
203 .TP
204 .B \-s style
205 This option specifies the style of the dumped zone file. Possible styles are
206 \fBfull\fP (the default) and \fBrelative\fP\&. The \fBfull\fP format is most
207 suitable for processing automatically by a separate script.
208 The relative format is more human\-readable and is thus
209 suitable for editing by hand.
210 .UNINDENT
211 .INDENT 0.0
212 .TP
213 .B \-S mode
214 This option checks whether an SRV record refers to a CNAME. Possible modes are
215 \fBfail\fP, \fBwarn\fP, and \fBignore\fP (the default).
216 .UNINDENT
217 .INDENT 0.0
218 .TP
219 .B \-t directory
220 This option tells \fBnamed\fP \%<#\:std-iscman-named> to chroot to \fBdirectory\fP, so that \fBinclude\fP directives in the
221 configuration file are processed as if run by a similarly chrooted
222 \fBnamed\fP \%<#\:std-iscman-named>\&.
223 .UNINDENT
224 .INDENT 0.0
225 .TP
226 .B \-T mode
227 This option checks whether Sender Policy Framework (SPF) records exist and issues a
228 warning if an SPF\-formatted TXT record is not also present. Possible
229 modes are \fBwarn\fP and \fBignore\fP (the default).
230 .UNINDENT
231 .INDENT 0.0
232 .TP
233 .B \-w directory
234 This option instructs \fBnamed\fP \%<#\:std-iscman-named> to chdir to \fBdirectory\fP, so that relative filenames in master file
235 \fB$INCLUDE\fP directives work. This is similar to the directory clause in
236 \fBnamed.conf\fP \%<#\:std-iscman-named\:.conf>\&.
237 .UNINDENT
238 .INDENT 0.0
239 .TP
240 .B \-D
241 This option dumps the zone file in canonical format. This is always enabled for
242 \fBnamed\-compilezone\fP\&.
243 .UNINDENT
244 .INDENT 0.0
245 .TP
246 .B \-W mode
247 This option specifies whether to check for non\-terminal wildcards. Non\-terminal
248 wildcards are almost always the result of a failure to understand the
249 wildcard matching algorithm (\fBRFC 4592\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc4592\:.html>). Possible modes are \fBwarn\fP
250 and \fBignore\fP (the default).
251 .UNINDENT
252 .INDENT 0.0
253 .TP
254 .B zonename
255 This indicates the domain name of the zone being checked.
256 .UNINDENT
257 .INDENT 0.0
258 .TP
259 .B filename
260 This is the name of the zone file.
261 .UNINDENT
262 .SH RETURN VALUES
263 .sp
264 \fBnamed\-compilezone\fP returns an exit status of 1 if errors were detected
265 and 0 otherwise.
266 .SH SEE ALSO
267 .sp
268 \fBnamed(8)\fP \%<#\:std-iscman-named>, \fBnamed\-checkconf(8)\fP \%<#\:std-iscman-named-checkconf>, \fBnamed\-checkzone(8)\fP \%<#\:std-iscman-named-checkzone>, \fBRFC 1035\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc1035\:.html>,
269 BIND 9 Administrator Reference Manual.
270 .SH Author
271 Internet Systems Consortium
272 .SH Copyright
273 2026, Internet Systems Consortium
274 .\" End of generated man page.