An NS record (Name Server record) is a DNS entry that tells the internet which servers are authoritative for your domain's zone, meaning which servers hold the actual DNS records (A, MX, TXT, and so on) for your domain. It's easy to confuse this with the "nameservers" setting at your domain registrar, but they're not quite the same thing, and understanding the difference helps you troubleshoot DNS issues faster.
What an NS record actually does
Every domain's DNS zone contains one or more NS records. These records point to the hostnames of the nameservers that answer DNS queries for your domain, for example ns1.yourhost.com and ns2.yourhost.com. When someone's computer looks up your website, it follows a chain: it asks the root DNS servers who is authoritative for your domain, gets back your NS records, then asks those specific nameservers for the actual A or MX record it needs.
NS record vs. nameservers at your registrar: the common confusion
The "nameservers" you set at your domain registrar (sometimes called the domain's delegation) tell the wider internet which nameservers to trust for your domain. The NS records inside your DNS zone should normally match that same delegation. In most cases, if you're using your host's DNS management for everything, you'll never need to touch the NS records directly. They're generated automatically and already match your registrar's nameserver setting.
Where this gets confusing is when the two don't match. If your registrar's nameservers point to one hosting provider, but a DNS zone elsewhere on the internet still has old NS records, visitors can get inconsistent results depending on which set of servers they happen to ask.
If you're trying to point your domain to a new host, update the nameservers at your registrar first. Editing the NS records inside a DNS zone that nobody is actually using to resolve your domain won't have any effect. See What Is a Nameserver and Why Does It Matter? for that process.
How to view the NS records in your DNS zone
If you want to confirm what NS records your zone currently contains, here's where to look.
In cPanel
- Log in to cPanel and open Zone Editor under the Domains section.
- Find your domain in the list and click Manage.
- Look for the rows with a type of NS. These show the nameservers currently listed in that zone.
In DirectAdmin
- Log in to DirectAdmin and open DNS Management.
- Select your domain from the list.
- Look for the records with a type of NS near the top of the zone.
You can also check NS records from outside your control panel entirely, using a command-line tool or an online DNS checker, which is useful for confirming what the rest of the internet actually sees, not just what's stored in your zone.
When would you actually need to edit an NS record?
- You're setting up child nameservers (vanity nameservers) and need the zone's NS records to match.
- You're migrating DNS hosting between providers and need to clean up leftover records.
- Your hosting provider's support team asks you to, usually while troubleshooting a specific delegation issue.
For everyday changes like moving your website or email to a new host, you'll almost always work with your registrar's nameserver settings or individual A, MX, or CNAME records instead, not the NS records themselves.