Skip to main content

How to Add or Change a CNAME Record in cPanel Zone Editor

You can add or modify a CNAME (Canonical Name) record to point one domain or subdomain to another domain or hostname using the cPanel Zone Editor. This task is performed by an account user and is used to create aliases for your web addresses.

Before you begin

You will need:

  • A cPanel account with permissions to manage DNS records.

  • The destination domain or hostname (e.g., host.example.com) that the CNAME record should point to.

Adding or Changing a CNAME Record

  1. Log in to your cPanel account.

  2. Locate the Domains section and select Zone Editor.

  3. Find the domain you want to manage in the list and click the Manage button next to it.

  4. To add a new record, click the Add Record button.

  5. Select CNAME from the dropdown menu.

  6. Enter the following information:

    • Name: Enter the subdomain or domain name (e.g., blog.example.com).

    • TTL: Leave as the default value (usually 14400).

    • Type: Ensure this is set to CNAME.

    • Record: Enter the destination domain or hostname (e.g., host.example.com).

  7. Click Add Record.

To modify an existing CNAME record, locate the record in the list and click Edit next to it. Update the Record field with the new destination and click Save.

Confirm the result

  • The record will appear in the Zone Editor list with the updated information.

  • You can verify the change using a tool like dig or nslookup in your terminal. For example: nslookup blog.example.com

  • The output should show the record pointing to the destination you specified.

Limitations

  • A CNAME record cannot be used for the root domain (e.g., example.com). It must be used for subdomains or other hostnames.

  • Changes to DNS records may take time to propagate across the internet. This duration depends on the Time to Live (TTL) value and the caching policies of various internet service providers.

Did this answer your question?