Network security

What Is DNSSEC? How It Works, Chain of Trust & Setup

DNS was built without authentication, so a forged answer can send you to a fake site. DNSSEC fixes that with signed records and a chain of trust from the root.

Cysoro Security TeamPublished · 8 min read
Chain of trustRoot — trust anchor.com — DS recordexample.com — DNSKEYA record — RRSIG signed✓NETWORK SECURITYDNSSECexplainedSigned answers. No forgeries.
Quick answer

DNSSEC, or Domain Name System Security Extensions, adds digital signatures to DNS records so a validating resolver can prove an answer really came from the zone owner and was not changed in transit. Trust flows from the root zone through each parent's DS record to the child's DNSKEY. It protects authenticity and integrity, not privacy, and a broken chain makes validating resolvers return an error instead of a forged answer.

Key takeaways

  • DNSSEC signs DNS data with digital signatures, so resolvers can verify an answer is authentic and unmodified.
  • The chain of trust runs from the root zone through DS records in each parent zone to the child's DNSKEY.
  • DNSSEC does not encrypt DNS queries or stop a site itself being malicious; it proves the DNS answer is genuine.

Every website visit, email and app connection starts with DNS: a lookup that turns a name like example.com into an IP address. DNS was designed in the 1980s, when security was not a primary consideration, and by itself it has no way to prove an answer is genuine.

What is DNSSEC?

DNSSEC, or Domain Name System Security Extensions, is a set of specifications that adds digital signatures to DNS records so a resolver can verify that an answer is authentic and has not been modified in transit.

With DNSSEC, it is not the queries and responses themselves that are signed, but the DNS data itself, signed by the owner of the data. Every DNS zone has a public and private key pair. The zone owner uses the private key to sign DNS data and generate digital signatures over that data.

The public key is published in the zone for anyone to retrieve, and a resolver uses it to validate the signature.

DNSSEC adds two features to DNS: data origin authentication, which lets a resolver verify the data really came from the zone it believes it came from, and data integrity protection, which lets the resolver know the data has not been modified since it was signed.

Why is DNS insecure without DNSSEC?

Without DNSSEC, a resolver has no way to verify the authenticity of a response. It can only check that a response appears to come from the same IP address it queried, and a source IP address can easily be forged.

An attacker can therefore masquerade as the authoritative server and send a forged response that redirects a user to a malicious site without the user realising it. Resolvers also cache DNS data to speed up lookups. If an attacker sends a forged response that a resolver accepts, the attacker has poisoned the cache, and the resolver will then return the fraudulent data to other devices that query for it.

Consider a bank website. A user queries the bank's IP address, but an attacker has poisoned the resolver with an IP address that points to a fraudulent site that impersonates the bank. The user enters their name and password as usual, and has inadvertently given their credentials to the attacker. This is the cache-poisoning attack DNSSEC is designed to stop, as ICANN explains.

How does DNSSEC work?

DNSSEC validates responses to DNS queries before returning them to the client. It uses digital signatures stored in name servers alongside common DNS record types, and a public-private key pair for each zone.

When a zone is signed, records of the same name and type are grouped into a resource record set, or RRset, and the RRset, not individual records, is signed. The signature is stored as an RRSIG record.

The public key that verifies the signature is stored in a DNSKEY record. There are two kinds of keys: a zone-signing key, which signs everyday records, and a key-signing key, which signs the DNSKEY set itself.

A validating resolver retrieves the answer, the RRSIG signature and the DNSKEY public key, then checks the signature. If it validates, the data is legitimate and is returned to the user. If it does not validate, the resolver assumes an attack, discards the data and returns an error.

How a validating resolver checks an answer1. QueryClient asks forexample.comA record2. Answer + proofA record, RRSIGsignature andDNSKEY public key3. VerifyCheck signatureagainst the chainof trust4. ResultValid: return it.Invalid: discardand return errorA failed check returns SERVFAIL, not a forged answer.
DNSSEC validation: the resolver checks the signature before it trusts the answer. Illustration by Cysoro.

What is the DNSSEC chain of trust?

The chain of trust is a sequence of cryptographic keys signing other keys, so each DNS zone can validate the next level below it. The public key at the start of a chain is called a trust anchor.

