Doppel Email Security is now generally available! | Register for the webinar to learn more
General

What Is DNS Spoofing?

DNS spoofing forges DNS responses so a domain resolves to an attacker-controlled IP address. Learn how it works, its main types, and how to defend against it.

Doppel TeamSecurity Experts
August 17, 2026
5 min read

DNS spoofing is an attack that feeds forged DNS responses to a resolver or client so a domain name resolves to an attacker-controlled IP address instead of the legitimate one. It includes DNS cache poisoning, where the resolver stores the false record (opens in new tab) in its cache and serves it to each user who queries that domain.

The victim sees the correct domain in the browser yet connects to a server the attacker runs.

How DNS spoofing works

DNS accepts answers by matching query fields without authenticating their origin. Queries and responses travel in single, unsigned UDP packets, a design that makes interception attacks (opens in new tab) easy for anyone on a shared or transit network. A resolver caches any response that arrives with the correct 16-bit transaction ID, source port, and query name.

The attacker's task is a race: land a matching forgery before the legitimate answer arrives, a window of milliseconds. Once the resolver accepts it, the poisoned record persists until its time to live (TTL) expires or an operator removes it.

Fixed source ports made cache poisoning practical in the 2008 Kaminsky vulnerability ( CVE-2008-1447 (opens in new tab)): resolvers sent queries from a single fixed port, so an attacker only needed to guess the transaction ID, and flooding the resolver with forged responses reliably poisoned it. The coordinated fix, source port randomization (opens in new tab), expanded the guessing space enough to make it impractical, until attackers revived it. An off-path attacker could infer the randomized port through ICMP rate limits and collapse the problem back to a transaction-ID guess, as the 2020 SAD DNS (opens in new tab) side channel (CVE-2020-25705) demonstrated.

Why DNS spoofing is hard to stop

A resolver cannot verify what already sits in its cache, so a single poisoned entry silently misdirects each user who queries that domain until the record expires. The victim can use a fully patched, malware-free device; even typing the correct address (opens in new tab) offers no protection, because the misdirection happens after the request leaves the device.

Attackers can also make the redirection hard to notice. During historical registrar compromises (opens in new tab) across the Middle East and North Africa, attackers diverted victims through credential-stealing servers (opens in new tab) and then passed them on to their real destination; the only observable symptom was a slight delay.

Few domain owners deploy the permanent fix, DNSSEC: most domains lack signatures, and recursive resolvers leave most queries unvalidated, which limits DNSSEC deployment (opens in new tab).

Types of DNS spoofing attacks

DNS spoofing reaches the victim through forged responses, while closely related DNS hijacking redirects traffic by changing resolver settings or authoritative records:

How to defend against DNS spoofing

No single control closes the gap, so DNS spoofing defenses layer several:

How Doppel helps

Beyond DNS controls, Doppel is the AI-native Social Engineering Defense (SED) (opens in new tab) platform that unifies Digital Risk Protection and Human Risk Management. It detects the lookalike domains (opens in new tab) and phishing sites a spoofed lookup sends victims to, then dismantles them.

The Doppel Threat Graph (opens in new tab) correlates domains, certificates, social handles, and phone numbers into campaign-level views (opens in new tab), while agentic AI (opens in new tab) executes takedowns at scale (opens in new tab). The platform also converts live detections into a Simulation campaign (opens in new tab) with one click, so employees practice the tactics attackers use while dismantlement raises the attacker's operating cost.

A guided demo shows the campaign infrastructure targeting your brand and the takedowns that dismantle it. Request a demo (opens in new tab) to get started.

Frequently asked questions about DNS spoofing

What is DNS spoofing?

Domain Name System (DNS) spoofing is the delivery of forged DNS responses so that a domain name resolves to an attacker-controlled IP address, bypassing the legitimate one. It includes DNS cache poisoning, where the resolver stores the false record in its cache and serves it to each user who queries that domain until the record expires. Victims see the correct web address in their browser while connecting to a server the attacker controls, which makes the attack nearly invisible.

What is the difference between DNS spoofing and DNS hijacking?

DNS spoofing forges responses to a resolver or poisons its cache, so the effect lasts only until the cached record expires. DNS hijacking changes resolver settings or authoritative DNS records, typically through malware or compromised router, nameserver, or registrar credentials, and persists until an administrator corrects them. Authoritative hijacking targets the DNS records (opens in new tab) on the nameserver, while router hijacking changes resolver settings; both last longer than a spoofed response and reach every user behind the compromised configuration.

Can HTTPS prevent DNS spoofing?

No. Transport Layer Security (TLS) does not authenticate DNS resolution, so a spoofed lookup still sends the user to the attacker's server. In many cases, the attacker cannot obtain a valid certificate for the real domain, and the browser shows a warning, but that warning protects only the users who heed it. In registrar-level campaigns (opens in new tab), attackers obtained valid certificates for the domains they redirected, so the padlock displayed normally. Domain Name System Security Extensions (DNSSEC), which cryptographically authenticates DNS data itself, is the control that addresses the resolution layer.

What is a real-world example of DNS spoofing?

Since early May 2026, Storm-2945, a sub-cluster of the Russian actor Midnight Blizzard, has manipulated DNS and HTTP traffic (opens in new tab) on hotel captive-portal networks worldwide in a campaign Microsoft named CaptiveCrunch. Attackers redirected travelers connecting to hotel Wi-Fi through actor-controlled infrastructure, including doppelganger domains mimicking Microsoft online services. The operation delivered malware and stole Microsoft 365 credentials and session tokens from victims who believed they were signing in normally.

Last updated: August 17, 2026

Learn how Doppel can protect your business

Join hundreds of companies already using our platform to protect their brand and people from social engineering attacks.