CNAME from Subdomain to main domain-name.

Beavis pfunix at gmail.com
Fri Oct 10 21:06:45 UTC 2008


I'm a bind newbie i don't know what an apex is. what I'm trying to do is.

direct traffic from www.domain.com ---> myserver.beta.domain.com.

any help will be awesomely appreciated.

-b

On Fri, Oct 10, 2008 at 2:59 PM, Kevin Darcy <kcd at chrysler.com> wrote:
> 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