DNS hijacking is an attack in which someone changes the Domain Name System records or settings for a domain so that traffic meant for your website, email or VPN goes to a server the attacker controls. Visitors still type the correct address, so nothing looks wrong, yet their traffic can be read, altered or used to steal logins. The usual entry point is a stolen registrar or DNS-provider password.
Key takeaways
- DNS hijacking changes where a domain points, not the domain name itself, so victims see no error and no warning.
- The main entry point is a compromised registrar or DNS account, which is why MFA and a registrar lock matter most.
- DNSSEC stops forged answers in transit but cannot stop an attacker who logs in with stolen credentials.
You type your bank's address, the page loads, the padlock is there — and you are not on your bank's server at all. That is DNS hijacking: the name is right, but the address behind it has been quietly changed, and everything you type can be read by someone else.
What is DNS hijacking?
DNS hijacking is the unauthorized change of Domain Name System records or settings so that traffic for a domain goes to a server the attacker controls. The domain name stays the same, so users see no error and no warning.
DNS is the internet's address book. When you visit a website, your device asks a resolver to turn the domain name into an IP address, then connects to that address. Hijacking changes one link in that chain: a record at your DNS host, the nameservers at your registrar, a setting on your router, or a forged answer in a resolver's cache.
CISA describes the most damaging form plainly: an attacker compromises the credentials of an account that can change DNS records, then alters A, MX or NS records, replacing the legitimate address of a service with an address the attacker controls. Because the attacker can set DNS values, they can also obtain a valid encryption certificate for the domain — so redirected traffic can be decrypted and users receive no error warnings.
How does DNS hijacking work?
Almost every DNS hijack follows the same pattern: get control of something that can change DNS answers, change the answer, then collect the traffic that arrives.
- Get access. The attacker steals registrar or DNS-provider credentials, often through phishing, or exploits a router or a vulnerable DNS server.
- Change the answer. They edit an A record (website address), an MX record (where email is delivered) or the NS records (which servers answer for the whole domain).
- Collect the traffic. Visitors and mail arrive at the attacker's server, which can copy logins and messages, serve a fake login page, or quietly forward traffic to the real site so nothing looks broken.
- Stay hidden. Because the domain name is unchanged and the certificate is valid, the hijack can run for days before anyone notices.
The risk, as CISA puts it, "persists beyond the period of traffic redirection": stolen passwords and certificates obtained during the hijack stay useful after the records are fixed.
What are the main types of DNS hijacking?
DNS hijacking can strike at five different points, and the higher up the chain the change sits, the more people it reaches.
| Where it happens | How attackers get in | Who is affected | Example |
|---|---|---|---|
| Local device | Malware changes DNS settings | Users of one PC | DNSChanger malware, 2011 |
| Router | Weak password or known flaw | Everyone on that network | Hijacked home and office routers |
| Resolver / cache | Forged answers planted in a cache | Users of that resolver | Cache poisoning, including the 2008 Kaminsky flaw |
| DNS host records | Stolen DNS-provider login | Every visitor to the domain | Changed A and MX records, 2017–2019 campaigns |
| Registrar / nameservers | Stolen registrar account | Everyone, worldwide | NS delegation changed; whole zone moved |
Three types deserve a closer look. Router hijacking changes the DNS server on a home or office router, so every device on that network is affected at once. Cache poisoning tricks a resolver into storing a wrong answer, which it then hands out until the entry expires. Registrar hijacking changes the nameserver delegation itself, moving the entire domain — website, email and all — to infrastructure the attacker runs.
There is also a quieter variant: a resolver operator rewriting answers, for example turning a "name does not exist" reply into an ad page. That is not an attack by an outsider, but it still sends users somewhere the domain owner did not choose.
DNS hijacking vs DNS spoofing vs domain hijacking: what's the difference?
These terms overlap, and vendors use them loosely. The distinction that matters is what changed and who still controls the domain afterward.
- DNS hijacking: any link in the lookup chain is changed, from a device setting to the domain's nameservers. You usually still own the domain; the attacker controls the answers while the change lasts.
- DNS spoofing (cache poisoning): a forged answer is planted in a resolver's cache. No record at your DNS host changes, and the effect ends when the cached entry expires.
- Domain hijacking: the attacker takes control of the domain registration itself, usually by transferring it to another registrar. You lose the domain, not just its answers.
- Subdomain takeover: an attacker claims a subdomain that points to a service you stopped using, such as a deleted cloud site. The main domain is untouched.
If your website suddenly points somewhere else but your registrar account looks normal, suspect spoofing or a router problem. If the records themselves changed, suspect a hijack of your DNS or registrar account.
What are real examples of DNS hijacking?
The clearest documented case is the campaign that prompted CISA's Emergency Directive 19-01 in January 2019.
In late 2018, security organizations around the world detected a rise in malicious activity targeting DNS infrastructure. Attackers compromised credentials for accounts that could change DNS records, altered A, MX and NS records for multiple organizations, and redirected web and email traffic to infrastructure they controlled.
CISA issued Emergency Directive 19-01 on 22 January 2019, ordering US federal civilian agencies to audit their DNS records, change DNS account passwords, add MFA and monitor Certificate Transparency logs, all within ten business days. The directive has since been closed, but its four actions remain the standard response.
Older cases show the other entry points. The DNSChanger malware of 2011 changed DNS settings on infected computers and routers, sending millions of users to attacker-controlled servers. The Kaminsky cache-poisoning flaw of 2008 showed that forged answers could be planted in resolvers at scale, which is why DNSSEC was pushed so hard afterward.
More recently, attackers have hijacked routers to change DNS settings for whole offices, and used stolen DNS credentials to redirect domains for phishing and malware delivery. The method changes; the goal — quietly owning the address book — does not.
How do you know if your DNS has been hijacked?
A hijack is designed to be invisible, so look for small inconsistencies rather than a single dramatic failure.
- Your site looks different in some places. Colleagues in one office or country see different content, or an old version of the site.
- Email goes missing or bounces. An MX record change sends inbound mail to the attacker first, and some of it never arrives.
- Records nobody recognizes. An A, MX or NS record appears that no one on your team created.
- Unexpected certificates. A new certificate for your domain shows up in Certificate Transparency logs that you did not request.
- Registrar emails. Messages about record changes, nameserver changes or transfer requests you did not make.
- Security warnings on some networks only. A warning that appears on one network but not another points at a router or resolver problem.
You can check the basics yourself in seconds with our free DNS lookup tool: compare the A, MX and NS records it returns against the list you keep on file. If they differ, treat it as a security incident, not a typo.
What damage can DNS hijacking cause?
A hijack is not just a redirect. It is a position of total control over a domain's traffic, and attackers use it in several ways at once.
Stolen logins and data. With a valid certificate for your domain, the fake site looks real. Visitors log in, and the attacker harvests the credentials. Stolen email. An MX change routes inbound mail to the attacker, exposing password resets, invoices and confidential messages.
Phishing at scale. The attacker's site sits at your real domain, so phishing links pass the "check the address" test. Malware delivery. Visitors can be served malicious downloads from a domain they trust. Reputation damage. Customers who land on a fake or defaced site blame you, even though the domain was the victim.
For a small business, the worst cost is often the quiet one: password-reset emails intercepted during a hijack let an attacker take over cloud accounts, banking and email long after the DNS records are fixed.
How do you prevent DNS hijacking?
Prevention is mostly unglamorous account hygiene, because the main entry point is a login, not a protocol flaw. CISA's four actions from Emergency Directive 19-01 are still the right checklist.
- Turn on MFA everywhere DNS can change. Registrar, DNS host, hosting panel and the email account that can reset them. If a provider does not support MFA, CISA recommends moving to one that does.
- Use unique, strong passwords for DNS accounts, stored in a password manager, and never reused elsewhere.
- Enable registrar lock (clientTransferProhibited) on every domain, and a registry lock on the domains that matter most, so changes need an out-of-band check.
- Turn on DNSSEC. It signs your DNS answers so resolvers can detect forgery in transit, as described in RFC 4033. It does not stop credential theft, so it is a complement to MFA, not a replacement.
- Monitor Certificate Transparency logs for certificates issued for your domains that you did not request. Cysoro's certificate monitoring does this continuously.
- Keep a written inventory of every domain you own, its registrar, its nameservers and its intended records, so a wrong answer is a comparison, not a judgment call.
- Secure your router. Change the default admin password, update its firmware, and check that its DNS servers are the ones you chose.
For the wider starting point, our small business cybersecurity checklist covers DNS controls alongside backups, updates and MFA.
What should you do if your DNS has been hijacked?
Act as if credentials are stolen, not just records are wrong, because the attacker probably has both.
- Restore the records from a known-good copy, and check the NS delegation at the registrar, not just the zone.
- Change every password on accounts that can edit DNS, including the registrar, DNS host and the recovery email account.
- Turn on MFA and a registrar lock if they were not already on.
- Revoke certificates you did not request and check Certificate Transparency logs for others.
- Check for stolen access: review email forwarding rules, password-reset history and cloud admin accounts created during the hijack window.
- Force password resets for staff whose accounts may have been used while the hijack was live.
- Report it to your registrar, your DNS provider and, in the US, the FBI's IC3 if money or data was stolen.
The bottom line
DNS hijacking works because the internet trusts DNS answers, and most of those answers are changed through an ordinary login. Lock down that login with MFA, a registrar lock and unique passwords, sign your zone with DNSSEC, and watch Certificate Transparency logs for surprises.
You can check your own domain's current DNS records in seconds with the free DNS lookup tool, and verify its certificates with the free SSL checker. If anything looks wrong, treat it as an incident, not a glitch.
Frequently asked questions
What is DNS hijacking in simple terms?
DNS is the internet's address book: it turns a domain name into a server address. DNS hijacking changes an entry in that address book, so your browser asks for the right website but is sent to a server run by an attacker instead.
How do I know if my DNS has been hijacked?
Warning signs include your website showing different content in some locations, email suddenly bouncing or going missing, DNS records nobody recognizes, unexpected certificates for your domain, and registrar emails about changes or transfers you did not make.
Can DNS hijacking steal my passwords?
Yes. Once an attacker controls your DNS records, they can obtain a valid TLS certificate for your domain, so the fake site shows a padlock and no warning. Anything visitors type in, including passwords, can then be read by the attacker.
What is the difference between DNS hijacking and DNS spoofing?
DNS hijacking changes a real record or setting somewhere in the lookup chain, from a device to the domain's nameservers. DNS spoofing, or cache poisoning, plants a forged answer in a resolver's cache so it hands out the wrong address until the entry expires.
Does DNSSEC prevent DNS hijacking?
Only one form of it. DNSSEC signs DNS answers so a resolver can detect a forged response in transit, which stops cache poisoning and on-path tampering. It does not help if an attacker logs into your registrar account with stolen credentials and changes the records legitimately.
Can DNS hijacking affect my home router?
Yes. Malware or a weak router password can change the DNS server settings on a router or a single device, sending every user on that network to attacker-controlled servers. Change the default router password and check the DNS settings if pages start looking wrong.
How do I fix DNS hijacking?
Restore the correct records from a known-good copy, change every password on accounts that can edit DNS, turn on MFA and a registrar lock, revoke any certificates you did not request, and monitor Certificate Transparency logs for new ones.
Is DNS hijacking illegal?
Yes. Changing someone else's DNS records without permission is unauthorized computer access and fraud in most countries, and it can be prosecuted under computer misuse and wire fraud laws.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against CISA's DNS tampering guidance and Emergency Directive 19-01, Cloudflare's DNSSEC documentation and RFC 4033.
How we write and fact-check →