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