Foxcolab

Glossary

DNS hijacking

Definition

DNS hijacking: Redirecting a domain's traffic by tampering with its DNS, usually by changing its name servers or records after taking over the registrar or DNS host account, so web visitors and email go to servers an attacker controls.

Also known asDNS redirection attackDNS infrastructure tamperingdomain hijacking

In short

DNS hijacking is redirecting a domain's traffic by tampering with its DNS: changing the name servers that answer for it or the records they return. The usual route is a stolen login at the registrar or DNS host. An attacker can then point your website and MX records at servers they control, receive your mail and get valid certificates. Registrar locks, two-step verification and record monitoring stop most of it.

Key takeaways

  • The common route is a stolen registrar or DNS host login, not a technical exploit.
  • Changing NS or MX records lets an attacker receive your domain's mail, including password reset emails.
  • CISA's response to a hijacking campaign was to audit records, change passwords, add multi-factor authentication and watch certificate logs.
  • Registrar locks make the registry refuse transfers or updates until the lock is lifted.
  • It differs from cache poisoning, which forges answers in a resolver, and from subdomain takeover, which abuses forgotten records.

Last reviewed 5 December 2026 by Foxcolab Team

DNS hijacking is redirecting a domain's traffic by tampering with its DNS: changing the name servers that answer for it, or the records they hand out. Visitors type your real address and land on an attacker's server. Mail sent to your domain goes to an attacker's inbox. Nothing looks wrong from the outside, because the domain name is genuine.

How it usually happens#

It rarely takes a clever exploit. In 2019, CISA ordered US federal agencies to act after a hijacking campaign (Emergency Directive 19-01). The attackers began by "compromising user credentials, or obtaining them through alternate means" for accounts that could change DNS. They then altered "Address (A), Mail Exchanger (MX), or Name Server (NS) records," obtained valid certificates for the victims' domains, and "redirected and intercepted web and mail traffic."

A worked example: an attacker phishes the registrar login for example.com and changes its NS records to servers they run. They copy every record except MX, which points to their own mail server. The website still works. But every email to example.com reaches them first, including password reset emails from every service your team signed up for with a company address. That's how one DNS change becomes many account takeovers.

DNS hijacking is different from cache poisoning, where forged answers are planted in a resolver's cache (the problem DNSSEC addresses), and from subdomain takeover, which exploits records you forgot to remove.

How to protect your domain#

CISA's directive is a good checklist for any company:

  • Audit your DNS records and know what each one should say.
  • Change the passwords of every account that can edit DNS, and remove old users.
  • Add multi-factor authentication at your registrar and DNS host.
  • Watch certificate logs. CISA told agencies to monitor certificate transparency logs "for certificates issued that they did not request."

Then lock the domain. ICANN explains that the registrar lock clientTransferProhibited "tells your domain's registry to reject requests to transfer the domain," and clientUpdateProhibited does the same for updates. Some registries also offer a stronger registry lock through your registrar.

In Foxcolab#

On a verified domain in your account console, select DNS records, then Check records. Foxcolab looks up your MX, SPF, DKIM and DMARC records and marks each Found or Not found yet, with the time of the check. If Foxcolab's mail server disappears from your MX records, that record shows Not found yet, and what Foxcolab found instead appears under We currently find. A change you didn't make is a reason to check your registrar account straight away. Protect the owner and admin accounts with Two-step verification, and see Domain not verifying? for the lookups.

Foxcolab for enterprise or talk to sales.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to