Support

Find answers, guides, and tutorials to supercharge your content delivery.

Create a CNAME DNS Record in cPanel

Updated on October 4, 2018

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 Zone Alias (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 Zone Alias, 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. Log in to your cPanel and search for DNS ZONE.
  2. Pick one of the two options : Simple DNS Zone Editor or Advanced DNS Zone Editor.
  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.

    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.

    8. Click the Add Record Button.

That's it! Now that you have set up your CNAME cPanel record you can begin using your Zone Alias 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.

Supercharge your content delivery 🚀

Try KeyCDN with a free 14 day trial, no credit card required.

Get started
KeyCDN uses cookies to make its website easier to use. Learn more about cookies.