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