How to Find Your Nameservers

Your nameservers decide which DNS provider answers queries for your domain. You need to know them before you move DNS hosts, debug a delegation problem, or simply confirm where your records live. This guide shows three reliable ways to find your nameservers and how to read the result.

What nameservers are

Nameservers are the servers that hold your domain's DNS records and answer queries for them. When someone looks up your domain, the registry points them to your nameservers, and those servers return your A, MX, TXT, and other records. Finding your nameservers tells you which DNS provider is authoritative for the domain. For background, see what is a nameserver.

The nameservers themselves are published as NS records, so finding them is really a matter of reading those records or the matching registry delegation.

Find them with a WHOIS lookup

A WHOIS lookup reports the nameservers the registry has on file for the domain. On macOS or Linux the command is built in:

whois example.com

Look for the lines labelled Name Server. This is the registry's view of your delegation, which is the source of truth for where queries are sent. For a full walkthrough of reading the output, see our guide on how to perform a WHOIS lookup.

Find them with dig or nslookup

To read the NS records published in the zone itself, query them directly. With dig on macOS or Linux, use +short for a clean list:

dig +short NS example.com

On Windows, nslookup does the same job:

nslookup -type=NS example.com

Both return hostnames such as ns1.example-dns.com and ns2.example-dns.com. The provider in that hostname is usually a strong clue to who runs your DNS.

Find them in your registrar dashboard

If you prefer a graphical view, log in to the registrar where the domain is registered. The nameservers are listed under a section usually labelled Nameservers, DNS, or Delegation. This is also where you would change them.

If you are not sure which registrar holds the domain, a WHOIS lookup names it in the Registrar field, so you know exactly where to log in.

What to do next

Once you know your nameservers, you can confirm your records are hosted where you expect, plan a migration to a new DNS provider, or hand the details to a colleague troubleshooting an issue. Keep in mind that nameservers are a prime target for hijacking, so an unexpected change is worth investigating immediately.

ZoneWatcher's nameserver monitoring watches your delegation and alerts you the moment your nameservers change, so you never have to rely on spotting it by hand.

Never miss a DNS change again.
Start monitoring in minutes.