How does DNSSEC verify DNS answers?
Useful first: DNS · optional, not a requirement
Choose your depth
Stay with the essentials, or look closer.
YOUR GOALExplain what a DNS signature protects and what it leaves unprotected.
Check the answer's origin
A lookup needs an authenticity check
DNS supplies records such as a name's IP address. DNSSEC adds digital signatures to DNS data. A resolver that validates them can check that protected data came from the expected zone and was not altered after signing. Publishing signatures and actually validating them are separate jobs.
[1] [2]An address swap should fail
Imagine a signed address record for books.example. An attacker substitutes another address but cannot produce a valid signature under a trusted zone key. A validating resolver should reject that altered answer. This is evidence about DNS data: a domain can publish authentic records for a website that is still dishonest.
[1] [2]Authentication is not secrecy
DNSSEC does not hide the question or answer. DNS over HTTPS protects a connection to a resolver; DNSSEC checks signed DNS data. The two can work together. Neither a DNS signature alone nor an encrypted lookup is a promise that every later interaction with a website is safe.
[2] [6]A signed DNS answer can be authentic without being private.
DNSSEC encrypts my searches for domain names.
Its signatures authenticate DNS data. Lookup encryption is a separate transport protection.
Show the explanation
The altered DNS data cannot be authenticated. Validation checks the signed DNS data; it does not encrypt the browsing session or evaluate the website's content.
YOUR GOALConnect DNSKEY, RRSIG and DS records, then distinguish unsigned data from failed validation.
Follow keys across a delegation
Sign a record set
An RRset groups records with the same owner name, type and class. For example, two A records for one name belong to one RRset. An RRSIG carries a signature covering that set, while DNSKEY publishes the public key used to check it. A signature that matches an arbitrary untrusted key is not enough.
[3] [5]A parent helps authenticate a child
A resolver starts from a configured trust anchor. In a signed delegation, a DS record in the parent zone contains a digest identifying a child DNSKEY. For a hypothetical signed books.example zone, the resolver authenticates the parent's signed DS records, then uses the matching child key to authenticate the child's DNSKEY set; trusted child keys then verify its data. The private signing key is not published.
[3] [4]Unsigned is different from broken
Secure means validation has established the required trust. Insecure can describe an unsigned child below a delegation with authenticated proof that no DS exists. Bogus means expected validation failed. Indeterminate means the resolver lacks enough information or a suitable trusted starting point to establish the status. Simply seeing an unsigned answer proves none of these conclusions by itself.
[5] [2]Check the trust path, not just whether a signature is present.
Any unsigned reply is a DNSSEC attack.
An authenticated unsigned delegation differs from data that should validate but does not.
Show the explanation
The unsigned branch can be insecure; expected-but-failed validation is bogus. Insecure describes a branch without an authenticated signing chain. Bogus describes a chain or signature that was expected to validate but failed.
YOUR GOALApply signature time limits, recognize authenticated negative answers, and interpret validation errors carefully.
Respect validation limits and failures
A signature adds a second time limit
An RRSIG has inception and expiration times. When authenticating an RRset, a validator caps its cache TTL using the received RRset TTL, the RRSIG TTL, the RRSIG Original TTL and the time until signature expiration. If the first three limits are 600 seconds and the signature expires in 90 seconds, the resulting TTL must not exceed 90 seconds.
[4] [3]Absence can have evidence
A negative reply can be authenticated too. NSEC records describe existing names and record types so a validator can establish relevant absence; NSEC3 is another denial-of-existence mechanism. For example, a zone may prove that a name exists but has no requested AAAA record. That is a valid negative result, not a failed signature.
[5] [4]Investigate SERVFAIL rather than guessing
For a recursive query that leaves checking enabled, failed signature validation returns SERVFAIL rather than the unauthenticated answer. SERVFAIL also has other causes. After a DNS-provider change, stale parent DS records that match none of the new child keys are one possible DNSSEC fault. Inspect validation diagnostics and the delegation; failure alone does not prove an attacker was present.
[4] [7]DNSSEC needs a usable trust chain, valid signatures and valid timing; a negative answer can still pass.
A long cache TTL allows a resolver to authenticate an answer after its signature expires.
The validator must also respect the signature's validity interval; TTL does not extend it.
Show the explanation
90 seconds, or less if another applicable limit is shorter. The authenticated TTL is bounded by the minimum of the stated limits, including time remaining before signature expiration.
Keep asking. Check the details.
Source-checked using AI (OpenAI Codex) on . The checks covered sources, examples, and quizzes for this article version.
No human review is claimed. AI review can miss errors; check the original sources below.
- ICANN — DNSSEC: What Is It and Why Is It Important?
- RFC 4033 — DNS Security Introduction and Requirements
- RFC 4034 — Resource Records for the DNS Security Extensions
- RFC 4035 — Protocol Modifications for the DNS Security Extensions
- RFC 9499 — DNS Terminology
- RFC 8484 — DNS Queries over HTTPS
- Google Public DNS — Domain Troubleshooting