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.
Knowing how to point a domain to Hostinger is important if you’re using our server but bought the domain from somewhere else. Keep on reading as this tutorial will show you how to connect the name to our service.
Before starting this tutorial, take into account that DNS changes can take up to 24 hours to fully propagate worldwide.
How to Point a Domain Name to Hostinger
Pointing a Domain to a Host – How to Change a Domain Nameserver In Hostinger
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. – How to Change a Domain Nameserver In Hostinger
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.
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.
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:
- Login to your domain name registrar. Remember, this is the place where you bought your domain.
- 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.
- In hPanel, go to Domains -> [your domain name] -> DNS. Select the Use my own nameservers option.
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.
- 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.
Conclusion – How to Change a Domain Nameserver In Hostinger
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.
There are two main ways to point a domain name to Hostinger:
- Changing the nameservers at your domain name registrar. This method is recommended since your DNS zone will be automatically configured to match the hosting’s IP Address. Plus, it enables you to transfer the control of your domain settings to our hPanel, making management convenient.
- Pointing the domain name via A record. This method requires you to change the IP address connected to the DNS records. That way, your domain control stays in the registrar. Unless you’re sure the IP address is going to be static, this procedure is not recommended.
This guide shows how to point a domain name if it’s NOT registered with Hostinger. For a general tutorial on pointing a domain name to another provider, check out this tutorial.
Upgrade your Web Hosting with Hostinger today! Get a massive – 90% – discount!
Changing Domain Nameservers (Recommended)
The process of changing nameservers on various registrars is quite similar. Here’s what you need to do to point your domain name to Hostinger:
- Find the nameservers for your Hostinger account. You can do this by accessing hPanel’s DNS Zone Editor and scrolling down to find NS (Nameservers). We use four nameservers to ensure stability and maximum connectivity. So if one nameserver failed, others would resolve the requests.
- All nameservers correspond to an IP address, which you can locate by scrolling up to the A (Host) section. While in most cases you only need the names, some registrars may require the IP as well.
- Log in to your domain registrar’s control panel. If you’ve forgotten the name of the registrar’s company, use whois lookup.
- Go to the DNS Zone Editor. Depending on the registrar, it can be named differently. The most common ones are DNS editor, Manage DNS Settings, Change Nameservers, DNS Details, etc.
- Delete all values from the nameserver fields (if any) and input Hostinger’s nameservers. Save changes.
Allow up to 24 hours for DNS to fully propagate worldwide.
Pointing a Domain Name via A Record
As mentioned earlier, it’s an alternative you can try if you wish to keep the control of your DNS zone at your domain’s registrar. It consists of two primary steps:
Step 1: Changing A Records
A Record maps a domain name to its appropriate IP address. Therefore, if you want to point your domain name to Hostinger, you can modify these records by replacing the old IP address with the one from Hostinger.
In most cases, you have to create two A records for your domain name: one with the www subdomain and one without.
For instance, if you have a domain named yourdomain.com and want to point it to 22.214.171.124 as its IP address, you need to create A Record entries that look like this:
It’s also possible that your www subdomain is pointed via the CNAME (alias) record. In that case, you only have to change the A record for your root domain name.
Don’t worry if you see a slightly different view at your registrar. Just fill in the values that look similar to the ones shown above. Each field stands for: – How to Change a Domain Nameserver In Hostinger
- Name/Host – the domain or the subdomain you want to point to. Some registrars use @ symbol instead of a name to represent the root domain.
- TTL – short for Time to Live. It determines how long the server caches DNS-related information before refreshing it. The default value is usually 14400 seconds (4 hours).
- Type – record type.
- Record/Address – the target IP address.
Step 2: Changing MX Record for Email
MX record specifies mail servers that handle incoming emails. If you want to use Hostinger servers to receive emails sent to your domain, you need to change your domain’s MX record.
At Hostinger, the MX record can be found in DNS Zone Editor as well.
Take note of the mail server’s address. After that, open your domain’s MX record and replace the old mail server:
- Name – your domain name.
- Priority – if you have more than one server, this field determines the priority of each server. The lowest number represents the highest priority.
- Type – record type.
- Address/Points to – destination/address of the server responsible for receiving emails.
Conclusion – How to Change a Domain Nameserver In Hostinger
By finishing this tutorial, we have learned the two ways to point a domain name to Hostinger. The first is by changing the nameservers, and the second is by changing your registrar’s A Record.
We recommend the first option as it automatically sets your domain with our IP Address so you don’t have to go to another hassle if it changes one day.
So what do you think? Which method will you choose? Let us know in the comments below!