DNSSEC: check your chain of trust with dig
DNSSEC (RFC 4033, 4034, 4035) signs DNS answers so that resolvers can detect forgery. It works through a chain: the root signs the TLD, the TLD publishes your DS record, and the DS points to your zone's DNSKEY. If any li
DNSSEC (RFC 4033, 4034, 4035) signs DNS answers so that resolvers can detect forgery. It works through a chain: the root signs the TLD, the TLD publishes your DS record, and the DS points to your zone's DNSKEY. If any link is wrong, validating resolvers return SERVFAIL and your domain looks down.
1. Is it enabled at all?
dig DS yourdomain.com +short
dig DNSKEY yourdomain.com +short
No DS means no chain: the zone is not validated (fine if you never enabled it).
2. Does it validate?
dig yourdomain.com A +dnssec @1.1.1.1
Look for the ad flag (authenticated data) in the header. Then compare with checking disabled:
dig yourdomain.com A +cd @1.1.1.1
If the normal query returns SERVFAIL but +cd answers, the chain is broken.
For a trace of each link, use delv (shipped with BIND tools):
delv yourdomain.com A +vtrace
The words "fully validated" in the output are what you want. Free web tools such as DNSViz also draw the chain.
3. The classic failure: DS mismatch
When you move DNS to another provider, the new zone has new keys, but the registrar still publishes the old DS. Validation fails. Safe order:
- Remove the DS record at the registrar (and wait for its TTL).
- Move the DNS.
- Enable DNSSEC at the new provider.
- Publish the new DS at the registrar.
4. Check regularly
Key rollovers and signature expiry also break chains. Rerun step 2 after any DNS change.
Check your own domain
If you would rather not run these commands by hand, there is a free check at https://attackscout.com/en?utm_source=devto&utm_medium=article
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.