How to Change a Domain’s Nameservers (Point to Another Provider)

How to Change a Domain’s Nameservers (Point to Another Provider)

In this article, you are going to learn how to point a domain to a host by changing the domain’s nameservers. This way, you can move your site to another hosting provider while still keeping the old domain name.

Upgrade your web hosting with Hostinger! There is a plan for everyone.

Get Started

Pointing a Domain to a Host

Let’s say you have just moved your site to another hosting provider. However, your domain name stayed with the old hosting company, and it does not direct visitors to your website.

This problem happens because your domain is not connected to the new web host. You have several options on how to solve this issue, but in practice, we only recommend using one method.

You can transfer the domain to the new hosting provider. However, domain transfer usually includes additional charges as the domain will be renewed for another year.

The second option is to update the domain’s DNS A record with your new IP address. Nevertheless, since A records are designed to point to static IP addresses, it’s advisable not to use this method. If the IP changes, your website will stop working until you update the record.

The last method is changing the domain’s nameservers. This is the most recommended option as you can transfer your domain’s DNS control to the new hosting provider without changing your registrar.

How to Point a Domain to a New Host?

Taking all considerations into account, we are going to show you how to change the domain’s nameservers. Note that we will be using Hostinger as an example, but you can use these steps as an example to point your domain to any web host.

1. Get the New Nameserver Values

First things first, find a list of nameservers from your new hosting provider. The information is usually provided on the company’s documentation page or in the post-purchase email.

If you still can’t find the info, you should contact your hosting provider.

At Hostinger, you can find all DNS-related information in Hosting -> Accounts -> Details.

Searching for account details in hPanel

The list of nameservers often look like this:

Web hosts usually provide two or more nameservers. Take note of all these addresses because you’ll need to enter them into your domain registrar’s control panel.

List of nameservers from Hostinger

2. Apply the New Nameservers Values

The next step of pointing a domain name to a new host is to replace the domain’s old nameservers. Here’s how to do it:

  1. Login to your domain name registrar. Remember, this is the place where you bought your domain.
  2. Look for the option to set your domain’s nameservers. Every registrar has a different way of doing this. However, in general, you can find the appropriate settings on the menu called Domain Management, or Domain Overview, or something along those lines.
    Domains menu in Hostinger's hPanel
  3. In hPanel, go to Domains -> [your domain name] -> DNS. Select the Use my own nameservers option.
    Update nameservers section in Hostinger's Domains menu
    You should see several fields, such as Nameserver 1 (primary nameserver), Nameserver 2 (secondary nameserver), that will most likely be filled with Hostinger’s default nameservers.
  4. Enter the nameservers into the appropriate fields. For example, a nameserver that begins with ns1 should be put into the Nameserver 1 field, if it starts with ns2 to Nameserver 2, and so on.

    NOTE: If you see the Create child nameservers field, you can ignore it.

Keep these tips in mind should there be any difference between the number of nameservers and the number of available fields:

  • If your hosting provider only gives you two nameservers, but your registrar provides you with four or more fields, enter the first two, leaving the other ones empty.
  • If your hosting provider gives you three nameservers, but your registrar only allows you to enter two, use the first two nameservers.

Try to look for the registrar’s Help or FAQ page if you still cannot find the menu to set your nameservers. Alternatively, you can ask Customer Support to add the new nameservers for you.

3. Wait for DNS Propagation

Once the nameservers are set, you need to wait for the changes to take effect. This period is referred to as worldwide DNS propagation.

The process typically takes a few hours, but it can also last up to two days. You might want to flush your DNS cache to speed up the process.


After moving to another web hosting provider, you need to point your domain to a new host to make your site accessible. Luckily, you can easily do that by changing the domain’s nameservers. Simply get the details of your new nameservers, copy it to the domain’s DNS settings, and wait for the DNS to propagate.

The Author


Tomas A. / @tomas

Tomas is a senior customer support agent at Hostinger. Besides providing top-notch technical advice on a daily basis, he likes to create websites and do various coding side projects.

Related tutorials


Brian Verigin Reply

April 24 2018

I appreciate the clarification on setting up Nameservers. I have a number of websites up with different hosting companies over the years. This is always a challenge to the person doing this for the first time. I appreciate the simplicity of your approach ... thanx ~bv


Joshua Orizu Reply

January 17 2020

That was quite helpful. it was self explanatory and straight to the point. thanks so much for the information.


Paul Reply

February 05 2020

THAT's a good article! Thank you for your simplicity and clarity!


Josh Reply

April 17 2020

A client has purchased several domains with one provider, but has a website hosted with another provider. The domains have all been configured to redirect to the main .com for the website, and the nameservers for the main .com domain have been changed to the host nameservers. What is unclear is whether the nameservers for the remaining domains (that are being redirected anyway) need to have their nameservers changed as well to the nameservers of the hosting provider.


    Andrius S.

    Replied on April 21 2020

    Hey Josh, If you are redirecting the domains to the main one, it is not necessary to change their name servers.


Victor Westmann Reply

May 01 2020

Hi everyone. Thank you for the article. I just registered my domain in namecheap and just want to update my DNS in there (namecheap) so it can point it to my Hostinger address so I can start working on my website here now. How can I do it? I read the article but it is not clear to me. Thank you!


    Andrius S.

    Replied on May 02 2020

    Hey, Victor, glad to have you on board. You can follow this tutorial on how to change point your domain to Hostinger.


gopichand Reply

July 03 2020

Really, this gave me a lot of clarity. I am a new developer and I am stuck with this issue and this man cleared all my doubts. Thank You.


herman ladra Reply

August 17 2020

how to secure your website name or address so no one and take it? is it called domain name? my host is here i have several names under it. sorry im not the tech person.


    Tomislav T.

    Replied on November 06 2020

    Hey there Herman. In order to secure a domain name you will need to first buy it here. After that just set it up via your Hostinger dashboard, and other people can't take it! :)


Riddhi Reply

October 17 2020

Here I nice experience for my cloud server .



    Replied on February 02 2021

    Happy to hear that, Riddhi!


Keith Doyle Reply

December 03 2020

So if you update your registrar's name server configuration for your domain to point to new nameservers, don't you have to somehow remove the domain configuration records from the original nameservers? Or will they just go away automatically?



    Replied on February 09 2021

    Hi there, Keith! Your nameservers determine where your DNS zone is active. So if your nameservers are pointing to a new provider, the DNS zone from the old provider will have no effect.


Pankaj Sharma Reply

December 18 2020

I have a website running on Godaddy, domain name is also from Godaddy. I use Cloudflare for Free SSL certificate. I also have a Hostinger Hosting plan, I want to migrate my website to Hostinger. To do so, I have already moved all the files, crerated and updated the Mysql database info in wp-config. The problem is, since my DNS is managed by Cloudflare, I can't change the Name Servers of my domain name. If I do so, I will loose my SSL cert. Someone in community told me to just update the A records to match that of my Hostinger hosting. I did that as well, but still getting Errr 525. Can you please guide me, as to what should I do so my website migrates successfully? My website is Cheers



    Replied on February 09 2021

    Hi there! I see that your website is loading well now, but just in case any other visitor has the same error 525 - please make sure to check your SSL/TLS settings from If you have an SSL cerificate setup from our side, it should be FULL. If you do not have an SSL from our side, the setting on Cloudflare should be FLEXIBLE.

Leave a reply




This site uses Akismet to reduce spam. Learn how your comment data is processed.

Become a part of Hostinger now!

More in DNS, Domain
How to point domain name to Hostinger
How to Point a Domain Name to Hostinger