carta
kzonecheck(1)

kzonecheck1

Knot dns zone check tool

Usage

kzonecheck [options] filename

Overview

The utility checks zone file syntax and runs semantic checks on the zone content. The executed checks are the same as the checks run by the Knot DNS server.

Please, refer to the semantic-checks configuration option in knot.conf(5) for the full list of available semantic checks.

Parameters

filename

Path to the zone file to be checked. For reading from stdin use /dev/stdin or just -.

Options

-o, --origin origin

Zone origin. If not specified, the SOA record owner in the zone file is used and the zone file name (without possible .zone suffix) is considered as the initial zone origin in case the owner isn't FQDN.

-d, --dnssec on|off

Also check DNSSEC-related records. The default is to decide based on the existence of a RRSIG for SOA.

-z, --zonemd

Also check the zone hash against a ZONEMD record, which is required to exist.

-t, --time time

Current time specification. Use UNIX timestamp, YYYYMMDDHHmmSS format, or [+/-]time[unit] format, where unit can be Y, M, D, h, m, or s. Default is current UNIX timestamp.

-j, --jobs jobs

The number of threads used for DNSSEC validation. Default is all CPU threads available.

-p, --print

Print the zone on stdout.

-v, --verbose

Enable debug output.

-h, --help

Print the program help.

-V, --version

Print the program version. The option -VV makes the program print the compile time configuration summary.

Exit status

Exit status of 0 means successful operation. Any other exit status indicates an error.

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie)
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 9 (Stretch)

--dnssec since Debian 11 (Bullseye); --jobs since Arch Linux 2026-11-01; --print since Debian 13 (Trixie); --time since Debian 10 (Buster); --zonemd since Debian 13 (Trixie); -d since Debian 11 (Bullseye); -j since Arch Linux 2026-11-01; -p since Debian 13 (Trixie); -t since Debian 10 (Buster); -z since Debian 13 (Trixie).

Author

CZ.NIC, z.s.p.o. and contributors <https://www.knot-dns.cz/>

From knot 3.6.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.