Skip to Content
DomainsConnect a domain to your services

Connect a domain to hosting or a server

After you register a domain and activate your hosting, the internet doesn't automatically know that this domain belongs to that hosting. You need to make the domain point to it, in one of two ways:

  • Change the name servers (NS): this moves management of all the domain's records to the new provider. It's the recommended method for shared hosting, because cPanel then creates the website and email records automatically.
  • Add A and CNAME records: this keeps your records with your current provider and only changes where the website points, to the IP address of the hosting or server. It's the usual method for VPS servers, and for anyone who wants to keep their email with another provider.
Before you start

First find out where your domain's records are currently managed: they are with whichever provider the domain's current name servers point to. Changing records anywhere else will have no effect.

Open the hosting activation message from the Instructions button on the Shared Hosting page, and copy the name servers listed in the Name server section.

Make sure the domain has been added to the hosting account: the domain you entered when ordering the hosting is added automatically as the primary domain, and you can add any extra domain from the Domains interface in cPanel.

Change the domain's name servers to the ones you copied:

  • If the domain is registered with Illevante: from the NS page.
  • If it's registered elsewhere: from that provider's control panel, in the section for name servers (Nameservers).

Wait for propagation. The activation message notes that the domain may take from 2 to 24 hours to start working, and a name server change can sometimes take up to 48 hours.

If your email is with another provider

When you change the name servers, the hosting zone's records become the authoritative ones, including the MX records that route email to the hosting. If you use email with another provider, add that provider's MX and TXT records in the Zone Editor in cPanel before you change the name servers, or immediately after.

Alternative: an A record only

If you'd rather keep your records with your current provider, add the following there:

  • An A record for the domain itself (@) pointing to the server IP address given in the activation message.
  • A CNAME record for www pointing to example.com (or a second A record with the same address).
Warning

The IP address of shared hosting may change for technical reasons. With this method, your record won't update automatically, and your website may stop working until you edit it manually. That's why the activation message recommends using Illevante's name servers.

Check the result

After making the change, check what DNS returns for your domain using one of the following commands (replace example.com with your domain):

nslookup example.com
dig example.com +short
dig NS example.com +short
  • The first command should return the IP address of your hosting or server.
  • The dig NS command should return the new name servers if you changed them.

If you see the old result, the change hasn't yet reached the server you're asking. See DNS propagation and how to check it.

Common issues

How is this guide?

On this page