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
Log in to your cPanel account.
Locate the Domains section and select Zone Editor.
Find the domain you want to manage in the list and click the Manage button next to it.
To add a new record, click the Add Record button.
Select CNAME from the dropdown menu.
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).
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
digornslookupin your terminal. For example:nslookup blog.example.comThe 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.
