---
name: "mydnscheck"
section: "8"
platform: "linux"
package: "mydns-mysql"
version: "1:1.1.0-7etch1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/mydnscheck"
---

# mydnscheck(8)

Check zone data for consistency and syntax.

## NAME

mydnscheck - Check zone data for consistency and syntax.

## SYNOPSIS

**mydnscheck** \[**-c**, **--consistency**\] \[**-C**, **--consistency-only**\] \[**-D**, **--database=***dbname*\] \[**-h**, **--host=***hostname*\] \[**-p**, **--password\[=***password*\]\] \[**-u**, **--user=***username*\] \[**-v**, **--verbose**\] \[**--help**\] \[**--version**\] \[**ZONE**...\]

## DESCRIPTION

**mydnscheck** scans the zones named on the command line for syntax.  If no zones are specified, all zones are scanned.  If the -c (or -C) option is specified, additional database consistency checks are performed. The program writes all results to stdout in a format that both humans and computers should be able to read.  Each problem found is listed on a separate line, with a TAB character in between each field. The fields listed are: **MESSAGE** .. **SOA ID** .. **RR ID** .. **NAME** .. **TTL** .. **TYPE** .. **DATA** If stderr is a terminal, a progress meter is displayed if scanning all zones.

## PROGRAM OPTIONS

- **-c**, **--consistency**

  Perform database consistency checks in addition to the usual syntax checks

- **-C**, **--consistency-only**

  Skip the syntax checks and only perform the database consistency checks.

- **-D**, **--database**=*dbname*

  Use the database called *dbname*.

- **-h**, **--host**=*hostname*

  Connect to database server at *hostname*.

- **-p**, **--pass**=*password*

  Supply *password* when connecting to the database server.  If the *password* argument is omitted, it will be prompted on the tty.

- **-u**, **--user**=*username*

  Use *username* when connecting to the database server.

- **-v**, **--verbose**

  Enable verbose output while running.

- **--help**

  Display program help and exit.

- **--version**

  Output version number and exit.

## AUTHOR

Don Moore \<bboy@bboy.net\>

## HOMEPAGE

http://mydns.bboy.net

## SEE ALSO

[**mydns**(8)](/mydns/8.md), [**mydns.conf**(5)](/mydns.conf/5.md), [**mydnsexport**(8)](/mydnsexport/8.md), [**mydnsimport**(8)](/mydnsimport/8.md)