On its own, a zone's public key proves nothing, because anyone can sign anything with a key they made up. What makes it meaningful is the chain. A zone's public key is signed by its parent zone's private key. For example, the example.com zone's public key is signed by the .com zone, and the .com zone's key is signed by the root zone.

The actual mechanism uses a DS, or Delegation Signer, record. The DS record lives in the parent zone and contains a hash of the child's key-signing key. So the root publishes a DS for .com, .com publishes a DS for your domain, and your key-signing key vouches for your zone-signing key, which signs your everyday records.

Most resolvers are configured with just one trust anchor: the public key for the root zone. By trusting that key, a resolver can build a chain to any signed zone below it.

The DNS root zone has been signed since 2010, and all generic top-level domains and many country-code top-level domains are also signed. ICANN changed the root trust anchor for the first time in 2018, and in 2024 it generated a new trust anchor for the root which is planned to become active in 2026.

What are the DNSSEC record types?

Four record types do most of the work, plus two message header bits that accompany them. Knowing them helps you read a DNSSEC checker output without guessing.

RecordLives inWhat it holdsWhat it proves
DNSKEYYour zonePublic key (KSK or ZSK)Which key signed the data
RRSIGYour zoneSignature over one record setThat record set is authentic
DSParent zoneHash of your KSKThe parent vouches for your key
NSEC / NSEC3Your zoneSigned proof of what does not existA name really does not exist

NSEC and NSEC3 matter because DNSSEC must also prove a negative: that a name does not exist, so an attacker cannot fake a non-existent domain response. RFC 4033, the introduction and requirements document published in March 2005, defines this machinery.

The Cyber Security Agency of Singapore gives the same chain-of-trust explanation in eight steps, from the client query to the root key.

What does DNSSEC not protect against?

DNSSEC does not encrypt DNS data, and it does not prove that a website itself is safe. It proves the DNS answer is genuine, nothing more.

It does not include common measures like encrypting DNS data, SSL certificates or shared secrets. A site with valid DNSSEC can still be malicious, a look-alike domain can have valid DNSSEC of its own, and a phishing email can link to a different domain entirely.

DNSSEC also does not protect the path between your device and the resolver unless you also use encrypted DNS, and it does not stop an attacker who has compromised the zone owner's own account or DNS host.

Think of it as a signature on a letter, not a sealed envelope and not a character reference for the sender. You know the letter really came from the claimed sender and was not altered, but you still need to judge whether the sender is trustworthy.

For email authentication, see our guide to what DMARC is.

How do I enable DNSSEC for my domain?

Enabling DNSSEC usually takes three steps: sign the zone at your DNS host, publish the DS record through your registrar, and test it before you consider the job done.

  1. Sign the zone: in your DNS hosting provider, turn on DNSSEC. Many providers make this a checkbox, and almost all common authoritative name server software supports signing.
  2. Publish the DS record: send the DS record, or the key material your provider gives you, to your registrar. The DS record lives in the parent zone, and in most cases that communication happens through the registrar.
  3. Test it: use a DNSSEC checker or run a lookup with our free DNS lookup tool and check that the chain validates from the root down to your domain.
  4. Keep keys current: plan key rollovers in advance. A rollover that is not completed, or a DS record that does not match the current key, breaks validation for the whole domain.
  5. Do not move registrars mid-rollover: remove the DS record first, wait out its cache lifetime, then move, then re-sign. A signed zone whose parent publishes no DS is an island of security with no chain from its parent.

Enabling validation on a recursive resolver is easier: it has been supported by nearly all common resolvers for many years, and turning it on involves changing just a few lines in the resolver configuration.

The chain of trust, top to bottomRoot zone — trust anchor, signed since 2010.com — root publishes a DS record for .comexample.com — .com publishes a DS for your domainYour records — signed by your zone-signing keyBreak any link and everything below it fails validation.
Each parent vouches for its child's key through a DS record. Illustration by Cysoro.

Why does DNSSEC break, and how do you fix it?

