NAMED-COMPILEZONE(8)
okay bestie, welcome to the NAMED-COMPILEZONE(8) manual page β yes, the one for named-compilezone. Itβs the zone-file validity checking and converting tool, and this is your group-chat cheat sheet with literally every flag still intact. π
πΈ NAME πΈ
named-compilezone β zone file validity checking or converting tool. Thatβs the whole vibe.
β¨ SYNOPSIS β¨
named-compilezone [-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] [-r mode] [-s style] [-S mode] [-t directory] [-T mode] [-w directory] [-D] [-W mode] {-o filename} {zonename} {filename}
π¦ DESCRIPTION π¦
named-compilezone checks the syntax and integrity of a zone file, then dumps the zone contents to a specified file in a specified format. It applies strict check levels by default, because the dump output is used as an actual zone file loaded by named.
When you manually specify otherwise, the check levels must at least be as strict as those specified in the named configuration file. No cap, this thing is strict on purpose.
π OPTIONS π
-dβ enables debugging.-hβ prints the usage summary and exits.-qβ sets quiet mode, which only sets an exit code to indicate successful or failed completion.-vβ prints the version of thenamed-checkzoneprogram and exits.-jβ when loading a zone file, tellsnamedto read the journal if it exists. The journal file name is assumed to be the zone file name with the string.jnlappended.-J filenameβ when loading the zone file, tellsnamedto read the journal from the given file, if it exists. This implies-j.-c classβ specifies the class of the zone. If not specified,INis assumed.-i modeβ performs post-load zone integrity checks. Possible modes arefull(the default),full-sibling,local,local-sibling, andnone.- Mode
fullchecks thatMXrecords refer toAorAAAArecords (both in-zone and out-of-zone hostnames). Modelocalonly checksMXrecords which refer to in-zone hostnames. - Mode
fullchecks thatSRVrecords refer toAorAAAArecords (both in-zone and out-of-zone hostnames). Modelocalonly checksSRVrecords which refer to in-zone hostnames. - Mode
fullchecks that delegationNSrecords refer toAorAAAArecords (both in-zone and out-of-zone hostnames). It also checks that glue address records in the zone match those advertised by the child. Modelocalonly checksNSrecords 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-siblingandlocal-siblingdisable sibling glue checks, but are otherwise the same asfullandlocal, respectively. - Mode
nonedisables the checks.
- Mode
-f formatβ specifies the format of the zone file. Possible formats aretext(the default),raw, andmap.-F formatβ specifies the format of the output file specified. Fornamed-checkzone, this does not have any effect unless it dumps the zone contents. Possible formats aretext(the default), which is the standard textual representation of the zone, andmap,raw, andraw=N, which store the zone in a binary format for rapid loading bynamed.raw=Nspecifies the format version of the raw zone file: ifNis0, the raw file can be read by any version ofnamed; ifNis1, the file can only be read by release9.9.0or higher. The default is1.-k modeβ performs check-names checks with the specified failure mode. Possible modes arefail(the default),warn, andignore.-l ttlβ 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.-L serialβ when compiling a zone torawormapformat, sets the "source serial" value in the header to the specified serial number. This is expected to be used primarily for testing purposes.-m modeβ specifies whetherMXrecords should be checked to see if they are addresses. Possible modes arefail,warn(the default), andignore.-M modeβ checks whether aMXrecord refers to aCNAME. Possible modes arefail,warn(the default), andignore.-n modeβ specifies whetherNSrecords should be checked to see if they are addresses. Possible modes arefail(the default),warn, andignore.-o filenameβ writes the zone output tofilename. Iffilenameis-, then the zone output is written to standard output. This is mandatory fornamed-compilezone.-r modeβ checks for records that are treated as different by DNSSEC but are semantically equal in plain DNS. Possible modes arefail,warn(the default), andignore.-s styleβ 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.-S modeβ checks whether anSRVrecord refers to aCNAME. Possible modes arefail,warn(the default), andignore.-t directoryβ tellsnamedto chroot todirectory, so that include directives in the configuration file are processed as if run by a similarly chrootednamed.-T modeβ 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.-w directoryβ instructsnamedto chdir todirectory, so that relative filenames in master file$INCLUDEdirectives work. This is similar to thedirectoryclause innamed.conf.-Dβ dumps the zone file in canonical format. This is always enabled fornamed-compilezone.-W modeβ 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.zonenameβ indicates the domain name of the zone being checked.filenameβ is the name of the zone file.
π₯ RETURN VALUES π₯
named-compilezone returns an exit status of 1 if errors were detected and 0 otherwise. So: 1 = errors, 0 = all good.
π SEE ALSO π
named(8)named-checkconf(8)named-checkzone(8)RFC 1035BIND 9 Administrator Reference Manual
π§ AUTHOR π§
Internet Systems Consortium
π COPYRIGHT π
2024, Internet Systems Consortium
π
okay thatβs the whole page, bestie β named-compilezone(8) from BIND 9.16.50-RH, dated 2024, copyright Internet Systems Consortium. go check those zones, periodt. π
π¦ 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