LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2011, 08:39 AM   #1
vickyk
Member
 
Registered: Dec 2009
Posts: 38

Rep: Reputation: 6
DNS issue - Want to have CNAME instead of a A record


Hello,

I need to point aaa.com to bbb.com in DNS. I know it is possible to add subdomains for aaa.com to point to bbb.com (or its sub-domains) but in this case I need to have aaa.com point to bbb.com.

I used the following in zone file of aaa.com but it didnt work
----------------
@ IN CNAME bbb.com.
----------------

Can someone enlighten me on this ?
 
Old 07-21-2011, 09:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Hi,

You cannot use CNAME to alias a domain. There is the DNAME RR that does exactly this

Regards
 
Old 07-21-2011, 09:53 AM   #3
vickyk
Member
 
Registered: Dec 2009
Posts: 38

Original Poster
Rep: Reputation: 6
Hi,

I checked the link and understood that DNAME can be used to create alias for subdomains as against a CNAME which can be used to create alias for a single name.

But I am unable to understand how can I use this to point aaa.com to bbb.com
 
Old 07-21-2011, 11:08 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,526

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
Using DNAME you can do a wildcard alias from *.aaa.com to *.bbb.com.
Code:
aaa.com. DNAME bbb.com.
                 A           x.x.x.x
For the plain zone itself you still need an A record
 
Old 07-21-2011, 01:06 PM   #5
vickyk
Member
 
Registered: Dec 2009
Posts: 38

Original Poster
Rep: Reputation: 6
Thanks Bathory,

Will try.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolve cname of a cname with a bind dns server mariogarcia Linux - Networking 3 05-09-2011 08:32 AM
How to update a CNAME record ZAMO Linux - Enterprise 3 04-06-2010 06:37 PM
www cname record for external host in DNS zone file hebblethwaite Linux - Networking 2 10-22-2008 10:36 PM
DNS Zone Record: CNAME Not Working vbfischer Linux - Networking 2 10-13-2008 03:02 PM
why To Use CNAME record ???? srnerkar1 Linux - Networking 3 12-31-2005 01:24 AM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration