1NAMED-CHECKZONE(8) BIND 9 NAMED-CHECKZONE(8)
2
3
4
6 named-checkzone - zone file validity checking or converting tool
7
9 named-checkzone [-d] [-h] [-j] [-q] [-v] [-c class] [-f format] [-F
10 format] [-J filename] [-i mode] [-k mode] [-m mode] [-M mode] [-n mode]
11 [-l ttl] [-L serial] [-o filename] [-r mode] [-s style] [-S mode] [-t
12 directory] [-T mode] [-w directory] [-D] [-W mode] {zonename} {file‐
13 name}
14
16 named-checkzone checks the syntax and integrity of a zone file. It per‐
17 forms the same checks as named does when loading a zone. This makes
18 named-checkzone useful for checking zone files before configuring them
19 into a name server.
20
22 -d This option enables debugging.
23
24 -h This option prints the usage summary and exits.
25
26 -q This option sets quiet mode, which only sets an exit code to in‐
27 dicate successful or failed completion.
28
29 -v This option prints the version of the named-checkzone program
30 and exits.
31
32 -j When loading a zone file, this option tells named to read the
33 journal if it exists. The journal file name is assumed to be the
34 zone file name with the string .jnl appended.
35
36 -J filename
37 When loading the zone file, this option tells named to read the
38 journal from the given file, if it exists. This implies -j.
39
40 -c class
41 This option specifies the class of the zone. If not specified,
42 IN is assumed.
43
44 -i mode
45 This option performs post-load zone integrity checks. Possible
46 modes are full (the default), full-sibling, local, local-sib‐
47 ling, and none.
48
49 Mode full checks that MX records refer to A or AAAA records
50 (both in-zone and out-of-zone hostnames). Mode local only checks
51 MX records which refer to in-zone hostnames.
52
53 Mode full checks that SRV records refer to A or AAAA records
54 (both in-zone and out-of-zone hostnames). Mode local only checks
55 SRV records which refer to in-zone hostnames.
56
57 Mode full checks that delegation NS records refer to A or AAAA
58 records (both in-zone and out-of-zone hostnames). It also checks
59 that glue address records in the zone match those advertised by
60 the child. Mode local only checks NS records which refer to
61 in-zone hostnames or verifies that some required glue exists,
62 i.e., when the name server is in a child zone.
63
64 Modes full-sibling and local-sibling disable sibling glue
65 checks, but are otherwise the same as full and local, respec‐
66 tively.
67
68 Mode none disables the checks.
69
70 -f format
71 This option specifies the format of the zone file. Possible for‐
72 mats are text (the default), raw, and map.
73
74 -F format
75 This option specifies the format of the output file specified.
76 For named-checkzone, this does not have any effect unless it
77 dumps the zone contents.
78
79 Possible formats are text (the default), which is the standard
80 textual representation of the zone, and map, raw, and raw=N,
81 which store the zone in a binary format for rapid loading by
82 named. raw=N specifies the format version of the raw zone file:
83 if N is 0, the raw file can be read by any version of named; if
84 N is 1, the file can only be read by release 9.9.0 or higher.
85 The default is 1.
86
87 -k mode
88 This option performs check-names checks with the specified fail‐
89 ure mode. Possible modes are fail, warn (the default), and ig‐
90 nore.
91
92 -l ttl This option sets a maximum permissible TTL for the input file.
93 Any record with a TTL higher than this value causes the zone to
94 be rejected. This is similar to using the max-zone-ttl option in
95 named.conf.
96
97 -L serial
98 When compiling a zone to raw or map format, this option sets the
99 "source serial" value in the header to the specified serial num‐
100 ber. This is expected to be used primarily for testing purposes.
101
102 -m mode
103 This option specifies whether MX records should be checked to
104 see if they are addresses. Possible modes are fail, warn (the
105 default), and ignore.
106
107 -M mode
108 This option checks whether a MX record refers to a CNAME. Possi‐
109 ble modes are fail, warn (the default), and ignore.
110
111 -n mode
112 This option specifies whether NS records should be checked to
113 see if they are addresses. Possible modes are fail, warn (the
114 default), and ignore.
115
116 -o filename
117 This option writes the zone output to filename. If filename is
118 -, then the zone output is written to standard output.
119
120 -r mode
121 This option checks for records that are treated as different by
122 DNSSEC but are semantically equal in plain DNS. Possible modes
123 are fail, warn (the default), and ignore.
124
125 -s style
126 This option specifies the style of the dumped zone file. Possi‐
127 ble styles are full (the default) and relative. The full format
128 is most suitable for processing automatically by a separate
129 script. The relative format is more human-readable and is thus
130 suitable for editing by hand. This does not have any effect un‐
131 less it dumps the zone contents. It also does not have any mean‐
132 ing if the output format is not text.
133
134 -S mode
135 This option checks whether an SRV record refers to a CNAME. Pos‐
136 sible modes are fail, warn (the default), and ignore.
137
138 -t directory
139 This option tells named to chroot to directory, so that include
140 directives in the configuration file are processed as if run by
141 a similarly chrooted named.
142
143 -T mode
144 This option checks whether Sender Policy Framework (SPF) records
145 exist and issues a warning if an SPF-formatted TXT record is not
146 also present. Possible modes are warn (the default) and ignore.
147
148 -w directory
149 This option instructs named to chdir to directory, so that rela‐
150 tive filenames in master file $INCLUDE directives work. This is
151 similar to the directory clause in named.conf.
152
153 -D This option dumps the zone file in canonical format.
154
155 -W mode
156 This option specifies whether to check for non-terminal wild‐
157 cards. Non-terminal wildcards are almost always the result of a
158 failure to understand the wildcard matching algorithm (RFC
159 4592). Possible modes are warn (the default) and ignore.
160
161 zonename
162 This indicates the domain name of the zone being checked.
163
164 filename
165 This is the name of the zone file.
166
168 named-checkzone returns an exit status of 1 if errors were detected and
169 0 otherwise.
170
172 named(8), named-checkconf(8), named-compilezone(8), RFC 1035, BIND 9
173 Administrator Reference Manual.
174
176 Internet Systems Consortium
177
179 2022, Internet Systems Consortium
180
181
182
183
1849.16.30-RH NAMED-CHECKZONE(8)