dnsdbck - check and, if possible, repair the DNS database


dnsdbck [options] [zone] [zone...]


Dnsdbck checks the DNS database for consistency and repairs it, when possible. For each record in a specified set of zones, it checks whether a corresponding reverse exists. If it does not, dnsdbck tries to create it, if the corresponding "in-addr.arpa" zone is present in the database or if its IP address falls within CIDRs set using the --create-reverse-soa option (see below). In the latter case, corresponding SOA and NS records will be created.


--all, -a

Process all zones. When this option is used, any zone arguments are ignored.


Create SOA and NS records for reverse zones matching given CIDRs.


Ignore changes to the listed zones.

--ignore-zone-from= FILE

Read the list of zones to ignore from FILE . The file format is: one zone per line, UNIX comments and empty lines are ignored.


Ignore changes to the listed hostnames.

--ignore-host-from= FILE

Read the list of hostnames to ignore from FILE . The file format is: one host per line, UNIX comments and empty lines are ignored.

--my-cnf= FILE , -c FILE

Use FILE as MySQL options file. Default is "$HOME/.my.cnf".

--author= NAME , -a NAME

Use NAME for the author column. Default is your login name.

--user-name= NAME , -u NAME

Switch to the privileges of user NAME after startup.

--outfile= FILE , -o FILE

Write SQL instructions to repair the database to FILE . Implies --dry-run.

--log-file= FILE , -l FILE

Write diagnostic output to FILE , instead of standard error.

--dry-run, -n

Do not try to repair the database.

--debug[=spec[,spec...]], -d[spec[,spec...]]

Set debugging level. spec is either category or category=level, category is a debugging category name and level is a decimal verbosity level. Valid categories are: "GENERAL", "SQL", "DNS" and "MISSING" (all case-insensitive). If level is not supplied, 1 is used instead.

--help, -h

Show a terse help summary and exit.


Prints the manual page and exits.


The program reads its configuration from one of the following locations:
File name given by "DNSDBCK_CONF" environment variable (if set)
b. ~

First of these files that exists is read. It is an error, if the $DNSDBCK_CONF variable is set, but points to a file that does not exist. It is not an error if $DNSDBCK_CONF is not set and neither of the two remaining files exist. It is, however, an error if any of the file exists, but is not readable.

The configuration file uses usual UNIX configuration format. Empty lines and UNIX comments are ignored. Each non-empty line is either an option name, or option assignment, i.e. opt=val, with any amount of optional whitespace around the equals sign. Valid option names are the same as long command line options, but without the leading --. For example:

ignore-zones-from = /etc/dns/zone.ignore
ignore-hosts-from = /etc/dns/host.ignore
my-cnf = /etc/dns/my.cnf



The name of the configuration file to read, instead of the default /etc/dnsdbck.conf.


Sergey Poznyakoff <gray@gnu.org>

Manpage server at man.gnu.org.ua.

Powered by mansrv 1.1