Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: DNS CNAME or A Record?
PostPosted: Thu Mar 12, 2009 1:20 am 
Offline
Senior Newbie
User avatar

Joined: Mon Mar 02, 2009 12:06 am
Posts: 13
If I have one website and two domain names, should the secondary domain have it's own domain zone (and A records) or should it have a CNAME record in the primary domain zone? All I need the secondary domain to do is forward to the first.


Top
   
 Post subject:
PostPosted: Thu Mar 12, 2009 2:24 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Putting in a CNAME record will not make your domain automatically forward to another, if that's what you're looking for. Forwarding needs to be done at the level of your web server. CNAME is just a convenient way of telling users that the IP address of the (sub)domain can be found under the A record of another domain. This is useful if you do not control the IP address of the other domain (for example, if the other domain is your Amazon S3 bucket), or if you want to be able to update many subdomains by changing only one A record in one place. But for other purposes, an A record is much more straightforward.

Besides, I don't think you can put a CNAME record for the whole domain. CNAME is only for subdomains, and the domain itself still needs to have an A record.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group