NS (Nameserver) hosting is a DNS service that manages the mapping of domain names to IP addresses. It allows users to host DNS records for their domains, enabling proper routing of web traffic, emails, and other online services.
NS hosting is required to:
When a user types yourdomain.com in a browser:
If you own a domain (yourdomain.com), you need to set up NS hosting to manage its DNS records.
Your domain registrar or hosting provider will give you default nameservers.
Example Nameservers from a Hosting Provider:
ns1.examplehosting.com
ns2.examplehosting.com
To find your current nameservers, use:
dig NS yourdomain.com +short
nslookup -type=NS yourdomain.com or checking the DNS section in your domain registrar's control panel.
If you want to use a different DNS hosting service, you need to update the NS records at your domain registrar.
For Any Domain Registrar:
Example Update:
Old:
ns1.oldhost.com
ns2.oldhost.com
New:
ns1.newhosting.com
ns2.newhosting.com
Tip: Use WhatsMyDNS to check NS propagation globally.
Once your NS hosting is set up, manage your DNS records to connect your domain to your website.
Common DNS Records You May Need to Add:
| Record Type | Purpose | Example |
|---|---|---|
| A Record | Points domain to an IPv4 address | yourdomain.com > 192.168.1.10 |
| AAAA Record | Points domain to an IPv6 address | yourdomain.com > 2001:0db8:85a3:: |
| CNAME Record | Alias for another domain (points to another name) | www.yourdomain.com > yourdomain.com |
| MX Record | Directs emails to a mail server | mail.yourdomain.com > 10 mailserver.com |
| TXT Record | Used for verification & security (SPF, DKIM, DMARC) | v=spf1 include:_spf.google.com ~all |
@ (for the root domain) or leave blank in some panels192.168.1.10If your domain is not resolving correctly, check the following:
Run:
dig NS yourdomain.com +short
If recent changes don’t appear, flush the cache on your local machine:
Windows
ipconfig /flushdns
Linux (systemd-resolved)
sudo systemd-resolve --flush-caches
macOS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Use:
dig A yourdomain.com
or visit WhatsMyDNS.
| Task | Steps |
|---|---|
| Find your nameservers | Use dig NS yourdomain.com +short or check registrar panel |
| Change nameservers | Update NS at your domain registrar; wait 24-48 hours |
| Configure DNS records | Add A, CNAME, MX, TXT records in the NS hosting panel |
| Check if DNS is working | Use dig A yourdomain.com or online tools |
| Troubleshoot issues | Flush local DNS cache, check global propagation, verify NS records |
Now you understand how NS hosting works and how to configure it for your domain!