Understanding DNSKEY records and DNSSEC public keys
A DNSKEY record is a DNSSEC record that stores public keys used to verify DNS record signatures. DNSKEY records enable DNSSEC validation by providing public keys that DNS resolvers use to verify RRSIG (Resource Record Signature) signatures.
DNSKEY records include: public key data (RSA, ECDSA, or EdDSA keys), key flags (Key Signing Key or Zone Signing Key), protocol (always 3 for DNSSEC), and algorithm (RSA-SHA256, ECDSA-P256, etc.). DNSKEY records are essential for DNSSEC - without DNSKEY records, DNSSEC validation cannot occur.
Learn more about DNSSEC and RRSIG records.
DNSKEY records publish public keys in DNS, allowing DNS resolvers to retrieve and use public keys for signature verification.
DNS resolvers use DNSKEY public keys to verify RRSIG signatures, ensuring DNS records are authentic and untampered.
DNSKEY records enable DNSSEC validation by providing the cryptographic keys needed for signature verification.
DNSKEY records are linked via DS records to create a chain of trust from root DNS servers to authoritative name servers.
DNSKEY records enable key management, including key rotation and key updates for DNSSEC security.
DNSKEY records include different key types:
KSK (Key Signing Key) is used to sign other DNSKEY records. KSK is published in parent zone DS records to create chain of trust.
ZSK (Zone Signing Key) is used to sign DNS records (A, MX, etc.) in the zone. ZSK is used more frequently than KSK.
Key flags in DNSKEY records indicate key type: flag 257 = KSK, flag 256 = ZSK.
KSK and ZSK can be rotated independently, with KSK rotated less frequently than ZSK.
KSK requires higher security as it's used to sign other keys, while ZSK is used for regular DNS record signing.
DNSKEY records follow this format: flags protocol algorithm public-key
example.com. DNSKEY 257 3 13 base64-public-key-data...
Common DNSSEC algorithms: RSA-SHA256 (algorithm 8), ECDSA-P256 (algorithm 13), Ed25519 (algorithm 15).
Key size varies by algorithm: RSA keys are larger (2048+ bits), ECDSA keys are smaller (256 bits).
Use DNS lookup tools to query DNSKEY records and retrieve public key information for DNSSEC zones.
Use command-line tools (dig) to query DNSKEY records: dig DNSKEY example.com
Verify DNSSEC validation works correctly using DNSKEY records to verify RRSIG signatures.
Verify DNSKEY records are published correctly, keys are valid, and both KSK and ZSK are present.
Verify DNSKEY records are linked via DS records to create proper chain of trust.