What are nameservers?

Nameservers are the servers that hold a domain's DNS records and answer the question of where its website and email live. Every domain lists at least two, such as ns1.host.com and ns2.host.com. Changing them moves control of the domain's DNS to another company.

By SastiDomains · updated 2026-11-23

Check a name.com for Rs 99 with the Rs 10,000 website bundle, Rs 2,199 on its own.

Nameservers vs DNS records

The nameservers are where the records are kept. The DNS records (A, CNAME, MX, TXT) are the entries themselves: which server shows the website, which one receives email. Change the nameservers and the internet starts reading a different set of records. Our guide “DNS records explained: A, CNAME, MX and TXT” covers each record type.

How to find a domain's nameservers

A WHOIS lookup lists them. Type the name at the WHOIS lookup, or use the DNS checker to see the records they serve.

How to change nameservers

You change them where the domain is registered, not at the host.

  • Get the two nameserver names from your hosting company
  • Log in at your registrar, or at PKNIC for a .pk name
  • Open the domain's nameserver or DNS settings
  • Replace the old names with the new ones and save
  • Wait a few hours, up to 48, for the change to spread

.pk domains

A .pk or .com.pk needs working nameservers on its PKNIC record. Our guide “How to change nameservers on a .pk domain” shows where to enter them.

Common questions

What happens to my email when I change nameservers?

Email follows the MX records on the new nameservers. If they are missing there, email stops. Copy your MX records across before you switch.

How many nameservers does a domain need?

At least two, so the domain still resolves if one is down. Hosts usually give you two to four.

Do nameservers affect who owns the domain?

No. They only decide where the DNS is managed. Ownership stays with the registrant on the record.

Can I use Cloudflare's nameservers with a .pk domain?

Yes. Enter the two nameservers Cloudflare gives you in your PKNIC record, the same as for any other host.