Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is DNS Cache Poisoning?

DNS cache poisoning is an attack that plants forged records in a DNS resolver’s cache, so every user relying on that resolver is silently sent to an attacker-controlled address instead of the real site.

Illustration for the cybersecurity term DNS Cache Poisoning
Home / Blog / Cybersecurity Terms / What Is DNS Cache Poisoning?
17 November 2026

What Is DNS Cache Poisoning?

What Is DNS Cache Poisoning?

DNS cache poisoning, also called DNS spoofing, is an attack in which forged answers are inserted into the cache of a DNS resolver. Once the false record is cached, every client that asks that resolver for the affected domain receives the attacker’s IP address until the record expires. The user types the correct name, sees the correct name in the address bar, and still ends up on the wrong server.

Because one resolver may serve an entire office, ISP region, or cloud tenancy, a single successful poisoning can affect thousands of people at once.

How the Attack Works

Classic DNS runs over UDP, which has no handshake. When a recursive resolver sends a query to an authoritative server, it accepts the first response that matches a few fields: the question, the source and destination addresses, a 16-bit transaction ID, and the UDP source port the query came from. An attacker who can trigger a lookup and then flood the resolver with forged responses, guessing those values before the genuine answer arrives, can get a fake record accepted.

In the early 2000s many resolvers used a fixed source port, leaving only 65,536 possible transaction IDs to guess. That made the race winnable.

The Kaminsky Attack

In 2008 security researcher Dan Kaminsky showed that the problem was far worse than anyone had assumed. Instead of poisoning one record and waiting for it to expire, an attacker could query random, non-existent subdomains—a1.example.com, a2.example.com, and so on—and include a forged authority section in each spoofed reply, claiming that the attacker’s server was authoritative for the whole domain. Each attempt was a fresh race, so success became a matter of minutes. The disclosure led to an unusually large coordinated patch across DNS vendors that summer, introducing source port randomisation as standard.

SAD DNS and Later Variants

Randomised ports raised the bar but did not end the problem. In 2020 researchers presented SAD DNS, which used a side channel in ICMP rate limiting to infer the open source port, reducing the guessing space back to the transaction ID alone. Operating system patches followed, but the research was a reminder that guessing-based defences only buy time.

Cache Poisoning Versus DNS Hijacking

TechniqueWhat is attackedExample
Cache poisoningA resolver’s cache, through forged responsesKaminsky-style attacks on unpatched resolvers
DNS hijackingRegistrar accounts, authoritative servers, or client settingsThe Sea Turtle campaign reported in 2019, which altered records via compromised registrars
Routing attacksInternet routing to the DNS providerThe April 2018 BGP hijack of Amazon Route 53 addresses used to steal cryptocurrency from MyEtherWallet users
Local spoofingName resolution on the same LANLLMNR and NBT-NS poisoning with tools such as Responder

The outcomes look similar to the victim, but the defences differ, so it helps to know which one you are facing.

What Attackers Gain

Redirecting a domain lets an attacker serve convincing phishing pages, capture credentials, deliver malware through fake software updates, or intercept email by poisoning MX records. HTTPS limits the damage, since the attacker usually cannot present a valid certificate for the real domain, but users who click through certificate warnings, or services that do not validate certificates properly, remain exposed.

Defences That Work

UK public sector bodies can use the NCSC’s Protective DNS service, which filters known malicious domains at the resolver. Private organisations can apply the same idea with commercial protective DNS.

Detecting Poisoning

Log resolver queries and answers centrally and compare resolutions of key domains against external references. Alerts worth writing include a sudden change of IP for a high-value domain, unusually short TTLs, bursts of responses with mismatched transaction IDs, and spikes of queries for random subdomains of one zone. Our network security services include reviews of DNS architecture and resolver configuration against these attacks.

FAQ – Frequently Asked Questions

Does HTTPS Protect Me From DNS Cache Poisoning?

It reduces the impact considerably. Even if DNS sends you to the wrong server, the attacker normally cannot present a trusted certificate for the genuine domain, so the browser shows a warning. The protection fails if users click through warnings, if an application does not validate certificates, or if the attacker can obtain a certificate by other means, so DNSSEC and resolver hardening remain important.

Is DNSSEC Enough on Its Own?

No. DNSSEC protects the integrity of answers only when the zone is signed and the resolver validates signatures, and many domains are still unsigned. It also does nothing against a compromised registrar account, which can change records and keys legitimately. Combine DNSSEC with patched, hardened resolvers, registrar MFA and locks, and monitoring of how your important domains resolve.

How Can I Tell if My Resolver Has Been Poisoned?

Look for a familiar domain suddenly resolving to an unexpected address, especially one outside the owner’s usual hosting provider. Compare answers from your resolver with trusted public resolvers, inspect cached TTL values, and review resolver logs for floods of responses or random-subdomain queries. Flushing the cache restores correct answers temporarily, but you should still find and fix the weakness.

Related Terms

You May Be Interested In These

What Is Hybrid Cloud Security?

Cybersecurity Terms

17 November 2026

What Is Hybrid Cloud Security?

Read More
What Is the OSI Model?

Cybersecurity Terms

17 November 2026

What Is the OSI Model?

Read More