xref: /netbsd-src/external/mpl/bind/dist/bin/dnssec/dnssec-verify.rst (revision 32d1c65c71fbdb65a012e8392a62a757dd6853e9)
1.. Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2..
3.. SPDX-License-Identifier: MPL-2.0
4..
5.. This Source Code Form is subject to the terms of the Mozilla Public
6.. License, v. 2.0.  If a copy of the MPL was not distributed with this
7.. file, you can obtain one at https://mozilla.org/MPL/2.0/.
8..
9.. See the COPYRIGHT file distributed with this work for additional
10.. information regarding copyright ownership.
11
12.. highlight: console
13
14.. iscman:: dnssec-verify
15.. program:: dnssec-verify
16.. _man_dnssec-verify:
17
18dnssec-verify - DNSSEC zone verification tool
19---------------------------------------------
20
21Synopsis
22~~~~~~~~
23
24:program:`dnssec-verify` [**-c** class] [**-E** engine] [**-I** input-format] [**-o** origin] [**-q**] [**-v** level] [**-V**] [**-x**] [**-z**] {zonefile}
25
26Description
27~~~~~~~~~~~
28
29:program:`dnssec-verify` verifies that a zone is fully signed for each
30algorithm found in the DNSKEY RRset for the zone, and that the
31NSEC/NSEC3 chains are complete.
32
33Options
34~~~~~~~
35
36.. option:: -c class
37
38   This option specifies the DNS class of the zone.
39
40.. option:: -E engine
41
42   This option specifies the cryptographic hardware to use, when applicable.
43
44   When BIND 9 is built with OpenSSL, this needs to be set to the OpenSSL
45   engine identifier that drives the cryptographic accelerator or
46   hardware service module (usually ``pkcs11``).
47
48.. option:: -I input-format
49
50   This option sets the format of the input zone file. Possible formats are ``text``
51   (the default) and ``raw``. This option is primarily intended to be used
52   for dynamic signed zones, so that the dumped zone file in a non-text
53   format containing updates can be verified independently.
54   This option is not useful for non-dynamic zones.
55
56.. option:: -o origin
57
58   This option indicates the zone origin. If not specified, the name of the zone file is
59   assumed to be the origin.
60
61.. option:: -v level
62
63   This option sets the debugging level.
64
65.. option:: -V
66
67   This option prints version information.
68
69.. option:: -q
70
71   This option sets quiet mode, which suppresses output.  Without this option, when :program:`dnssec-verify`
72   is run it prints to standard output the number of keys in use, the
73   algorithms used to verify the zone was signed correctly, and other status
74   information.  With this option, all non-error output is suppressed, and only the exit
75   code indicates success.
76
77.. option:: -x
78
79   This option verifies only that the DNSKEY RRset is signed with key-signing keys.
80   Without this flag, it is assumed that the DNSKEY RRset is signed
81   by all active keys. When this flag is set, it is not an error if
82   the DNSKEY RRset is not signed by zone-signing keys. This corresponds
83   to the :option:`-x option in dnssec-signzone <dnssec-signzone -x>`.
84
85.. option:: -z
86
87   This option indicates that the KSK flag on the keys should be ignored when determining whether the zone is
88   correctly signed. Without this flag, it is assumed that there is
89   a non-revoked, self-signed DNSKEY with the KSK flag set for each
90   algorithm, and that RRsets other than DNSKEY RRset are signed with
91   a different DNSKEY without the KSK flag set.
92
93   With this flag set, BIND 9 only requires that for each algorithm, there
94   be at least one non-revoked, self-signed DNSKEY, regardless of
95   the KSK flag state, and that other RRsets be signed by a
96   non-revoked key for the same algorithm that includes the self-signed
97   key; the same key may be used for both purposes. This corresponds to
98   the :option:`-z option in dnssec-signzone <dnssec-signzone -z>`.
99
100.. option:: zonefile
101
102   This option indicates the file containing the zone to be signed.
103
104See Also
105~~~~~~~~
106
107:iscman:`dnssec-signzone(8) <dnssec-signzone>`, BIND 9 Administrator Reference Manual, :rfc:`4033`.
108