A single forged DNS reply can send a visitor to the wrong website while the web address still looks right. DNSSEC CH1: An Introduction to DNS Security explains how signed DNS records block that trick and how DNSSEC works with TLS, DoH, and DoT.
TL;DR
- DNSSEC adds digital signatures to DNS records, so resolvers can check that an answer came from the right DNS zone.
- It helps stop DNS cache poisoning, spoofed DNS replies, and some man-in-the-middle attacks.
- DNSSEC doesn't encrypt DNS traffic or replace HTTPS. It checks authenticity and data integrity.
- Setup needs a signing service, DS records, key management, and regular checks. A bad key rollover can make a site hard to reach.
DNSSEC CH1: An Introduction to DNS Security
DNSSEC is a set of DNS extensions that uses public key cryptography to prove that DNS answers are genuine and unchanged. A validating resolver checks the signature before sending an answer to a user.
DNS normally turns a name such as example.com into an IP address. The process is fast, but traditional DNS wasn't built to prove that each answer is real. An attacker who changes a cached answer may send users to a fake server.
DNSSEC checks the answer against a trusted chain. It doesn't hide the request, encrypt the result, or scan the website. HTTPS still handles encrypted web traffic. DNSSEC checks the path from the trusted DNS root to the record that a resolver receives.
The IETF RFC 4033 overview of DNSSEC explains the main security goals and how signed DNS data is checked.
Why does DNS need security?
DNS needs security because a wrong answer can redirect users before HTTPS gets a chance to help. A visitor may type the right web address but reach a fake login page, payment form, or download site.
DNS was built for lookup, not proof
Traditional DNS answers a question such as:
What IP address belongs to www.example.com?
A recursive resolver asks other DNS servers, stores the answer for a set time, and returns it to the user. The process works well, but the answer itself has no built-in proof of origin.
An attacker may try to:
- Send a fake DNS reply before the real reply arrives.
- Poison a resolver's cache.
- Alter traffic between a user and a DNS resolver.
- Redirect mail or web traffic to an attacker-controlled server.
- Use a weak DNS provider account to change records.
DNSSEC adds signed proof to the answer. A resolver can reject a response when the signature is missing, invalid, or tied to the wrong key.
DNS cache poisoning is a real risk
DNS cache poisoning happens when false DNS data gets stored in a resolver's cache. Every user of that resolver may receive the false answer until the record expires or the cache is cleared.
For example, a poisoned record could point login.example.com to 203.0.113.50 instead of the real server. The attacker then copies the real login page and collects passwords.
DNSSEC doesn't stop every attack against a website. It does stop a resolver from accepting a forged answer when the zone is signed and validation works.
How does DNSSEC work?
DNSSEC works by signing DNS records with a private key and checking them with a matching public key. The check follows a trust chain from the DNS root to the requested name.
1. A DNS zone creates keys
A signed zone normally uses at least two key roles:
- Zone Signing Key, or ZSK: Signs ordinary DNS records.
- Key Signing Key, or KSK: Signs the DNSKEY record set, which publishes the public keys used for validation.
The private keys sign records. The public keys are published in DNS so validating resolvers can check those signatures.
Many DNS providers manage this work for customers. Self-managed teams must protect private keys, plan key changes, and watch for expired signatures.
2. The zone publishes DNSKEY records
The DNSKEY record set contains public keys for the zone. A resolver uses these keys to test the signatures on records such as A, AAAA, MX, and CNAME.
A signed record also has an RRSIG record. The RRSIG holds the digital signature, the signing algorithm, the key tag, and the time window during which the signature is valid.
3. The parent zone publishes a DS record
A DS record connects the child zone to its parent. It contains a digest of a DNSKEY record, which gives the parent zone a way to point to the trusted key below it.
For a website such as example.com, the .com zone holds the DS record for example.com. The parent of .com is the DNS root.
4. The resolver checks the chain
A validating resolver checks each link:
- The DNS root signs information about the top-level zone.
- The top-level zone points to the signed child zone.
- The child zone publishes its DNSKEY records.
- The DNSKEY records validate the RRSIG signatures.
- The requested record passes the signature check.
If every link passes, the resolver marks the answer as authenticated. If a signature fails, the resolver returns a failure instead of silently trusting the answer.
The Cloudflare guide to how DNSSEC works gives a clear view of these records and the trust chain.
What does DNSSEC protect?
DNSSEC protects the authenticity and integrity of signed DNS data. It doesn't protect every part of a website or network connection.
DNSSEC helps protect against
- DNS cache poisoning
- Forged DNS replies
- Some man-in-the-middle attacks on DNS
- Unauthorized changes that lack a valid signing key
- Fake answers for signed records
- False proof that a name doesn't exist
DNSSEC also supports authenticated denial of existence. Records such as NSEC and NSEC3 can help prove that a requested name or record type is absent.
DNSSEC does not protect against
- Stolen website passwords
- A hacked web server
- A compromised DNS provider account
- DDoS attacks by itself
- Malicious content on a valid website
- A registrar account takeover
- Traffic snooping
- The privacy of DNS queries
DNSSEC checks DNS data. It doesn't encrypt that data. Users who need private DNS traffic may use DNS over HTTPS or DNS over TLS, but those tools solve a different problem.
DNSSEC compared with other DNS and web security tools
DNSSEC, HTTPS, DoH, and DoT aren't interchangeable. Each protects a different part of the connection.
| Technology | Main job | Encrypts traffic? | Checks DNS answer authenticity? | Best use |
|---|---|---|---|---|
| DNSSEC | Signs DNS data | No | Yes | Stop forged DNS answers |
| HTTPS and TLS | Protects the web connection | Yes | No, by itself | Protect pages, forms, and logins |
| DNS over HTTPS | Hides DNS requests inside HTTPS | Yes | Not by itself | Protect the path from user to resolver |
| DNS over TLS | Encrypts DNS between user and resolver | Yes | Not by itself | Private DNS transport |
| SPF, DKIM, and DMARC | Helps protect email sending | No | No | Reduce email spoofing |
A strong setup can use several tools at once. DNSSEC can protect the DNS answer, HTTPS can protect the web session, and DoH or DoT can protect the request between a device and its chosen resolver.
What are the main DNSSEC records?
DNSSEC uses several record types that work together. The names may look technical, but each one has a clear job.
DNSKEY
A DNSKEY record publishes a public key for the zone. Resolvers use it to check RRSIG records.
RRSIG
An RRSIG record stores a signature for another DNS record set. A resolver checks the signature with a trusted DNSKEY.
DS
A DS record sits in the parent zone and points to a trusted key in the child zone. It links one level of the trust chain to the next.
NSEC and NSEC3
NSEC and NSEC3 help prove that a name or record type doesn't exist. NSEC can reveal names in a zone through a process called zone walking. NSEC3 can reduce that exposure by hashing names, though it isn't a privacy tool.
CDS and CDNSKEY
CDS and CDNSKEY records can help automate DS record updates between a DNS provider and a registrar. Support differs between providers, so an operator should confirm the process before turning on automation.
How do you enable DNSSEC?
DNSSEC setup usually takes five steps, but the exact screen names vary by registrar and DNS host.
- Check support. Confirm that the registrar and authoritative DNS provider support DNSSEC.
- Enable signing. Turn on DNSSEC at the DNS provider or create keys with a trusted DNS management tool.
- Copy the DS data. Record the key tag, algorithm, digest type, and digest.
- Publish the DS record. Add the DS record through the registrar.
- Test validation. Use a DNSSEC checker and query a validating resolver.
Don't change nameservers, delete keys, or remove DS records during a busy launch without a rollback plan. A mismatch between the DS record and the published DNSKEY can make the zone appear broken to validating resolvers.
Useful checks include:
- Querying with
dig +dnssec - Checking for the
adflag in a validating resolver response - Testing with the ICANN DNSSEC troubleshooting resources
- Watching for expired RRSIG records
- Confirming that all needed record types are signed
What can go wrong with DNSSEC?
The most common DNSSEC failures come from key changes, expired signatures, or an incorrect DS record. The protection is strong, but the setup needs care.
Common failure points
- The DS record was added before the child zone was ready.
- The DS record stayed at the registrar after DNSSEC was turned off.
- A key rollover was only completed on one side.
- Signatures expired because the signing service stopped.
- A DNS provider changed algorithms without a matching parent update.
- A registrar copied the wrong digest.
- An old DNS provider still serves unsigned or stale records.
- A hidden primary server and public servers disagree.
A broken signature can cause a validating resolver to return SERVFAIL. Some users may reach the site while others can't, which makes the issue hard to spot.
A safer key rollover
Use a provider with automatic key rollover when possible. If the process is manual, publish the new key before removing the old one, keep both keys active during the change, update the DS record when required, and test from more than one network.
Keep a record of:
- Current DNSKEY values
- DS values at the registrar
- Signing algorithm
- Signature expiration times
- Nameservers in use
- The person responsible for each change
Who should use DNSSEC?
DNSSEC is a good fit for websites, banks, stores, government services, SaaS tools, and any service where a fake DNS answer could lead to fraud or account theft.
Small sites can use it too, especially when the DNS provider handles signing and changes. A managed service often works better than manual keys managed by a small team.
DNSSEC may need extra planning for:
- Large firms with many zones
- Global services with several DNS providers
- Teams using custom signing software
- Organizations with strict change controls
- Sites that use unusual record types or complex delegation
For most website owners, the best choice is managed DNSSEC with automatic signing, key rollover, alerts, and clear recovery steps. A feature that is switched on and forgotten isn't enough.
A practical DNSSEC checklist
Use this short checklist before and after activation:
- Confirm the registrar supports DS records.
- Confirm the DNS host signs all public nameservers.
- Check that the DS record matches the active DNSKEY.
- Test A, AAAA, MX, CNAME, and TXT records.
- Test both existing and missing names.
- Query from more than one validating resolver.
- Set alerts for signature expiry.
- Document the key rollover plan.
- Keep registrar account security strong with multi-factor authentication.
- Review DNS changes after staff or vendor access changes.
The DNSSEC check should become part of normal DNS change work, not a one-time task.
Frequently Asked Questions
What is DNSSEC?
DNSSEC is a set of DNS extensions that uses digital signatures to prove that DNS answers came from the correct signed zone and weren't changed in transit.
Does DNSSEC encrypt DNS traffic?
No, DNSSEC doesn't encrypt DNS traffic. It checks the authenticity and integrity of DNS data, while DNS over HTTPS and DNS over TLS encrypt the connection between a device and a resolver.
Does DNSSEC replace HTTPS?
No, DNSSEC doesn't replace HTTPS. DNSSEC protects name resolution, while HTTPS protects the web connection, website content, forms, cookies, and login data.
What happens when DNSSEC is configured incorrectly?
A configuration error can cause validating resolvers to return SERVFAIL, which may stop some users from reaching the site. The usual causes are a wrong DS record, an expired signature, or a failed key rollover.
Is DNSSEC worth using for a small website?
Yes, DNSSEC is worth using for a small website when the DNS provider offers managed signing and automatic key changes. It adds useful protection without much daily work when the provider handles the moving parts.
How can I test DNSSEC?
You can test DNSSEC with dig +dnssec, a DNSSEC checking service, and more than one validating resolver. A valid response should show DNSSEC records, and a validating resolver may mark the answer with the ad flag.
One thought on “DNSSEC CH1: An Introduction to DNS Security”