What Is DNS Hijacking? How Routers Get Compromised

DNS hijacking silently redirects your internet traffic through attacker-controlled servers. Here's how it works and what protects against it.

Reviewed March 2026 · ismyroutersafe.com

What is DNS hijacking?

DNS (Domain Name System) is the internet's phone book - it translates domain names (google.com) into IP addresses (142.250.80.46). Every time you visit a website, your device asks a DNS server for the IP address. DNS hijacking occurs when an attacker alters your DNS settings - either on your device or your router - to point your DNS queries to a malicious server they control.

Rio Router
From the team behind this checker
Want a router that takes this seriously by default?
  • SecureRooms. Smart devices live apart from your computers.
  • You approve every new device before it joins.
  • Rio VPN built in. First year included.
  • Set up in about 10 minutes from the app.
See Rio Router →
$199.99 · 1 year of VPN included, then $7.99/mo · 30-day returns · 1-year warranty. Rio builds this site and grades its own router by the same method.

How does it work through your router?

An attacker who compromises your router (through a CVE, default password or malware) can change the DNS server it tells every connected device to use. Your devices trust the router, so every website lookup goes through the attacker's server. The attacker can then send banking, email or any other site to fake versions they control.

Invisible to most users: DNS hijacking shows no visible sign. Your internet works normally while specific traffic is silently redirected.

Signs your router DNS may be hijacked

How to protect against DNS hijacking

Which routers are most vulnerable?

Routers with unpatched CVEs, default passwords or end-of-life firmware are most vulnerable. Chinese-owned brands (TP-Link, Huawei) have also been implicated in government-level DNS manipulation capabilities. Check your router's security grade at ismyroutersafe.com.

Frequently Asked Questions

In your router admin panel, check the DNS server settings (usually under WAN or Internet Settings). They should show your ISP's DNS or a trusted one like 1.1.1.1 or 8.8.8.8. An unfamiliar IP address you didn't set may indicate DNS hijacking.

Partially. HTTPS encrypts your traffic and browsers warn when a certificate doesn't match, but an attacker with a fraudulent yet trusted certificate can still intercept HTTPS traffic. HTTPS is important but not a complete defense.

DNS-over-HTTPS sends DNS queries encrypted over HTTPS instead of in plain text, so ISPs, attackers or compromised routers cannot see or change them in transit. Chrome, Firefox and Edge support it; enable it in your browser's security settings.

DNS hijacking is a type of man-in-the-middle (MITM) attack aimed at DNS. A MITM attacker sits between two communicating parties, and DNS hijacking gets there by redirecting traffic at the DNS lookup stage, before the connection is established.

Check your router

See how your router scores

Get its FCC status, CVEs, grade and an action plan.

Check a Router → Top 10 Safe Routers
Rio Router is the only router we rate A. Rio builds this site. See why →