Skip to main content
MediumDNSOWASP A08:2021CWE-345

How to fix: DNSKEY Record Missing

No DNSKEY records are present in the zone. DNSKEY records publish the public keys used to sign the zone and are required for DNSSEC validation to work.

Why it matters

Without DNSKEY records, no DNSSEC validation is possible for this zone. Resolvers cannot verify DNS responses, leaving the domain vulnerable to cache poisoning (Kaminsky-style) attacks.

DNSKEY records hold the public keys that correspond to the private keys used to sign DNS records (RRSIG). There are two types: KSK (Key Signing Key, flags 257) signs the DNSKEY RRset, and ZSK (Zone Signing Key, flags 256) signs all other RRsets. Both are needed for a fully signed zone.

How to fix it

  1. 1Enable DNSSEC signing on your authoritative DNS server.
  2. 2Generate KSK and ZSK key pairs and sign the zone.
  3. 3Submit the DS record (derived from the KSK) to your domain registrar.
  4. 4Verify: dig +dnssec DNSKEY example.com

Code examples

Check DNSKEY

bash
dig +short DNSKEY example.com
# Should return two records: KSK (flags 257) and ZSK (flags 256)

BIND: generate DNSSEC keys

bash
# Generate KSK
dnssec-keygen -a ECDSAP256SHA256 -f KSK -n ZONE example.com
# Generate ZSK
dnssec-keygen -a ECDSAP256SHA256 -n ZONE example.com

References

Detected automatically by VulnRadar. The check id is dns-dnskey-record-missing, stable across every scan so you can filter or diff on it.

See every dns check

Questions

How severe is DNSKEY Record Missing?
VulnRadar rates this medium severity in the dns category. The severity is fixed per check, not scored per site, so the same finding is the same severity on every scan.
Does VulnRadar check for this automatically?
Yes. It runs as part of every scan under the check id dns-dnskey-record-missing, which stays the same between runs so you can filter, diff, or gate CI on it.
Which standards does DNSKEY Record Missing map to?
It maps to CWE-345. In the OWASP Top 10 it falls under A08:2021.

Missing a check?

The detection set is open. If you know a misconfiguration this does not catch, propose it: the issue template asks for the threat model, how to detect it, the false-positive risk, and a test fixture, which is the same thing a maintainer would have to work out anyway.

Propose a checkHow a check is built

Scan your own site for dnskey record missing

VulnRadar runs this check and hundreds more against a URL in seconds. No agent to install, just paste a URL.

Or scan this site as a demoRead the docs

How to fix: DNSKEY Record Missing | VulnRadar