brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: dig +dnssec shows the signatures and the ad flag

Dig
~/tips/tip-dig-dnssec-signatures-ad-flag

dig +dnssec example.com A

Shows RRSIG records and whether the resolver validated the answer.

I want to see for myself whether a domain is signed and whether my resolver validates it.

dig +dnssec example.com A
dig +dnssec +cd example.com A

+dnssec sets the DO bit, so the answer includes RRSIG records. In the header, look for the ad flag (authenticated data): it means your resolver validated the chain. For a domain with broken signatures, a validating resolver answers SERVFAIL, and adding +cd (checking disabled) asks it to skip validation so you can still see the data. The ad flag only tells you what the resolver claims, so trust it only for resolvers you control.

Further reading: dig manual page

Going deeper: Guide: dig for beginners, look up DNS records and read the answer

More Dig tips dig +noall +answer DS example.com dig nope.iana.org @9.9.9.9 | grep -E 'status|SOA' dig +search nas dig @8.8.8.8 www.google.com +subnet=203.0.113.0/24 dig +yaml example.com A All Dig tips (36) All topics

Link