Outstanding hosting from just $2.95/mo Free site transfers on most plansVisit Siteground > X

4 Reasons To Have Private Nameservers (And Other Important DNS Facts)

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more

If you have a web hosting account, you've probably come across mentions of nameservers.

But even if you've had to deal with nameservers when managing your hosting account, your web host probably didn't explain what they are or how they work.

Nameservers are provided by web hosts, and they're key to your website being visible on the web.

Most nameservers provided by hosts look something like ns1.yourhostdomain.com. You'll normally be given two different nameservers. Setting up nameservers usually only takes a few seconds once you have the right information.

But what do nameservers actually do behind the scenes, and why is it crucial to get them right?

Let's look at the basics of how nameservers work.

What Is a Nameserver?

Every website in existence has an IP address, which is how computers look them up. But to make it easier on us humans, we can get to websites by using domain names instead.

Nameservers are part of DNS, which stands for "Domain Name System." The DNS is a database that works like a phone book for computers: it converts a domain name, such as "www.example.com," to a machine-readable IP address, such as "" The DNS is maintained by several organizations, including IANA (Internet Assigned Numbers Authority) and ICANN (Internet Corporation for Assigned Names and Numbers).

Whenever you type a domain into your browser, nameservers provide the IP address of the domain to your browser. If the DNS didn't exist, you'd have to memorize strings of numbers for every website you wanted to visit.

In a nutshell, a nameserver is any server that has DNS software installed on it. But usually, "nameserver" refers to a server owned by a web host that is specifically used to manage the domain names associated with their web hosting customers.

When it comes to your own domain, your domain's nameservers are used to point any traffic that types in your domain name to a specific web server at a specific web host.

Here's how it would work when you visit your own website, let's say www.example.com:

  1. You type "www.example.com" into your browser.
  2. Your browser uses DNS to look up the nameservers for www.example.com.
  3. The nameservers ns1.yourhostdomain.com and ns2.yourhostdomain.com are retrieved.
  4. Your browser uses the nameservers to look up the IP address for www.example.com.
  5. Your browser gets the response: ""
  6. Your browser sends a request to, including the specific page you're trying to reach.
  7. The web server hosting your website sends the requested page to your browser.

Your Site and Its Nameservers

The entire above process can take less than a second, so the majority of your visitors will never be aware of the nameservers you use for your site unless something goes wrong. Machines read them often; humans rarely need to.

In many cases, you may not ever need to know or mess with the nameservers for your website. But if you register your name with a different company than you host your website with, you'll need to set your nameservers for your domain to point to your web hosting account.

Once you change nameservers, it can take up to 48 hours to go into effect, though it typically takes about 4-8 hours in most cases. This delay is called "DNS propagation," and exists because it takes time for each DNS server to update other servers around the world about the change.

On a wider point, you may encounter problems if you share nameserver information with spammy domains, although the jury's out on the extent of the damage that it causes.

Registering Your Own Nameservers

If you resell hosting space, you can normally register your own nameservers to avoid giving third party details to your clients. Nameservers that are your own and associate with a single domain, instead of with a web hosting company, are called "private nameservers."

Having private nameservers if beneficial for a number of reasons:

  • They effectively cloak the fact that you're a reseller, allowing you to completely rebrand your hosting under your own domain name.
  • They can also make it easier for your clients to remember your nameservers if they're the same as your main domain.
  • It can provide a greater sense of security to your hosting customers to have the same domain for both your website and nameservers.
  • You can more easily change your own hosting provider without requiring all your customers to update their nameservers.

Most hosting companies will tell you how to register nameservers with your registrar. In short, you need the IP addresses for each nameserver given to you by your host, plus the subdomains they recommend (normally these will be ns1 and ns2).

Once propagated, your nameservers will work in exactly the same way as your host's.

You can read Hostgator's guide or in the cPanel knowledgebase for detailed step by step instructions.

Claire Broadley

About Claire Broadley

Claire has been creating websites for over 20 years and has been using WordPress for over ten. She is an expert in web hosting, design, HTML, and more. She lives with her husband and son in the United Kingdom.


Thanks for your comment. It will show here once it has been approved.

Your email address will not be published. Required fields are marked *



June 27, 2016

Explained what a name server is and how domains are translated into IP addresses very nicely.



August 11, 2016

Very nice article’.



May 15, 2018

that was such a nice explanation.
thanks a lot.



June 28, 2018

thank you it`s the most useful article in this point :)



January 14, 2019

For me, as a relative noobie to the web hosting world, this was a very clear and concise description of the function of Name Servers. Thanks Claire.


sameer khan

February 11, 2019

Is it possible to change name server of any website and link it to own hosting



May 9, 2019

THANK YOU for explaining this! It was one of the dozens of questions I have about building my website with a host, while using a domain from another site. I’m learning little by little! :)


Nina Ward

May 12, 2019

Thanks. This article explains very clearly what I needed to know.


Justin shiju

July 2, 2019

Can we use the same name server to build diffrent websites .


Toni Allen

July 5, 2019

Yes, there can be more than one website using the same nameservers. (In fact, there are often many 1000s of websites using the same nameservers).



December 3, 2019

Thank you for that explanation! So, if my website name was is registered with GoDaddy, do I need to change the name server to the company that’s hosting my site?