What is a DNSKEY record?
A DNSKEY record holds a public key of a DNSSEC-signed zone. Resolvers use it to verify the signatures on every answer from the zone.
Zones usually publish two kinds: a key-signing key (flag 257), whose fingerprint is the DS record at the parent zone, and a zone-signing key (flag 256) that signs the records.
How to read a DNSKEY record
In a zone file, the record looks like this:
example.com. 3600 IN DNSKEY 257 3 13 mdsswUyr3DPW132mOi8V9xESWE8jTo0d...
- Flags: 257 for a key-signing key, 256 for a zone-signing key.
- Protocol: always 3.
- Algorithm number: 13 is ECDSA P-256, 8 is RSA/SHA-256.
- The public key, base64-encoded.
From the command line
Look up DNSKEY records without this site.
On macOS and Linux, use dig:
dig example.com DNSKEY +short
On Windows, use nslookup:
nslookup -type=DNSKEY example.com
To skip caches, ask one of the domain’s nameservers directly: dig @ns1.example.net example.com DNSKEY. The “Its own nameservers” option on the result page does the same.
Questions and answers
The lookup shows no DNSKEY records. Is something broken?
No. It means the zone is not signed with DNSSEC, which is still common. The domain works normally without it.
How do I check that DNSSEC is switched on at the parent?
Open the Trace tab. It shows whether the parent zone publishes a DS record for the domain.