Most DNSSEC failures are self-inflicted, and almost all of them come down to a broken chain: a DS record that does not match the DNSKEY, a key rollover that was only half finished, or a registrar move done in the wrong order.

  • Wrong or missing DS record: check the DS at your registrar against the DNSKEY in your zone. They must match exactly.
  • Expired signatures: RRSIG records have validity dates. If your signer stops re-signing, signatures expire and validation fails.
  • Registrar transfer: unsign first, remove the DS, wait for the cache to expire, then move. Do not transfer a signed zone with its DS still published.
  • Clock skew: a resolver with a badly wrong clock may reject signatures as not yet valid or already expired.

When a validating resolver cannot verify the chain, it does not fall back to the unsigned answer. It returns SERVFAIL, which makes the whole domain unreachable to users of that resolver.

That is why you test before and after every change, and why you keep a rollback plan: removing the DS record at the registrar is usually the fastest way to restore service, at the cost of losing DNSSEC protection until you fix the chain.

DNSSEC vs DNS over HTTPS: what is the difference?

DNSSEC proves an answer is authentic. DNS over HTTPS, or DoH, and DNS over TLS, or DoT, encrypt the connection between your device and the resolver so nobody on the network can see or alter your queries in transit.

They solve different problems and work best together. Without DNSSEC, an encrypted connection to a resolver still cannot prove the resolver's answer came from the real zone owner. Without encrypted DNS, a DNSSEC-signed answer is still visible to anyone watching the network, even though it cannot be forged without detection. Use both: a validating resolver, encrypted DNS to reach it, and DNSSEC on your own domains.

Check the DNS records for any domain with our DNS lookup tool.

You can also check its registration details with WHOIS lookup.

The bottom line

DNSSEC is the only control that lets a resolver prove a DNS answer really came from the zone owner and was not changed on the way. It is not encryption, and it is not a verdict on whether a site is safe, but without it DNS has no authentication at all.

If you own a domain, enable DNSSEC at your DNS host, publish the DS record through your registrar, and test the chain. Then check your domain's DNS and security headers with the free DNS lookup tool.

Frequently asked questions

What does DNSSEC stand for?

DNSSEC stands for Domain Name System Security Extensions. It is a set of specifications that uses digital signatures based on public key cryptography to authenticate DNS queries and responses.

Does DNSSEC encrypt my DNS queries?

No. DNSSEC adds signatures to DNS data, but it does not encrypt queries or responses. For privacy, use DNS over HTTPS or DNS over TLS, which encrypt the connection to the resolver. DNSSEC and encrypted DNS solve different problems and can be used together.

What happens if DNSSEC validation fails?

A validating resolver discards the data and returns an error, usually SERVFAIL, instead of returning the forged or tampered answer. That is deliberate: DNSSEC protects you from bad data by giving you no data rather than bad data.

Do I need DNSSEC on my domain?

If you run a website, email or any service people trust by domain name, yes. DNSSEC stops attackers redirecting your visitors to a fake site by poisoning a resolver cache. Many registrars and DNS hosts let you enable it with a checkbox, and your registrar must publish the DS record in the parent zone.

Is DNSSEC the same as DNS security?

No. DNSSEC is one specific control. DNS security is a wider term covering many strategies, including encrypted DNS, DNS filtering, DMARC for email, and monitoring for look-alike domains. DNSSEC does not replace any of those.

Can DNSSEC stop phishing?

It can stop one kind of phishing: DNS spoofing and cache poisoning that redirects your visitors to a fake copy of your site. It cannot stop look-alike domains, a genuinely hacked account, or a phishing email that links to a different domain entirely.

Why is my site unreachable after enabling DNSSEC?

The most common cause is a broken chain of trust, often a missing or wrong DS record at the registrar, or a key rollover that was not completed. Check the DS record matches your DNSKEY, wait for cached records to expire, and test with a DNSSEC checker before you change registrars.

Sources

  1. ICANN — DNSSEC: What Is It and Why Is It Important?
  2. Cyber Security Agency of Singapore — Domain Name System Security Extensions (DNSSEC)
  3. BlueCat Networks — What is DNSSEC and how does it work?
  4. Bill Hartzer — DNSSEC Explained: Chain of Trust and Failures
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against ICANN's DNSSEC explainer, RFC 4033 as summarised in that guidance, and the Cyber Security Agency of Singapore's DNSSEC resource.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free