Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to setup a Cname

Discussion in 'General Discussion' started by mickyarun, Jan 21, 2010.

  1. mickyarun

    mickyarun Registered

    Dec 14, 2009
    Likes Received:
    Trophy Points:
    Hi noob here

    I just wanted to know how exactly we set up a Cname for a subdomain. I'm running a kickapps website and i need to set up a subdomain Cnamed as "". Can i get guidance regarding setting up a Cname for my subdomain.

    Thanks in advance.
  2. ModServ

    ModServ Well-Known Member

    Oct 17, 2006
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    If you want to add subdomain from WHM then click on Add a DNS Zone then write the IP of the subdomain and in Domain cell write your subdomain, If you want to modify those details later you can make this by entering Edit A DNS Zone then choose your subdomain and click Edit.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Apr 22, 2009
    Likes Received:
    Trophy Points:
    Assuming that the domain name is '' and the sub-domain is 'affiliate', what you need is to get a record in the DNS zone file as follows :

    affiliate 14400   IN      CNAME 
    Note that there is a trailing ' . ' at the end of the domain name. And, do increment the serial number in the zone file.

    You can edit the DNS zone file via SSH if you have 'root' shell access. The file will be located at /var/named/


    You can do it directly (preferred) via WHM by using the option 'Edit a DNS zone file' as mentioned in the earlier post.

    If you do not have root access to the server or any option in your control panel (only if your host provides some custom control panel) then you will have to contact their support to get the CNAME done.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice