1NAMED-CHECKZONE(8)                  BIND 9                  NAMED-CHECKZONE(8)
2
3
4

NAME

6       named-checkzone - zone file validity checking or converting tool
7

SYNOPSIS

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
15       named-compilezone  [-d] [-j] [-q] [-v] [-c class] [-C mode] [-f format]
16       [-F format] [-J filename] [-i mode] [-k mode] [-m mode] [-n  mode]  [-l
17       ttl]  [-L serial] [-r mode] [-s style] [-t directory] [-T mode] [-w di‐
18       rectory] [-D] [-W mode] {-o filename} {zonename} {filename}
19

DESCRIPTION

21       named-checkzone checks the syntax and integrity of a zone file. It per‐
22       forms  the  same  checks  as named does when loading a zone. This makes
23       named-checkzone useful for checking zone files before configuring  them
24       into a name server.
25
26       named-compilezone  is  similar  to named-checkzone, but it always dumps
27       the zone contents to a specified file in a specified format.   It  also
28       applies stricter check levels by default, since the dump output is used
29       as an actual zone file loaded by named.  When manually specified other‐
30       wise, the check levels must at least be as strict as those specified in
31       the named configuration file.
32

OPTIONS

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

RETURN VALUES

183       named-checkzone returns an exit status of 1 if errors were detected and
184       0 otherwise.
185

SEE ALSO

187       named(8),  named-checkconf(8), RFC 1035, BIND 9 Administrator Reference
188       Manual.
189

AUTHOR

191       Internet Systems Consortium
192
194       2021, Internet Systems Consortium
195
196
197
198
1999.16.16-RH                                                  NAMED-CHECKZONE(8)
Impressum