How to add CNAME Record in cPanel using the DNS Zone Editor

How to add CNAME Record in cPanel using the DNS Zone Editor

Adding a CNAME Record in cPanel Using the DNS Zone Editor: A Detailed Guide

A Canonical Name (CNAME) record is used in DNS settings to create an alias from one domain name to another. This is particularly useful for associating subdomains with external services, like email servers, or for creating aliases for long or complex URLs. This guide will walk you through the process of adding a CNAME record in cPanel using the DNS Zone Editor.

Understanding CNAME Records

A CNAME record maps an alias name to a true or canonical domain name. When a DNS lookup is performed on the alias name, it returns the canonical name’s IP address. It’s important to note that a CNAME record must always point to another domain name, not directly to an IP address.


  • cPanel Access: Ensure you have the login credentials for your cPanel account.
  • Domain Management: You should have a domain added to your cPanel account and have the authority to modify its DNS settings.

Step-by-Step Guide to Add a CNAME Record

Step 1: Access cPanel
  1. Log in to cPanel: Navigate to or the specific URL provided by your hosting provider.
  2. Enter Your Credentials: Use your cPanel username and password to log in.
Step 2: Open the DNS Zone Editor
  1. Find the Domains Section: After logging in, look for the ‘Domains’ section in cPanel.
  2. Select ‘Zone Editor’: Click on the ‘Zone Editor’ icon or link. This tool allows you to manage DNS records for your domains.
Step 3: Choose the Domain
  1. Select Your Domain: If you have multiple domains, locate the domain for which you want to add a CNAME record.
  2. Manage DNS Records: Click on ‘Manage’ next to the chosen domain to access its DNS records.
Step 4: Add the CNAME Record
  1. Open the Add Record Interface: Click on the ‘+ Add Record’ button or find the section to add a new record, depending on your cPanel version.
  2. Select CNAME Record: Choose ‘CNAME’ from the type dropdown menu.
  3. Configure the CNAME Record:
    • Name: Enter the alias name you want to create. This is typically a subdomain, like www or mail.
    • CNAME: Enter the canonical (true) domain name that the alias should point to.
    • TTL (Time to Live): Set the TTL, which determines how long the record is cached by DNS servers. The default value is usually sufficient.
  4. Add the Record: Click ‘Add Record’ or ‘Save’ to create the new CNAME record.
Step 5: Verify the Record
  1. Check the Record List: The new CNAME record should now appear in the list of DNS records for your domain.
  2. DNS Propagation: Be aware that DNS changes can take some time to propagate, typically up to 48 hours.

Best Practices and Tips

  • Avoid Duplicates: Ensure there are no conflicting records for the same alias.
  • Record Consistency: Make sure the CNAME points to a domain that resolves correctly.
  • Regular Review: Periodically review your DNS settings to ensure they are up-to-date and accurate.


Adding a CNAME record in cPanel’s DNS Zone Editor is a straightforward process that plays a crucial role in domain management and configuration. It’s an essential task for website developers and server administrators, enabling the efficient management of domain aliases and integration with external services. As a professional in a digital agency, understanding and effectively managing DNS settings, including CNAME records, is key to maintaining a robust and reliable online presence.


Previous Post
How to add an MX Record in cPanel using DNS Zone Editor
Next Post
How to change an account password in cPanel