The CNAME Record, or Canonical Name, is a type of DNS Record that has the job of mapping a host (subdomain or prefix to the root domain) to another name. Because of CNAME’s, we’re able to connect domains to other domains or services without having to do direct changes to IP Addresses which can often change and disrupt your websites.
There are, however, some restrictions on this type of record:
- CNAME’s must point to a domain name, never to an IP Address.
- If specified for a host, it must be the only record in the DNS zone for that host – having www.epik.com point to store.epik.com means www. can’t be used anywhere else in the DNS zone.
- As a general rule, avoid pointing CNAMEs to other CNAMEs.
Important: For your records to work, your Name Servers should be set to one of the following two options, which determine where you should add the DNS Records:
- ns3.epik.com/ns4.epik.com – DNS is managed on Epik.com Dashboard
- host11.epik.com/host12.epik.com – DNS is managed on cPanel
The numbers may vary on the hosting name servers depending on your hosting plan. This information is emailed to you when you first purchase a plan.
If you have a third-party name servers, the DNS Records should be added on that provider’s end.
Editing CNAME Records in the Epik Dashboard
1. Navigate to your Domain Portfolio.
2. Locate your domain and select it. You can click on the options square menu to reveal the Set DNS Host Records options, or the same option by click DNS & WHOIS in the black top navigation menu.
3. You’ll reach the options page, where you can choose Subdomains (CNAME) to edit them.
4. When set up, click Save Changes.
Troubleshooting – Duplicate CNAME Record Error
Integrating with many services like Shopify, Squarespace or Netlify, you’ll be required to add a www. record, which can trigger the following error message:
Error: “domain.com: The CNAME record www.domain.com could not be created because another type of record already exists for www.domain.com.”
If this happens, it means that this host is already in use – to fix it you’ll need to delete all the other records with that particular host leaving only the CNAME. This means, in the www. example, you’d need to delete the www. host records in the CAA and A Records sections, which are set by Epik by default.
Editing CNAME Records in cPanel
First, log in to your hosting plan’s cPanel – you can check out this guide to learn how to access it directly.
- Inside cPanel, navigate to Zone Editor, under the Domains section.
2. Once inside the Zone Editor page, click Manage next to the domain options to see the full list of records.
3. Here, you can use the Filters below the search bar to see only CNAME Records. You can then click + Add Record to add a completely new record by type, and/or click Edit next to the relevant record you wish to change.
4. When ready, click Save Record or Save All Records.