Create a CNAME DNS Record in cPanel

Setting up a cPanel CDN combination is easy and can be done in just a few steps. If you do not plan to use a Zonealias (e.g. cdn.yourwebsite.com) there is no need to do anything in cPanel and you can move on directly to integrating the CDN with your website. However, if you want to use a Zonealias, you will need to create a CNAME cPanel record. To do this you have two options (either simple DNS editor or advanced DNS editor), follow the steps below to create a CNAME DNS record in cPanel.

  1. Login to your cPanel and search for “DNS ZONE
  2. Pick one of the two options : “Simple DNS Zone Editor” or “Advanced DNS Zone Editor.” cpanel dns settings
  3. If you choose “Simple DNS Zone Editor“, these are the steps:
    1. Pick your domain name (if applicable)
    2. Go to “Add a CNAME Record
    3. In the “Name” field, enter the prefix/first part of your custom domain (cdn, keycdn, or whatever you have – do NOT enter the FQDN like “cdn.yourwebsite.com“, cPanel will auto-complete that for you.
    4. In the “CNAME” field, add your CDN domain like “lorem-1c6b.kxcdn.com“, do NOT suffix it with a period/dot. cname cpanel simple dns
    5. Click the “Add CNAME Record” button.
  4. If you pick “Advanced DNS Zone Editor“, follow these steps:
    1. Choose your domain name (if applicable)
    2. Go down to “Add a Record
    3. In the “Name” field, enter the prefix/first part of your custom domain (cdn, keycdn, or whatever you have – do NOT enter the FQDN like “cdn.mydomain.com“, cPanel will auto-complete that for you.
    4. In the “TTL” box, add 14400 (4 hours) or more.
    5. In the “Type” drop-down menu, select “CNAME
    6. Click on the “Add CNAME Record” button.
    7. In the “CNAME” box, add your temporary CDN domain “lorem-1c6b.kxcdn.com“, do NOT suffix it with a period/dot. cname cpanel advanced dns
    8. Click the “Add Record” Button.

That’s it! Now that you have set up your CNAME cPanel record you can begin using your Zonealias instead of the default Zone URL. If you have previously integrated your website with the CDN Zone URL, ensure that you update all URLs with the newly created CNAME cPanel hostname (e.g. cdn.yourwebsite.com) for integration purposes within your website.