For visitors to access your website, it needs to have an address – a domain name. If you’ve registered a domain name at Hostinger, it’s automatically pointed to your hosting account and no further actions are required. However, if you’ve decided to use a domain name that’s registered with a 3rd party registrar, you’ll need to point it to your Hostinger server.
There are two main ways to point a domain name to Hostinger:
- By changing the nameservers at your domain name registrar. This method is recommended since your DNS zone will be configured automatically. By pointing the domain name to Hostinger nameservers, you’ll be able to administrate the DNS zone at Hostinger’s control panel.
- By pointing the domain name via A record. This method requires more technical knowledge, since you’ll have to manually change the DNS records. Moreover, your DNS zone won’t be automatically updated. For example, if you create a subdomain name at Hostinger, you’ll have to create an appropriate A record in your DNS zone manually.
IMPORTANT: This tutorial shows how to point a domain name if it’s NOT registered with Hostinger. For general tutorial, showing how to point a domain name to any other provider, click here.
What is DNS?
The DNS (Domain Name System) converts an easy to remember address to a physical IP address. It’s like a phone book of Internet. For example, when you type in www.hostinger.com in your browser, the DNS system converts this address to the actual IP address where our website is hosted.
What is a DNS Zone?
DNS zone is a file which contains all DNS records for a specific domain.
What is a nameserver?
Nameserver stores the DNS server records for your domain. Nameservers are responsible for providing the IP address of the domain name. It allows you to access websites by using domain names instead of IP addresses. By changing nameservers, you can point a domain name to a different hosting provider.
What is an A record?
A record is the most basic, yet most commonly used DNS record. A record maps a domain name or a subdomain to an IP address. It’s used to point a domain or a subdomain to an IP address when the IP address is known and permanent.
What is an MX record?
The MX (mail exchanger) record is an entry in DNS zone which specifies the mail server that is responsible for receiving email messages. For example, if you set Google’s MX record for your domain name, any email sent to your domain name will be routed to Google’s servers.
IMPORTANT: Before starting this tutorial, take into account that DNS changes can take up to 24 hours to fully propagate worldwide.
Table of Contents
What you’ll need:
- Access to Hostinger’s control panel
- Access to your domain name registrar
Option 1 – Changing Domain Nameservers (Recommended)
This option is recommended since your DNS zone will be auto-configured. It means that you won’t have to change any individual DNS records at your registrar. In order to point your domain to Hostinger nameservers, follow these steps:
Step 1 – Finding Hostinger Nameservers
First of all, you need to find out the nameservers for your account. At Hostinger, you can easily find them at Hosting Account Control Panel -> Details section, under Nameserver Details panel.
IMPORTANT: Depending on your country, the nameservers for your Hostinger account may differ.
At Hostinger, we use four nameservers in order to ensure stability and maximum connectivity. So if one nameserver failed, others would resolve the requests.
As you can see, each nameserver has a corresponding IP address. However, in most cases, you will need only the names, so copy them.
Step 2 – Changing The Nameservers
Once you have the nameservers, you can change them at your domain name registrar. A registrar is a company that manages domain name registrations. In simple words, it’s a company where you have registered a domain name. If you’ve forgotten the name of the company where you’ve registered the domain name, use whois lookup.
Process of changing nameservers on various registrars is quite similar:
- Log in to your registrar’s control panel.
- Find the DNS change option. Depending on the registrar, it can be named differently. Most common names contain: DNS editor, Manage DNS Settings, Change Nameservers, DNS Details.
- Delete all values from the nameserver fields and input Hostinger nameservers. Save changes.
- Allow up to 24 hours for DNS to fully propagate worldwide.
Instructions for changing nameservers at major registrars:
- Access your GoDaddy account.
- Click on User Icon which is located at the top-right corner.
- Now hit Manage button near Domains.
- Click on Gear icon and choose Manage DNS.
- Click Change under Nameserver.
- From the dropdown menu select Custom and enter Hostinger’s nameservers.
- Once you are done press Save button and allow up to 24 hours for changes to take affect.
- Access FastDomain Control Panel.
- Hit the Domains tab along the top.
- Choose the domain name you want to point and put a tick next to it.
- Now click Name Servers tab on the right.
- Choose Use Custom Nameservers.
- Enter Hostinger’s nameservers.
- Hit Save Nameserver Settings button and allow 24 hours for DNS to fully propagate.
- Access your eNom account.
- Click My Domains, under Domains menu option.
- Select domain name you want to point.
- Click on DNS Server Settings
- Choose Custom and enter Hostinger’s nameservers.
- Click Save button and allow up to 24 hours for DNS to fully propagate.
- Login to Network Solutions account manager.
- Hit My Domain Names button.
- Select domain name which you want to point to Hostinger and click Change Where Domain Points button.
- Now choose Domain Name Server (DNS) and hit Continue.
- Enter Hostinger’s nameservers and click Continue and then Apply Changes buttons.
- Allow up to 24 hours for DNS to fully propagate.
- Access your Hover control panel.
- Click on Your Account and choose Domains.
- Click Edit button next to the domain name you want to point to Hostinger.
- Click Edit Nameservers from the menu.
- Enter first two Hostinger’s namesevers and then click + Another Nameserver and add the rest two. Once you are done click Save Nameservers button.
- Allow up to 24 hours for changes to fully propagate worldwide.
- Access your 1&1 account click on Domain Center.
- Choose the domain name you want to point to Hostinger.
- In the DNS Settings tab click Edit.
- Choose Other name servers.
- Enter Hostinger’s namesevers. You will have to click Additional name servers for additional fields to appear.
- Hit Save button to apply changes and allow up to 24 hours for DNS to fully propagate worldwide.
- Access your Name.com account and select the domain name you want to point to Hostinger.
- In the Nameservers tab click Delete All in order to remove your current namesevers.
- Use Add Nameserver field and Add all four Hostinger’s nameservers.
- Hit Apply Changes and allow up to 24 hours for DNS to fully propagate.
Option 2 – Pointing a Domain Name via A Record
Step 1 – Changing A Record
If you want to keep your DNS zone at your domain’s registrar, you’ll have to change the domain’s A record (Address Record). A record maps the domain name to the appropriate IP address and is used to locate the server from the name, so that you would not have to enter the IP address every time you wanted to open your website.
The IP address for your Hostinger account can be found on the same Details section as your nameservers:
In most cases you will have to create two A records for your domain name: one with www subdomain and one without. For instance, if you have a domain name example.com and you want to point it to 126.96.36.199 IP address, you will have to create the following A records:
It’s also possible that your www subdomain is pointed via CNAME record. In this case, you would have to change only the A record for your root domain name:
Dont’ worry if you see a slightly different view at your registrar, just create values that have a similar look to the ones shown above or edit the already existing records to match your new IP address.
- Name – your domain name or the subdomain you want to point.
- TTL – short for Time to Live. Time to Live determines the period of time, after which, the server refreshes its DNS related information. The default value of most providers is 14400 seconds.
- Type – record type.
- Address – IP address to point a domain name to.
Step 2 – Changing MX Record for Email
If you have pointed your domain name to Hostinger via A record and want to use Hostinger servers in order to receive emails, you’ll have to change the MX record (Mail Exchanger) accordingly. MX record determines the incoming mail server, which receives emails sent to your domain name.
At Hostinger, the MX record can be found in Details section, under E-mail Details panel.
In most cases, you should be able to set the MX record in the same section. Setting the MX record is similar to setting the A record, simply change the address value to match your Hostinger’s account address:
- Name – your domain name.
- Priority – this field is used to determine which address should be used to receive the emails if you have more than one MX record. The lowest number represents the highest priority.
- Type – record type.
- Address – destination / address of the server, responsible for receiving emails.
By finishing this tutorial, you have learned two ways to point your domain name to Hostinger. Once DNS propagation is complete, your website will be easily accessible worldwide.