Skip to content

DNS Poisoning

In plain terms

You type the correct address and land on the wrong server. Nothing about what you typed is wrong — it's the directory that has been tampered with.

Definition

DNS poisoning consists of tampering with the translation of a site name into a server address, so that a correctly typed address leads to a server controlled by a third party. It differs from typosquatting, where it is the address itself that differs: here the address is correct, and it's the destination that has changed.

How it works

Every time you open a site, your device asks a translation service for the address of the corresponding server. That reply can be tampered with at several points: in the household's router, if its administration is compromised or its settings have been changed; on the local network, by a device answering in place of the service; or through the device's own configuration, since malicious software can point it to a controlled translation service. This is what makes the technique remarkable: the displayed address stays exact, what a reader has learned to check reveals nothing, and the page can be a faithful copy. One protection nonetheless remains, and it is the only one worth counting on: the certificate. An impostor server cannot present a valid certificate for a name it doesn't own, and the browser then shows a warning. This explains an otherwise abstract instruction — never bypass such a warning — and why techniques in this family often try to get a certificate installed on the device, which removes precisely that safeguard.

Why it works

The address displayed is correct: the check you learned to do reveals nothing. All that's left is the certificate warning, and the habit of clicking through it.

What this attack relies on

Understanding these levers is worth more than memorizing a hundred pages: it is what lets you recognize a scam no one has described yet.

Warning signs

  • Certificate warning on a site you normally visit without any problem
  • Familiar site whose appearance has changed, or asking for an unexpected reconnection
  • Redirects to advertising pages from several different sites
  • The same site displays normally over mobile data but not on your network
  • DNS servers changed in your router's or device's settings without your involvement

Example

Fictional example — no real organization or address

Your bank's site, opened from your bookmark, on your home Wi-Fi.

Your connection is not private The site banque-exemple.test may be trying to steal your information. [Back] [Advanced]

What gives it away

  • The address is right, but the certificate doesn't match.
  • The site opens normally on your phone's mobile connection.
  • The warning appears on a site you use regularly, with no known reason.
More fictional examples: Website

How to verify

Compare two networks: open the site in question through your phone's mobile hotspot. If the problem disappears, it comes from the network or the router, not the site. Then check the DNS servers configured in your router's interface: a value you didn't choose is a clear signal.

The questions to ask, in order

  1. Does a certificate warning appear on a site you normally use without any problem?

    If yes: Don't click through. Go back.

  2. Does the site open normally on your phone's mobile connection?

    If yes: The problem is on your network: check the DNS servers in your router's interface.

  3. Did you enter credentials despite the warning?

    If yes: From another network, change those passwords and sign out of sessions.

What to do

Change your router's admin password — often still at its factory default — and keep its firmware up to date, since changing its settings is the most common route in. Never install a certificate requested by a site or a network. Never bypass a certificate warning; it's the protection still standing once everything else has been fooled.

If it already happened

Restore the router's network settings, change its admin password, and update it. From another network, change the credentials entered during the period concerned and close open sessions. Check that no unknown certificate has been added to your devices. Report the incident to the relevant authority.

So it doesn't happen again

  • Never click through a certificate warning.
  • Change your router's admin password and keep it up to date.
  • Never install a certificate requested by a site or a network.

Test yourself

When you open a site you usually visit without trouble, the browser shows a security warning.

Start the simulation: DNS Poisoning

Frequently asked questions

The address is correct — how can the site be fake?
Because the name and the destination are two different things. The name is translated into a server address by a directory, and it's that translation that's been tampered with. This is what makes this technique different from every case where simply reading the address carefully is enough: here, reading carefully isn't enough.
What's left to protect yourself, then?
The certificate. An impostor server cannot present a valid one for a name that isn't its own, so the browser's warning is the last effective safeguard. That's the concrete reason it should never be bypassed, and why you're sometimes pushed to install a certificate: doing so disarms it.

Official sources

Also known as: DNS spoofing, DNS hijacking, DNS cache poisoning, DNS spoofing attack.

This article is part of the Network and Wi-Fi attacks family. Last updated: 2026-09-03.

Published under the responsibility of Mountaga Diallo · methodology.