NAME

named-checkzone, named-compilezone - zone file validity checking or converting tool

SYNOPSIS

nnaammeedd--cchheecckkzzoonnee [--dd] [--hh] [--jj] [--qq] [--vv] [--cc _c_l_a_s_s] [--ff _f_o_r_m_a_t] [--FF _f_o_r_m_a_t] [--ii _m_o_d_e] [--kk _m_o_d_e] [--mm _m_o_d_e] [--MM _m_o_d_e] [--nn _m_o_d_e] [--oo _f_i_l_e_n_a_m_e] [--ss _s_t_y_l_e] [--SS _m_o_d_e] [--tt _d_i_r_e_c_t_o_r_y] [--ww _d_i_r_e_c_t_o_r_y] [--DD] [--WW _m_o_d_e] {zonename} {filename} nnaammeedd--ccoommppiilleezzoonnee [--dd] [--jj] [--qq] [--vv] [--cc _c_l_a_s_s] [--CC _m_o_d_e] [--ff _f_o_r_m_a_t] [--FF _f_o_r_m_a_t] [--ii _m_o_d_e] [--kk _m_o_d_e] [--mm _m_o_d_e] [--nn _m_o_d_e] [--oo _f_i_l_e_n_a_m_e] [--ss _s_t_y_l_e] [--tt _d_i_r_e_c_t_o_r_y] [--ww _d_i_r_e_c_t_o_r_y] [--DD] [--WW _m_o_d_e] {zonename} {filename}

DESCRIPTION

nnaammeedd--cchheecckkzzoonnee checks the syntax and integrity of a zone file. It performs the same checks as nnaammeedd does when loading a zone. This makes nnaammeedd--cchheecckkzzoonnee useful for checking zone files before configuring them into a name server.

nnaammeedd--ccoommppiilleezzoonnee is similar to nnaammeedd--cchheecckkzzoonnee, 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 nnaammeedd. When manually specified otherwise, the check levels must at least be as strict as those specified in the nnaammeedd configuration file.

OPTIONS

-d Enable debugging.

-h Print the usage summary and exit.

-q Quiet mode - exit code only.

-v Print the version of the nnaammeedd--cchheecckkzzoonnee program and exit.

-j When loading the zone file read the journal if it exists.

-c _c_l_a_s_s Specify the class of the zone. If not specified, "IN" is assumed.

-i _m_o_d_e Perform post-load zone integrity checks. Possible modes are ""ffuullll"" (default), ""ffuullll--ssiibblliinngg"", ""llooccaall"", ""llooccaall--ssiibblliinngg"" and ""nnoonnee"".

Mode ""ffuullll"" checks that MX records refer to A or AAAA record (both in-zone and out-of-zone hostnames). Mode ""llooccaall"" only checks MX records which refer to in-zone hostnames.

Mode ""ffuullll"" checks that SRV records refer to A or AAAA record (both in-zone and out-of-zone hostnames). Mode ""llooccaall"" only checks SRV records which refer to in-zone hostnames.

Mode ""ffuullll"" checks that delegation NS records refer to A or AAAA record (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 ""llooccaall"" only checks NS records which refer to in-zone hostnames or that some required glue exists, that is when the nameserver is in a child zone.

Mode ""ffuullll--ssiibblliinngg"" and ""llooccaall--ssiibblliinngg"" disable sibling glue checks but are otherwise the same as ""ffuullll"" and ""llooccaall"" respectively.

Mode ""nnoonnee"" disables the checks.

-f _f_o_r_m_a_t Specify the format of the zone file. Possible formats are ""tteexxtt"" (default) and ""rraaww"".

-F _f_o_r_m_a_t Specify the format of the output file specified. Possible formats are ""tteexxtt"" (default) and ""rraaww"". For nnaammeedd--cchheecckkzzoonnee, this does not cause any effects unless it dumps the zone contents.

-k _m_o_d_e Perform ""cchheecckk--nnaammeess"" checks with the specified failure mode. Possible modes are ""ffaaiill"" (default for nnaammeedd--ccoommppiilleezzoonnee), ""wwaarrnn"" (default for nnaammeedd--cchheecckkzzoonnee) and ""iiggnnoorree"".

-m _m_o_d_e Specify whether MX records should be checked to see if they are addresses. Possible modes are ""ffaaiill"", ""wwaarrnn"" (default) and ""iiggnnoorree"".

-M _m_o_d_e Check if a MX record refers to a CNAME. Possible modes are ""ffaaiill"", ""wwaarrnn"" (default) and ""iiggnnoorree"".

-n _m_o_d_e Specify whether NS records should be checked to see if they are addresses. Possible modes are ""ffaaiill"" (default for nnaammeedd--ccoommppiilleezzoonnee), ""wwaarrnn"" (default for nnaammeedd--cchheecckkzzoonnee) and ""iiggnnoorree"".

-o _f_i_l_e_n_a_m_e Write zone output to _f_i_l_e_n_a_m_e. If _f_i_l_e_n_a_m_e is _- then write to standard out. This is mandatory for nnaammeedd--ccoommppiilleezzoonnee.

-s _s_t_y_l_e Specify the style of the dumped zone file. Possible styles are ""ffuullll"" (default) and ""rreellaattiivvee"". The full format is most suitable for processing automatically by a separate script. On the other hand, the relative format is more human-readable and is thus suitable for editing by hand. For nnaammeedd--cchheecckkzzoonnee 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.

-S _m_o_d_e Check if a SRV record refers to a CNAME. Possible modes are ""ffaaiill"", ""wwaarrnn"" (default) and ""iiggnnoorree"".

-t _d_i_r_e_c_t_o_r_y Chroot to _d_i_r_e_c_t_o_r_y so that include directives in the configuration file are processed as if run by a similarly chrooted named.

-w _d_i_r_e_c_t_o_r_y chdir to _d_i_r_e_c_t_o_r_y so that relative filenames in master file $INCLUDE directives work. This is similar to the directory clause in _n_a_m_e_d_._c_o_n_f.

-D Dump zone file in canonical format. This is always enabled for nnaammeedd--ccoommppiilleezzoonnee.

-W _m_o_d_e Specify 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 1034). Possible modes are ""wwaarrnn"" (default) and ""iiggnnoorree"".

zonename The domain name of the zone being checked.

filename The name of the zone file.

RETURN VALUES

nnaammeedd--cchheecckkzzoonnee returns an exit status of 1 if errors were detected and 0 otherwise.

SEE ALSO

nnaammeedd(8), nnaammeedd--cchheecckkccoonnff(8), RFC 1035, BIND 9 Administrator Reference Manual.

AUTHOR

Internet Systems Consortium

Copyright © 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC")
Copyright © 2000-2002 Internet Software Consortium.