Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is a screenshot of what cPanel is asking for in Cname records:


This is what i'm trying to do:

point: secure.randomdomain.com => secure.mydomain.com

What settings would I put to make that happen?

share|improve this question
What is "it?" If you can tell us what control panel that is(eg. cPanel, Plesk, etc.) or even what host/registrar is responsible, it might be possible to point you at specific documentation. – Su' May 9 '12 at 22:51
it's cPanel that is asking for the Configuration – Talon May 10 '12 at 0:10
If you want to redirect then a CNAME is not the thing to do. Now, sure, you may set a CNAME but you ALSO have to set rewrite rules. I do believe cPanel has options for "web forward" or something? – ionFish May 10 '12 at 1:52
I don't really want a redirect, I want secure.randomdomain.com and secure.mydomain.com to be used inter-changeably. I heard the only way to do that was a CName – Talon May 10 '12 at 6:28
up vote 3 down vote accepted

Under "Add a CNAME Record", enter secure.randomdomain.com. in the "Name" field and secure.mydomain.com. in the "CNAME" field and click "Add CNAME Record".

Don't put anything in the "Add an A Record" fields.

The CNAME record just means that the browser (OS really) will look up the first domain (the one in the "Name" field) and find a second domain name (the one in the "CNAME" field) rather than the IP address it was hoping to find. The browser will then look up that CNAME domain in hopes of finding an IP address.

So, the alternative way to do this is to know the IP address of secure.mydomain.com and use that in secure.randomdomain.com's A record rather than creating a CNAME record. However, CNAME records work just fine, and in my experience, there's no reason not to use them.

UPDATED: note the trailing dots for both the "Name" field and the "CNAME" field.

share|improve this answer
shouldn't the value of the "Name" field end with a dot? like secure.randomdomain.com. – amaters May 10 '12 at 8:22
@amaters Yes! Actually both fields need the trailing dot. Thank you for pointing out that omission. I will update the answer. – matty May 10 '12 at 11:12
Thanks that works great! – Talon May 11 '12 at 17:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.