Adding an NS Record
Last Updated: March 2026
2 min read
An NS record is used to point a subdomain to a set of nameservers. NS records should only be used for subdomains and not the main domain. If you wish to point the main domain to a set of nameservers, please refer to the Changing Nameservers guide instead.
NS records are appropriate to use when you want to use different nameservers for a subdomain — resulting in the main domain and subdomain having different sets of nameservers.
Example NS Records
| Type | Host | Answer | TTL |
|---|---|---|---|
| NS | shop.example.com | ns1.shophost.com | 300 |
| NS | shop.example.com | ns2.shophost.com | 300 |
Note: To set up DNS records through your registrar, you need to be using their nameservers so they can manage and host your DNS for the main domain.
Steps to Add an NS Record
- Log in to your domain registrar account.
- Navigate to your domains list.
- Click on the domain name you wish to create NS records for.
- Click Manage DNS Records.
- Here you will add the desired NS record, provided by your host. You would create at least two records since you need a minimum of two nameservers for it to resolve.
First NS Record
- Select NS in the Type drop-down menu.
- Enter the subdomain in the Host field.
- Enter or copy+paste the nameserver into the Answer field.
- Leave TTL as 300 (default).
- Click the Add Record button.
Second NS Record
- Follow the same steps as the first record, but add the second nameserver in the Answer field.
Once the records are created, the domain should be working within 24 hours.
Tags:
dns
ns record
nameservers
subdomain
domains