How to Add a CNAME Record in cPanel

A CNAME record points one name, such as shop.example.com, at another hostname, such as shops.myshopify.com. Services like online stores, email marketing tools and Microsoft 365 often ask you to add a CNAME record. This guide shows you how to add a CNAME record in cPanel using the Zone Editor.

Before you start

  • Your domain must use our nameservers (ns5.instantaccess.net, ns6.instantaccess.net, ns1.fanaticalhosting.com and ns2.fanaticalhosting.com). If your DNS is hosted somewhere else, such as at your registrar or Cloudflare, add the record there instead. Changes in cPanel won't have any effect.
  • Have the two values from the service you're connecting: the name (sometimes called host or alias, for example shop or em1234) and the target (sometimes called value, points to or destination, for example shops.myshopify.com).
  • A CNAME must point to a hostname, not an IP address. If the service gives you an IP address, you need an A record instead. See How to Use the cPanel Zone Editor (A, CNAME, MX and TXT Records).

How to add a CNAME record in cPanel

  1. In cPanel, go to Domains > Zone Editor.
  2. Find your domain in the list. You can click + CNAME Record next to it for a quick form, or click Manage to see the full list of records first. Using Manage is a good idea, because it lets you check that the name isn't already in use.
  3. On the Manage page, click the arrow beside Add Record and choose the CNAME option (or click Add Record and change the type to CNAME).
  4. In Name, type the name the service gave you, for example shop. When you click out of the box, cPanel adds your domain, so it becomes shop.example.com.
  5. In Record, enter the target hostname exactly as the service gave it to you, for example shops.myshopify.com.
  6. Leave TTL at its default unless the service asks for a specific value.
  7. Click Save Record.

The new record usually works within minutes to an hour, but it can take longer for some networks to see it. See DNS Propagation: Why Domain Changes Take Time and How to Check.

Examples of common CNAME records

PurposeNameRecord (target)
Microsoft 365 autodiscoverautodiscoverautodiscover.outlook.com
Hosted store or landing pageshopHostname from the provider
Email marketing sender authentication (DKIM)e.g. s1._domainkeyHostname from the provider

Always copy the exact values from the provider's setup page. They are often unique to your account.

Editing or deleting a CNAME record

  1. In cPanel, go to Domains > Zone Editor and click Manage next to your domain.
  2. Click the CNAME filter at the top of the list to show only CNAME records, or type the name in the search box.
  3. Click Edit next to the record, change the values and click Save Record. To remove it, click Delete and then confirm with Continue.

Troubleshooting

cPanel says the name already exists or the record conflicts

A name can have a CNAME record or other records, not both. Our server automatically creates some names as A records, for example autodiscover, mail, webmail and cpanel. If the service needs a CNAME at one of those names (Microsoft 365's autodiscover is the common one), edit the existing record instead of adding a new one, or delete the A record and then add the CNAME. Don't delete mail, webmail or cpanel records unless you are sure you don't need them.

Can I add a CNAME for my main domain (example.com)?

No. DNS rules don't allow a CNAME on the root of a domain, because the root already holds other records such as NS, SOA and MX. If a service wants your main domain pointed at it, it will usually give you an IP address to use in an A record instead.

I created a subdomain and now my CNAME won't save

When you create a subdomain in Domains, cPanel adds an A record for it. If you want that name to point to an outside service instead, you don't need a subdomain on the Instant Access Internet Services server at all. Delete the subdomain (or its A record) and add only the CNAME.

The service still says my CNAME isn't found

  • Check for a doubled domain. If you typed shop.example.com in Name and cPanel added your domain again, you may have created shop.example.com.example.com. Edit the record so the name is just shop.example.com.
  • Check the target for typos or extra spaces.
  • Wait an hour and try the provider's verify button again.

Related guides

Still stuck? Open a support ticket and the Instant Access Internet Services team will help.

Ultrafast LiteSpeed hosting from InstantAccess.net: free SSL, free backups, cPanel included, no contracts. Check out our $10/month hosting.
  • add cname record cpanel, cpanel zone editor cname, cname record setup, point subdomain to another host, cname already exists error, autodiscover cname
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Use Microsoft 365 or Google Workspace Email with Your Domain

You can keep your website with us and use Microsoft 365 (Outlook) or Google Workspace (Gmail) for...

Our Nameservers: How to Point Your Domain to Your Hosting

To make your website and email work on your hosting account, your domain has to point to the...

DNS Propagation: Why Domain Changes Take Time and How to Check

When you change your nameservers or edit a DNS record, some people see the change right away...

How to Set Up Dynamic DNS in cPanel

Dynamic DNS (DDNS) lets you reach a device on a home or office connection, such as a camera, NAS...

Free SSL Certificates: How AutoSSL and SSL/TLS Status Work

Every hosting account includes free SSL certificates, so your website loads over HTTPS with a...