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.
DNS hijacking silently redirects your internet traffic through attacker-controlled servers. Here's how it works and what protects against it.
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.
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.
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.
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
Get its FCC status, CVEs, grade and an action plan.
Check a Router → Top 10 Safe Routers