NAMED-CHECKZONE(8)
πΈ NAME πΈ
okay so welcome to the NAMED-CHECKZONE(8) page, bestie! named-checkzone is the zone file validity checking or converting tool. Iconic. It checks the syntax and integrity of a zone file, and it performs the same checks as named does when loading a zone. That makes it super useful for checking zone files before configuring them into a name server. slay. β¨
β¨ SYNOPSIS β¨
named-checkzone [-d] [-h] [-j] [-q] [-v] [-c class] [-f format] [-F
format] [-J filename] [-i mode] [-k mode] [-m mode] [-M mode] [-n mode]
[-l ttl] [-L serial] [-o filename] [-r mode] [-s style] [-S mode] [-t
directory] [-T mode] [-w directory] [-D] [-W mode] {zonename} {filename}
π DESCRIPTION π
named-checkzone checks the syntax and integrity of a zone file. It performs the same checks as named does when loading a zone, which is literally why it's so handy for checking zone files before you configure them into a name server. no cap. π«Ά
π OPTIONS π
-dβ enables debugging. detective mode, bestie. π-hβ prints the usage summary and exits. bye for now! π-qβ sets quiet mode, which only sets an exit code to indicate successful or failed completion. minimal words, maximum vibes. π€«-vβ prints the version of thenamed-checkzoneprogram and exits. flex those digits. π₯-jβ when loading a zone file, this tellsnamedto read the journal if it exists. the journal file name is assumed to be the zone file name with the string.jnlappended. cute little suffix behavior. π-Jfilename β when loading the zone file, this tellsnamedto read the journal from the given file, if it exists. this implies-j. okay, so it's-jwith extra specifics. π-cclass β specifies the class of the zone. if not specified,INis assumed. default behavior is givingIN, as always. π-imode β performs post-load zone integrity checks. possible modes arefull(the default),full-sibling,local,local-sibling, andnone.
Mode full checks that MX records refer to A or AAAA records (both in-zone and out-of-zone hostnames). Mode local only checks MX records which refer to in-zone hostnames.
Mode full checks that SRV records refer to A or AAAA records (both in-zone and out-of-zone hostnames). Mode local only checks SRV records which refer to in-zone hostnames.
Mode full checks that delegation NS records refer to A or AAAA records (both in-zone and out-of-zone hostnames). It also checks that glue address records in the zone match those advertised by the child. Mode local only checks NS records which refer to in-zone hostnames or verifies that some required glue exists, i.e., when the name server is in a child zone.
Modes full-sibling and local-sibling disable sibling glue checks, but are otherwise the same as full and local, respectively.
Mode none disables the checks. sometimes self-care is turning off the checks. π
-fformat β specifies the format of the zone file. possible formats aretext(the default),raw, andmap. text is the default, as the universe intended. π-Fformat β specifies the format of the output file specified. fornamed-checkzone, this does not have any effect unless it dumps the zone contents.
possible formats are text (the default), which is the standard textual representation of the zone, and map, raw, and raw=N, which store the zone in a binary format for rapid loading by named. raw=N specifies the format version of the raw zone file: if N is 0, the raw file can be read by any version of named; if N is 1, the file can only be read by release 9.9.0 or higher. the default is 1. numbers matter, bestie. π§
-kmode β performscheck-nameschecks with the specified failure mode. possible modes arefail,warn(the default), andignore. choose your drama level. π-lttl β sets a maximum permissible TTL for the input file. any record with a TTL higher than this value causes the zone to be rejected. this is similar to using themax-zone-ttloption innamed.conf. respect the limit or get rejected, iykyk. π«-Lserial β when compiling a zone torawormapformat, this sets the"source serial"value in the header to the specified serial number. this is expected to be used primarily for testing purposes. testing era. π§ͺ-mmode β specifies whether MX records should be checked to see if they are addresses. possible modes arefail,warn(the default), andignore. MX, are you an address or not? π-Mmode β checks whether a MX record refers to a CNAME. possible modes arefail,warn(the default), andignore. CNAME drama alert. π-nmode β specifies whether NS records should be checked to see if they are addresses. possible modes arefail,warn(the default), andignore. NS, same question, bestie. πΈ-ofilename β writes the zone output to filename. if filename is-, then the zone output is written to standard output. hello,-, you iconic little dash. π-rmode β checks for records that are treated as different by DNSSEC but are semantically equal in plain DNS. possible modes arefail,warn(the default), andignore. DNSSEC vs plain DNS, the eternal vibe check. π¦-sstyle β specifies the style of the dumped zone file. possible styles arefull(the default) andrelative. thefullformat is most suitable for processing automatically by a separate script. therelativeformat is more human-readable and is thus suitable for editing by hand. this does not have any effect unless it dumps the zone contents. it also does not have any meaning if the output format is nottext. so yes, context is everything. π-Smode β checks whether an SRV record refers to a CNAME. possible modes arefail,warn(the default), andignore. SRV said what it said. π-tdirectory β tellsnamedtochrootto directory, so thatincludedirectives in the configuration file are processed as if run by a similarly chrootednamed. chroot-chroot, bestie. π-Tmode β checks whether Sender Policy Framework (SPF) records exist and issues a warning if an SPF-formatted TXT record is not also present. possible modes arewarn(the default) andignore. SPF said don't forget the TXT. π«Ά-wdirectory β instructsnamedtochdirto directory, so that relative filenames in master file$INCLUDEdirectives work. this is similar to thedirectoryclause innamed.conf. relative paths found shaking. π-Dβ dumps the zone file in canonical format. canonical queen behavior. π-Wmode β specifies whether to check for non-terminal wildcards. non-terminal wildcards are almost always the result of a failure to understand the wildcard matching algorithm (RFC 4592). possible modes arewarn(the default) andignore. wildcard lore, no cap. πzonenameβ indicates the domain name of the zone being checked. like, the actual zone name. π·οΈfilenameβ this is the name of the zone file. the file itself. the main character. π
π«Ά RETURN VALUES π«Ά
named-checkzone returns an exit status of 1 if errors were detected and 0 otherwise. okay so simple: bad vibes 1, good vibes 0. β¨
π SEE ALSO π
named(8)named-checkconf(8)named-compilezone(8)RFC 1035BIND 9 Administrator Reference Manual
π AUTHOR π
Internet Systems Consortium. iconic organization, honestly. π
π COPYRIGHT π
2024, Internet Systems Consortium
π okay that's the whole page, bestie β this one's from BIND 9 source/version 9.16.50-RH, with the 2024 copyright date. mwah! π
π¦ where this page comes from
- centos-stream 9: bind-utils 32:9.16.50-13.el9 Β· MPLv2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms