February 4, 2019
6 min Read
February 4, 2019
6 min Read
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:
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.
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:
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.
As you can see, each nameserver has a corresponding IP address. However, in most cases, you will need only the names, so copy them.
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:
Instructions for changing nameservers at major registrars:
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 220.127.116.11 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.
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:
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.