LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DNS issue - Want to have CNAME instead of a A record (https://www.linuxquestions.org/questions/linux-newbie-8/dns-issue-want-to-have-cname-instead-of-a-a-record-892936/)

vickyk 07-21-2011 07:39 AM

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 ?

bathory 07-21-2011 08:09 AM

Hi,

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

Regards

vickyk 07-21-2011 08:53 AM

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 :(

bathory 07-21-2011 10:08 AM

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

vickyk 07-21-2011 12:06 PM

Thanks Bathory,

Will try.


All times are GMT -5. The time now is 11:17 PM.