CNAME from Subdomain to main domain-name.
Kevin Darcy
kcd at chrysler.com
Fri Oct 10 20:59:51 UTC 2008
Beavis wrote:
> Greetings,
>
> Just wanted to ask if this is a possible scenario.
>
>
> domain.com. IN CNAME www
> www IN CNAME myserver.beta.domain.com.
>
I assume domain.com is the "apex" name of a _zone_, right?
If so, then the above is illegal. Why? Because at the apex of a zone you
have an SOA record and at least 2 NS records. The rule is: you can't
have a CNAME at a node if there is other data present at that node. So
the presence of the SOA/NS records forbid the creation of the CNAME.
You'll get a "CNAME and other data" error if you try this.
It is, however, perfectly legal and acceptable for www.domain.com to own
a CNAME pointing at a zone apex, or any other name that does not itself
own a CNAME, -unless- www.domain.com is itself a subzone of domain.com.
Short version of answer: you can't CNAME the apex of a zone.
- Kevin
More information about the bind-users
mailing list