{"id":3553,"date":"2022-12-20T17:08:59","date_gmt":"2022-12-20T20:08:59","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/namedcheckzone-man8-2\/"},"modified":"2022-12-20T17:08:59","modified_gmt":"2022-12-20T20:08:59","slug":"namedcheckzone-man8-2","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/namedcheckzone-man8-2\/","title":{"rendered":"NAMED&minus;CHECKZONE (man8)"},"content":{"rendered":"<h1 align=\"center\">NAMED\u2212CHECKZONE<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#RETURN VALUES\">RETURN VALUES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">named-checkzone, named-compilezone \u2212 zone file validity checking or converting tool<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"89%\">\n<p style=\"margin-top: 1em\"><b>named\u2212checkzone<\/b> [<b>\u2212d<\/b>] [<b>\u2212h<\/b>] [<b>\u2212j<\/b>] [<b>\u2212q<\/b>] [<b>\u2212v<\/b>] [<b>\u2212c\u00a0<\/b><i>class<\/i>] [<b>\u2212f\u00a0<\/b><i>format<\/i>] [<b>\u2212F\u00a0<\/b><i>format<\/i>] [<b>\u2212J\u00a0<\/b><i>filename<\/i>] [<b>\u2212i\u00a0<\/b><i>mode<\/i>] [<b>\u2212k\u00a0<\/b><i>mode<\/i>] [<b>\u2212m\u00a0<\/b><i>mode<\/i>] [<b>\u2212M\u00a0<\/b><i>mode<\/i>] [<b>\u2212n\u00a0<\/b><i>mode<\/i>] [<b>\u2212l\u00a0<\/b><i>ttl<\/i>] [<b>\u2212L\u00a0<\/b><i>serial<\/i>] [<b>\u2212o\u00a0<\/b><i>filename<\/i>] [<b>\u2212r\u00a0<\/b><i>mode<\/i>] [<b>\u2212s\u00a0<\/b><i>style<\/i>] [<b>\u2212S\u00a0<\/b><i>mode<\/i>] [<b>\u2212t\u00a0<\/b><i>directory<\/i>] [<b>\u2212T\u00a0<\/b><i>mode<\/i>] [<b>\u2212w\u00a0<\/b><i>directory<\/i>] [<b>\u2212D<\/b>] [<b>\u2212W\u00a0<\/b><i>mode<\/i>] {zonename} {filename}<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"89%\">\n<p style=\"margin-top: 1em\"><b>named\u2212compilezone<\/b> [<b>\u2212d<\/b>] [<b>\u2212j<\/b>] [<b>\u2212q<\/b>] [<b>\u2212v<\/b>] [<b>\u2212c\u00a0<\/b><i>class<\/i>] [<b>\u2212C\u00a0<\/b><i>mode<\/i>] [<b>\u2212f\u00a0<\/b><i>format<\/i>] [<b>\u2212F\u00a0<\/b><i>format<\/i>] [<b>\u2212J\u00a0<\/b><i>filename<\/i>] [<b>\u2212i\u00a0<\/b><i>mode<\/i>] [<b>\u2212k\u00a0<\/b><i>mode<\/i>] [<b>\u2212m\u00a0<\/b><i>mode<\/i>] [<b>\u2212n\u00a0<\/b><i>mode<\/i>] [<b>\u2212l\u00a0<\/b><i>ttl<\/i>] [<b>\u2212L\u00a0<\/b><i>serial<\/i>] [<b>\u2212r\u00a0<\/b><i>mode<\/i>] [<b>\u2212s\u00a0<\/b><i>style<\/i>] [<b>\u2212t\u00a0<\/b><i>directory<\/i>] [<b>\u2212T\u00a0<\/b><i>mode<\/i>] [<b>\u2212w\u00a0<\/b><i>directory<\/i>] [<b>\u2212D<\/b>] [<b>\u2212W\u00a0<\/b><i>mode<\/i>] {<b>\u2212o\u00a0<\/b><i>filename<\/i>} {zonename} {filename}<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>named\u2212checkzone<\/b> checks the syntax and integrity of a zone file. It performs the same checks as <b>named<\/b> does when loading a zone. This makes <b>named\u2212checkzone<\/b> useful for checking zone files before configuring them into a name server.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>named\u2212compilezone<\/b> is similar to <b>named\u2212checkzone<\/b>, but it always dumps the zone contents to a specified file in a specified format. Additionally, it applies stricter check levels by default, since the dump output will be used as an actual zone file loaded by <b>named<\/b>. When manually specified otherwise, the check levels must at least be as strict as those specified in the <b>named<\/b> configuration file.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212d<\/p>\n<p style=\"margin-left:17%;\">Enable debugging.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212h<\/p>\n<p style=\"margin-left:17%;\">Print the usage summary and exit.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212q<\/p>\n<p style=\"margin-left:17%;\">Quiet mode \u2212 exit code only.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212v<\/p>\n<p style=\"margin-left:17%;\">Print the version of the <b>named\u2212checkzone<\/b> program and exit.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212j<\/p>\n<p style=\"margin-left:17%;\">When loading a zone file, read the journal if it exists. The journal file name is assumed to be the zone file name appended with the string .jnl.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212J <i>filename<\/i><\/p>\n<p style=\"margin-left:17%;\">When loading the zone file read the journal from the given file, if it exists. (Implies \u2212j.)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212c <i>class<\/i><\/p>\n<p style=\"margin-left:17%;\">Specify the class of the zone. If not specified, &#8220;IN&#8221; is assumed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212i <i>mode<\/i><\/p>\n<p style=\"margin-left:17%;\">Perform post\u2212load zone integrity checks. Possible modes are <b>&#8220;full&#8221;<\/b> (default), <b>&#8220;full\u2212sibling&#8221;<\/b>, <b>&#8220;local&#8221;<\/b>, <b>&#8220;local\u2212sibling&#8221;<\/b> and <b>&#8220;none&#8221;<\/b>.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Mode <b>&#8220;full&#8221;<\/b> checks that MX records refer to A or AAAA record (both in\u2212zone and out\u2212of\u2212zone hostnames). Mode <b>&#8220;local&#8221;<\/b> only checks MX records which refer to in\u2212zone hostnames.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Mode <b>&#8220;full&#8221;<\/b> checks that SRV records refer to A or AAAA record (both in\u2212zone and out\u2212of\u2212zone hostnames). Mode <b>&#8220;local&#8221;<\/b> only checks SRV records which refer to in\u2212zone hostnames.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Mode <b>&#8220;full&#8221;<\/b> checks that delegation NS records refer to A or AAAA record (both in\u2212zone and out\u2212of\u2212zone hostnames). It also checks that glue address records in the zone match those advertised by the child. Mode <b>&#8220;local&#8221;<\/b> only checks NS records which refer to in\u2212zone hostnames or that some required glue exists, that is when the nameserver is in a child zone.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Mode <b>&#8220;full\u2212sibling&#8221;<\/b> and <b>&#8220;local\u2212sibling&#8221;<\/b> disable sibling glue checks but are otherwise the same as <b>&#8220;full&#8221;<\/b> and <b>&#8220;local&#8221;<\/b> respectively.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Mode <b>&#8220;none&#8221;<\/b> disables the checks.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212f <i>format<\/i><\/p>\n<p style=\"margin-left:17%;\">Specify the format of the zone file. Possible formats are <b>&#8220;text&#8221;<\/b> (default), <b>&#8220;raw&#8221;<\/b>, and <b>&#8220;map&#8221;<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212F <i>format<\/i><\/p>\n<p style=\"margin-left:17%;\">Specify the format of the output file specified. For <b>named\u2212checkzone<\/b>, this does not cause any effects unless it dumps the zone contents.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Possible formats are <b>&#8220;text&#8221;<\/b> (default), which is the standard textual representation of the zone, and <b>&#8220;map&#8221;<\/b>, <b>&#8220;raw&#8221;<\/b>, and <b>&#8220;raw=N&#8221;<\/b>, which store the zone in a binary format for rapid loading by <b>named<\/b>. <b>&#8220;raw=N&#8221;<\/b> specifies the format version of the raw zone file: if N is 0, the raw file can be read by any version of <b>named<\/b>; if N is 1, the file can be read by release 9.9.0 or higher; the default is 1.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212k <i>mode<\/i><\/p>\n<p style=\"margin-left:17%;\">Perform <b>&#8220;check\u2212names&#8221;<\/b> checks with the specified failure mode. Possible modes are <b>&#8220;fail&#8221;<\/b> (default for <b>named\u2212compilezone<\/b>), <b>&#8220;warn&#8221;<\/b> (default for <b>named\u2212checkzone<\/b>) and <b>&#8220;ignore&#8221;<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212l <i>ttl<\/i><\/p>\n<p style=\"margin-left:17%;\">Sets a maximum permissible TTL for the input file. Any record with a TTL higher than this value will cause the zone to be rejected. This is similar to using the <b>max\u2212zone\u2212ttl<\/b> option in named.conf.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212L <i>serial<\/i><\/p>\n<p style=\"margin-left:17%;\">When compiling a zone to &#8220;raw&#8221; or &#8220;map&#8221; format, set the &#8220;source serial&#8221; value in the header to the specified serial number. (This is expected to be used primarily for testing purposes.)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212m <i>mode<\/i><\/p>\n<p style=\"margin-left:17%;\">Specify whether MX records should be checked to see if they are addresses. Possible modes are <b>&#8220;fail&#8221;<\/b>, <b>&#8220;warn&#8221;<\/b> (default) and <b>&#8220;ignore&#8221;<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212M <i>mode<\/i><\/p>\n<p style=\"margin-left:17%;\">Check if a MX record refers to a CNAME. Possible modes are <b>&#8220;fail&#8221;<\/b>, <b>&#8220;warn&#8221;<\/b> (default) and <b>&#8220;ignore&#8221;<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212n <i>mode<\/i><\/p>\n<p style=\"margin-left:17%;\">Specify whether NS records should be checked to see if they are addresses. Possible modes are <b>&#8220;fail&#8221;<\/b> (default for <b>named\u2212compilezone<\/b>), <b>&#8220;warn&#8221;<\/b> (default for <b>named\u2212checkzone<\/b>) and <b>&#8220;ignore&#8221;<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212o <i>filename<\/i><\/p>\n<p style=\"margin-left:17%;\">Write zone output to filename. If filename is \u2212 then write to standard out. This is mandatory for <b>named\u2212compilezone<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212r <i>mode<\/i><\/p>\n<p style=\"margin-left:17%;\">Check for records that are treated as different by DNSSEC but are semantically equal in plain DNS. Possible modes are <b>&#8220;fail&#8221;<\/b>, <b>&#8220;warn&#8221;<\/b> (default) and <b>&#8220;ignore&#8221;<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212s <i>style<\/i><\/p>\n<p style=\"margin-left:17%;\">Specify the style of the dumped zone file. Possible styles are <b>&#8220;full&#8221;<\/b> (default) and <b>&#8220;relative&#8221;<\/b>. The full format is most suitable for processing automatically by a separate script. On the other hand, the relative format is more human\u2212readable and is thus suitable for editing by hand. For <b>named\u2212checkzone<\/b> this does not cause any effects unless it dumps the zone contents. It also does not have any meaning if the output format is not text.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212S <i>mode<\/i><\/p>\n<p style=\"margin-left:17%;\">Check if a SRV record refers to a CNAME. Possible modes are <b>&#8220;fail&#8221;<\/b>, <b>&#8220;warn&#8221;<\/b> (default) and <b>&#8220;ignore&#8221;<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212t <i>directory<\/i><\/p>\n<p style=\"margin-left:17%;\">Chroot to directory so that include directives in the configuration file are processed as if run by a similarly chrooted <b>named<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212T <i>mode<\/i><\/p>\n<p style=\"margin-left:17%;\">Check if Sender Policy Framework (SPF) records exist and issues a warning if an SPF\u2212formatted TXT record is not also present. Possible modes are <b>&#8220;warn&#8221;<\/b> (default), <b>&#8220;ignore&#8221;<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212w <i>directory<\/i><\/p>\n<p style=\"margin-left:17%;\">chdir to directory so that relative filenames in master file $INCLUDE directives work. This is similar to the directory clause in named.conf.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212D<\/p>\n<p style=\"margin-left:17%;\">Dump zone file in canonical format. This is always enabled for <b>named\u2212compilezone<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212W <i>mode<\/i><\/p>\n<p style=\"margin-left:17%;\">Specify whether to check for non\u2212terminal wildcards. Non\u2212terminal wildcards are almost always the result of a failure to understand the wildcard matching algorithm (RFC 1034). Possible modes are <b>&#8220;warn&#8221;<\/b> (default) and <b>&#8220;ignore&#8221;<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">zonename<\/p>\n<p style=\"margin-left:17%;\">The domain name of the zone being checked.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">filename<\/p>\n<p style=\"margin-left:17%;\">The name of the zone file.<\/p>\n<h2>RETURN VALUES <a name=\"RETURN VALUES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>named\u2212checkzone<\/b> returns an exit status of 1 if errors were detected and 0 otherwise.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>named<\/b>(8), <b>named-checkconf<\/b>(8), RFC 1035, BIND 9 Administrator Reference Manual.<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Internet Systems Consortium, Inc.<\/b><\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright \u00a9 2000-2002, 2004-2007, 2009-2016, 2018-2021 Internet Systems Consortium, Inc. (&#8220;ISC&#8221;)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  named-checkzone, named-compilezone \u2212 zone file validity checking or converting tool <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,673],"class_list":["post-3553","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-named-compilezone"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3553"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3553\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}