A domain’s nameservers decide who answers for every one of its DNS records. Change them, and you control the website, the email and every subdomain. That is why a nameserver change is the change worth knowing about first.
Why nameserver changes matter
In early 2019 the US Cybersecurity and Infrastructure Security Agency warned that attackers had used stolen DNS account logins to change records, including NS records, and sent web and mail traffic through their own servers. Because they controlled DNS, they could also get valid certificates for the domains, so visitors saw no browser warning (CISA Emergency Directive 19-01).
Most nameserver changes are not attacks. A client moves DNS to Cloudflare, an agency rebuilds a website, a registrar migration resets the defaults. But each of these can break email or the website if nobody plans for it, and you want to hear about it the same day either way.
How to check a domain’s nameservers
From any machine:
dig NS example.com +short
From Windows PowerShell:
Resolve-DnsName example.com -Type NS
Record the result. The nameservers usually show who hosts the DNS: *.ns.cloudflare.com is Cloudflare, *.domaincontrol.com is GoDaddy, *.awsdns-* is Amazon Route 53.
What a legitimate change looks like
| Sign | Probably planned | Investigate now |
|---|---|---|
| Who knew | A ticket, a project or the client told you | Nobody can explain it |
| New nameservers | A provider the client uses | An unknown provider |
| Records after the change | MX, SPF, DKIM and DMARC match the old values | Mail records are missing or different |
| Registrar | Unchanged | Also changed, or the transfer lock was removed |
A registrar change at the same time is a stronger warning sign. A domain with clientTransferProhibited set cannot be transferred until that lock is removed (ICANN EPP status codes).
Getting an alert
Checking by hand works for one domain. For dozens, you need something that checks every domain on a schedule and compares the result with the last one.
Watchvera raises a critical alert when a domain’s nameservers or registrar change, shows the old and new values, and keeps the history. A failed lookup is never treated as a change, so a short DNS outage does not trigger a false alarm. See domain hijack monitoring.
What to do when you get one
- Check whether a planned change explains it.
- If not, log in to the registrar and check the account’s recent activity and users.
- Change the registrar password and confirm multi-factor authentication is on.
- Set the nameservers back, and check MX and email security records afterwards.
See how Watchvera handles this: Domain hijack monitoring.