Securing Domain Name System (DNS) infrastructure against cache poisoning, spoofing, and man-in-the-middle attacks relies on DNSSEC (DNS Security Extensions). DNSSEC provides cryptographic authenticity and integrity by validating digital signatures (RRSIG) across resource record sets through a hierarchical chain of trust originating at the Internet root zone.
However, when debugging broken website resolution caused by expired RRSIG signatures, missing Delegation Signer (DS) records, or misconfigured cryptographic keys, conventional tools like nslookup and standard dig queries are insufficient. The delv (DNSSEC Look-aside Validation) utility, developed by ISC (Internet Systems Consortium) as part of BIND 9 utilities, is a dedicated DNSSEC verification tool that models the complete cryptographic chain of trust and reports exact verification failures.
How delv Differs from dig
While dig +dnssec requests DNSSEC records from a resolver, it relies on the resolver to evaluate validity (indicated by the ad Authenticated Data flag). In contrast:
delvacts as an independent validating resolver engine directly on your local workstation.- It fetches DNSKEY, DS, and RRSIG records directly from authoritative nameservers.
- It validates the complete cryptographic signature hierarchy locally from the hardcoded IANA root trust anchor down to the target domain, independently verifying that no intermediary resolver tampered with records.
Installing delv on Linux
delv is included in the standard BIND client utilities package:
# Ubuntu, Debian, and Linux Mint
sudo apt update
sudo apt install bind9-dnsutils
# Fedora, RHEL, and Rocky Linux
sudo dnf install bind-utils
# Arch Linux
sudo pacman -S bind
Running a Standard DNSSEC Validation Query
To test and validate the cryptographic status of any domain:
delv cloudflare.com
If the domain’s DNSSEC configuration is completely valid, delv outputs the resolved IP address preceded by an explicit confirmation:
; fully validated
cloudflare.com. 300 IN A 104.16.132.229
cloudflare.com. 300 IN A 104.16.133.229
cloudflare.com. 300 IN RRSIG A 13 2 300 20261108000000 20261106000000 34505 cloudflare.com. ...
The ; fully validated header confirms that the entire cryptographic chain—from root to TLD to authoritative zone—passed verification.
Tracing the Hierarchical Chain of Trust
To inspect each link in the authentication chain (from the root . down to the zone key), use the +trace flag:
delv +trace icann.org
The output documents every validation step:
- Validates root zone
.trust anchor against built-in keys. - Validates the
org.top-level domain DS and DNSKEY records signed by the root. - Validates the
icann.org.DS record published in theorg.registry. - Validates the Zone Signing Key (ZSK) and Key Signing Key (KSK) of
icann.org.. - Validates the final record’s RRSIG signature.
Diagnosing Broken DNSSEC Signatures
When an administrator botches key rollover or allows a signature to expire, delv flags the exact failure mode:
# Example output when a domain has an expired or mismatched signature
;; resolution failed: failure
; unsigned answer
; validation failure: no valid signature found for RRset
This explicit feedback prevents network administrators from guessing whether downtime stems from authoritative server outages or cryptographic signature verification mismatches.
Essential delv Command Options Summary
| Command Syntax | Description |
|---|---|
delv <domain> |
Executes standard local DNSSEC validation query. |
delv +trace <domain> |
Traces the step-by-step cryptographic chain of trust. |
delv <domain> AAAA |
Validates IPv6 address records. |
delv @<resolver> <domain> |
Queries a specific upstream nameserver for validation. |
Utilizing delv provides system administrators with an indispensable diagnostic tool for verifying cryptographic integrity and debugging DNSSEC deployment issues in Linux environments.