Connect a Domain to Your Website in cPanel
NOTE. This guide is only applicable for Linux Web Hosting and Business Hosting.
Connecting a domain to your website establishes your domain as the primary web address for your site. This means that when people access your domain on their web browsers, they will be able to view your website.
Whether your domain is registered here or elsewhere, this guide will help you connect your domain to your website in Crazy Domains cPanel.
Two ways to connect a domain to your cPanel website
You can connect a domain to your website in cPanel by either changing the domain's name servers or configuring its DNS (Domain Name System) settings. Refer to the table below to determine the best option for your needs.
Method | Description |
---|---|
Update name servers |
Each domain in cPanel (whether it's the primary domain or an addon domain) has its own set of DNS settings, which by default point to your cPanel services. These DNS settings are stored in the following name servers:
By connecting your domain to these name servers, it will automatically use the DNS settings that point to your cPanel services. This method is the easiest way to point a domain to your website in cPanel. However, if you have existing DNS settings in your current name servers that you don't want to disrupt, this method is not recommended. Instead, consider using the Update DNS settings method. |
Update DNS settings |
This method involves retaining your current name servers while adding the necessary DNS settings to them. This approach is recommended if you want to avoid disrupting other existing DNS settings (for example, DNS settings for email) on your current name servers. |
Update name servers
The easiest way to point a domain to your website in cPanel is to connect your domain to the following name servers:
- ns1.syrahost.com
- ns2.syrahost.com
If your domain name is registered with Crazy Domains, you can follow this guide to change your name servers: How to Change the Name Servers of My Domain.
If your domain is registered with another provider, refer to their support documentation for instructions on updating name servers.
NOTE. To know the current name servers of your domain, look up your domain in WHOis search and locate the Name Servers section on the result.
Update DNS settings
To point a domain to your website in cPanel while retaining your current name servers and simply adding the necessary DNS settings, follow these steps:
Step 1: Find your DNS settings
First, determine where your domain's current DNS settings are managed. This depends on the domain's current name servers. To find the current name servers of your domain, follow these steps:
- Perform a WHOis search. Use a WHOis lookup tool to search for your domain.
- Locate the Name Servers section. In the search results, find the Name Servers section.
After identifying your domain's current name servers, refer to the table below to determine their corresponding DNS management location.
Name servers | DNS settings location |
---|---|
ns1.syrahost.com |
cPanel |
ns1.crazydomains.com |
Account Manager |
ns1.dnspackage.com |
Account Manager |
ns1.premium.exchange |
Exchange Manager |
ns3.premium.exchange |
Exchange Manager |
External (not Crazy Domains) |
On your Name Server provider's portal |
Step 2: Add the A records to your DNS settings
For the specific instructions, select the DNS settings location below that corresponds to the current name servers of your domain.
NOTE
- The term (yourdomain.tld) in the following instructions represents your actual domain name.
- Changes to the Name Servers and DNS records within Crazy Domains will take two to four hours to fully work on the internet. However, some ISPs have their TTL (Time To Live) duration that could override our maximum DNS resolution time. It may cause the changes to take up to 24-48 hours to fully work.
If your domain is connected to ns1.syrahost.com and ns2.syrahost.com name servers, you don't need to configure your A records manually. These records are set up by default in cPanel. However, you can use this instructions to review the settings to ensure they are correct, especially if there have been changes to the cPanel DNS.
- Log in to your cPanel.
- Scroll down to Domains section and click Zone Editor.
- Click the Manage button for the domain you want to modify.
- Review the existing A records of your primary domain (yourdomain.tld) and the www. You should have the following records:
Name TTL Type Record (yourdomain.tld) 14400 A (cPanel IP address) ex. 10.230.40.5 www.(yourdomain.tld) 14400 A (cPanel IP address) ex. 10.230.40.5
Troubleshooting
Problem | Solution |
---|---|
The IP address is not correct. |
You might have changed your A records before. To correct, just click the Edit button on the right side of the record, and change the value of the IP Address. Click Save Record and wait for the changes to take effect. |
The www has no A record but has a CNAME record. |
That's okay. Just ensure the CNAME value of www is (yourdomain.tld), and the A Record of (yourdomain.tld) is pointing to the IP address of your cPanel. |
If your domain is connected to ns1.crazydomains.com and ns2.crazydomains.com or ns1.dnspackage.com and ns2.dnspackage.com name servers, you can update the DNS records in the Account Manager. To do this, follow the steps below:
- Log in to your Account Manager.
- In your Dashboard, look for the Domain Registration for the domain you want to modify.
- Click MANAGE.
- On the next screen, scroll down to the DNS Settings section.
- Click the menu button on the right, and select Add Record.
- Select A Record from the dropdown, and click Add. The editable A Record field will appear.
NOTE. The new DNS entry is located at the bottom of the list.
- Leave the Sub Domain field empty, and enter the IP address of your cPanel in the IP address field.
Record type Sub Domain IP address A Record (leave this empty) (cPanel IP address) ex. 10.230.40.5 IMPORTANT. If there are existing A records for (yourdomain.tld), make sure to delete them by clicking the Delete button on the right of the record.
- Let's add another A record entry by clicking + Add A Record at the bottom of the list.
- This time, put www in the Sub Domain field, and the IP address of your cPanel in the IP address field.
Record type Sub Domain IP address A Record www (cPanel IP address) ex. 10.230.40.5 IMPORTANT. If there are existing A records for www.(yourdomain.tld), make sure to delete them by clicking the Delete button on the right of the record.
- Click Update to save the changes.
IMPORTANT. If there is an existing CNAME record for www.(yourdomain.tld), make sure to delete it after adding the required dns records.
If your domain is connected to ns1.premium.exchange and ns2.premium.exchange or ns3.premium.exchange and ns4.premium.exchange name servers, you can manage the DNS settings in Exchange Manager. Follow the steps below to add the A records for your website in cPanel:
- Log in to your Exchange Manager.
- In the System section, click Domains.
- On the next page, click your domain name.
- Click Edit DNS zone records.
- Click Add record.
- Enter the A record for (yourdomain.tld) below:
Record Type Record Name IP A (leave this blank) (cPanel IP address) ex. 10.230.40.5 - Click Save.
- Repeat Add record and enter the A record for www.(yourdomain.tld) below:
Record Type Record Name IP A www (cPanel IP address) ex. 10.230.40.5 - Click Save.
IMPORTANT. If there are other A records for (yourdomain.tld) and www.(yourdomain.tld) other than the required A records above, delete them as they may cause conflict.
If your domain uses external name servers (not Crazy Domains), you can follow the generic instructions below. For more specific instructions, refer to your DNS provider's support help center or contact them directly for assistance.
- Log in to your DNS provider's portal and find the DNS settings.
- Add the following A records to (yourdomain.tld) and www.(yourdomain.tld).
Host/Name/Alias Record Type TTL IP Address (yourdomain.tld) A 14400 (cPanel IP address) ex. 10.230.40.5 www.(yourdomain.tld) A 14400 (cPanel IP address) ex. 10.230.40.5 - Save the new DNS settings and wait for them to fully work.
IMPORTANT
- Remove or delete any irrelevant A records for (yourdomain.tld) and www.(yourdomain.tld). You should only have the two A records for the domain names above.
- If there is an existing CNAME record for www.(yourdomain.tld), make sure to delete it as well.