< >   << Up >>         TopContentsIndex ?

5.1 mydnscheck

The `mydnscheck' program scans one more more zones and reports on syntax and consistency problems in the zone data. When used without any zone arguments, `mydnscheck' checks all zones by default.

`mydnscheck' outputs lines of tab-delimited data. This is so that it will hopefully be easier for experienced users to write scripts to automate fixups, in the event that they have created a new database that has many problems. Each line contains seven fields:

  1. A brief, human-readable string describing the error found.

  2. The zone ID, or `-' if no zone ID is applicable.

  3. The resource record ID, or `-' if no resource record ID is applicable.

  4. The name, or `-' if no name is applicable.

  5. The ttl (time-to-live) value, or `-' if no ttl is applicable.

  6. The resource record type, or `-' if no type is applicable.

  7. The data value, or `-' if no data value is applicable.

The most useful way for an administrator to use `mydnscheck' is without any arguments (indicating a scan of all zones) and with the database consistency check option enabled. This will perform a thorough analysis of your database. To perform this type of check, you would run:

# mydnscheck --consistency

You can also run `mydnscheck' on a single zone only. This might be useful if invoked from a CGI script, to offer customers or clients the ability to check their zone:

$ mydnscheck -uUSER -pPASS example.com

For an explanation of all available options, please see the `mydnscheck'(8) man page.