1NAMED-CHECKZONE(8) BIND9 NAMED-CHECKZONE(8)
2
3
4
6 named-checkzone, named-compilezone - zone file validity checking or
7 converting tool
8
10 named-checkzone [-d] [-h] [-j] [-q] [-v] [-c class] [-f format]
11 [-F format] [-i mode] [-k mode] [-m mode] [-M mode]
12 [-n mode] [-L serial] [-o filename] [-r mode]
13 [-s style] [-S mode] [-t directory] [-T mode]
14 [-w directory] [-D] [-W mode] {zonename} {filename}
15
16 named-compilezone [-d] [-j] [-q] [-v] [-c class] [-C mode] [-f format]
17 [-F format] [-i mode] [-k mode] [-m mode] [-n mode]
18 [-L serial] [-r mode] [-s style] [-t directory]
19 [-T mode] [-w directory] [-D] [-W mode] {-o filename}
20 {zonename} {filename}
21
23 named-checkzone checks the syntax and integrity of a zone file. It
24 performs the same checks as named does when loading a zone. This makes
25 named-checkzone useful for checking zone files before configuring them
26 into a name server.
27
28 named-compilezone is similar to named-checkzone, but it always dumps
29 the zone contents to a specified file in a specified format.
30 Additionally, it applies stricter check levels by default, since the
31 dump output will be used as an actual zone file loaded by named. When
32 manually specified otherwise, the check levels must at least be as
33 strict as those specified in the named configuration file.
34
36 -d
37 Enable debugging.
38
39 -h
40 Print the usage summary and exit.
41
42 -q
43 Quiet mode - exit code only.
44
45 -v
46 Print the version of the named-checkzone program and exit.
47
48 -j
49 When loading the zone file read the journal if it exists.
50
51 -c class
52 Specify the class of the zone. If not specified, "IN" is assumed.
53
54 -i mode
55 Perform post-load zone integrity checks. Possible modes are "full"
56 (default), "full-sibling", "local", "local-sibling" and "none".
57
58 Mode "full" checks that MX records refer to A or AAAA record (both
59 in-zone and out-of-zone hostnames). Mode "local" only checks MX
60 records which refer to in-zone hostnames.
61
62 Mode "full" checks that SRV records refer to A or AAAA record (both
63 in-zone and out-of-zone hostnames). Mode "local" only checks SRV
64 records which refer to in-zone hostnames.
65
66 Mode "full" checks that delegation NS records refer to A or AAAA
67 record (both in-zone and out-of-zone hostnames). It also checks
68 that glue address records in the zone match those advertised by the
69 child. Mode "local" only checks NS records which refer to in-zone
70 hostnames or that some required glue exists, that is when the
71 nameserver is in a child zone.
72
73 Mode "full-sibling" and "local-sibling" disable sibling glue checks
74 but are otherwise the same as "full" and "local" respectively.
75
76 Mode "none" disables the checks.
77
78 -f format
79 Specify the format of the zone file. Possible formats are "text"
80 (default) and "raw".
81
82 -F format
83 Specify the format of the output file specified. For
84 named-checkzone, this does not cause any effects unless it dumps
85 the zone contents.
86
87 Possible formats are "text" (default) and "raw" or "raw=N", which
88 store the zone in a binary format for rapid loading by named.
89 "raw=N" specifies the format version of the raw zone file: if N is
90 0, the raw file can be read by any version of named; if N is 1, the
91 file can be read by release 9.9.0 or higher. The default is 1.
92
93 -k mode
94 Perform "check-names" checks with the specified failure mode.
95 Possible modes are "fail" (default for named-compilezone), "warn"
96 (default for named-checkzone) and "ignore".
97
98 -L serial
99 When compiling a zone to 'raw' format, set the "source serial"
100 value in the header to the specified serial number. (This is
101 expected to be used primarily for testing purposes.)
102
103 -m mode
104 Specify whether MX records should be checked to see if they are
105 addresses. Possible modes are "fail", "warn" (default) and
106 "ignore".
107
108 -M mode
109 Check if a MX record refers to a CNAME. Possible modes are "fail",
110 "warn" (default) and "ignore".
111
112 -n mode
113 Specify whether NS records should be checked to see if they are
114 addresses. Possible modes are "fail" (default for
115 named-compilezone), "warn" (default for named-checkzone) and
116 "ignore".
117
118 -o filename
119 Write zone output to filename. If filename is - then write to
120 standard out. This is mandatory for named-compilezone.
121
122 -r mode
123 Check for records that are treated as different by DNSSEC but are
124 semantically equal in plain DNS. Possible modes are "fail", "warn"
125 (default) and "ignore".
126
127 -s style
128 Specify the style of the dumped zone file. Possible styles are
129 "full" (default) and "relative". The full format is most suitable
130 for processing automatically by a separate script. On the other
131 hand, the relative format is more human-readable and is thus
132 suitable for editing by hand. For named-checkzone this does not
133 cause any effects unless it dumps the zone contents. It also does
134 not have any meaning if the output format is not text.
135
136 -S mode
137 Check if a SRV record refers to a CNAME. Possible modes are "fail",
138 "warn" (default) and "ignore".
139
140 -t directory
141 Chroot to directory so that include directives in the configuration
142 file are processed as if run by a similarly chrooted named.
143
144 -T mode
145 Check if Sender Policy Framework (SPF) records exist and issues a
146 warning if an SPF-formatted TXT record is not also present.
147 Possible modes are "warn" (default), "ignore".
148
149 -w directory
150 chdir to directory so that relative filenames in master file
151 $INCLUDE directives work. This is similar to the directory clause
152 in named.conf.
153
154 -D
155 Dump zone file in canonical format. This is always enabled for
156 named-compilezone.
157
158 -W mode
159 Specify whether to check for non-terminal wildcards. Non-terminal
160 wildcards are almost always the result of a failure to understand
161 the wildcard matching algorithm (RFC 1034). Possible modes are
162 "warn" (default) and "ignore".
163
164 zonename
165 The domain name of the zone being checked.
166
167 filename
168 The name of the zone file.
169
171 named-checkzone returns an exit status of 1 if errors were detected and
172 0 otherwise.
173
175 named(8), named-checkconf(8), RFC 1035, BIND 9 Administrator Reference
176 Manual.
177
179 Internet Systems Consortium
180
182 Copyright © 2004-2007, 2009-2011, 2013 Internet Systems Consortium,
183 Inc. ("ISC")
184 Copyright © 2000-2002 Internet Software Consortium.
185
186
187
188BIND9 June 13, 2000 NAMED-CHECKZONE(8)