How to cname the "<null>" hostname?

Barry Margolin barmar at bbnplanet.com
Fri Jan 14 01:10:49 UTC 2000


In article <85lq1d$sqt$1 at notrump.whiteoaks.com>,
Morris Jones <mojo at notrump.whiteoaks.com> wrote:
>Here's the thing.
>
>domain.com and www.domain.com have the same IP address.
>
>But supposedly it's bad form to put them in the zone file this
>way (though obviously it works):
>
>$ORIGIN domain.com.
>		A	4.3.2.1
>www		A	4.3.2.1
>
>One of them is supposed to be a CNAME of the other.
>
>So how do you specify that the CNAME of domain.com is www.domain.com,
>or vice versa?

www IN CNAME domain.com.

You can't do vice versa, because a zone name cannot be a CNAME (it would
violate the rule against CNAME and other data).

-- 
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



More information about the bind-users mailing list