[comp.protocols.tcp-ip] CNAME question

VSBENZI@WEIZMANN.BITNET (Benzi mizrahi) (10/13/89)

Hello all,

 we have a name server that is primary to our local zone and sub-zone
 within our local zone. Can I have CNAME RR in the upper zone that
 his owner name is the same as the sub-zone? Consider the following
 RRs:

 our.local.zone.  IN SOA    ....


                  IN NS     ns.our.local.zone

 ns.our.local.zone. IN A     <ip.addr>

 ...

 sub-zone.our.local.zone.   IN CNAME  sub-zone.sub-zone.our.local.zone.

 ...
 ;
 ;End of parent zone
 ;

 sub-zone.our.local.zone. IN  SOA ...


                          IN  NS ns.our.local.zone

 ...

 sub-zone.sub-zone.our.local.zone. IN A  <his.ip.addr>

 ...
 ;
 ; End of sub-zone
 ;

 Is this a protocol error? thanx , Benzi

dsmith@oregon.uoregon.edu (Dale Smith) (10/18/89)

In article <8910141032.AA13345@ucbvax.Berkeley.EDU>, VSBENZI@WEIZMANN.BITNET (Benzi mizrahi) writes:

>  we have a name server that is primary to our local zone and sub-zone
>  within our local zone. Can I have CNAME RR in the upper zone that
>  his owner name is the same as the sub-zone? Consider the following
>  RRs:
>  our.local.zone.  IN SOA    ....
>                   IN NS     ns.our.local.zone
>  ns.our.local.zone. IN A     <ip.addr>
>
>  sub-zone.our.local.zone.   IN CNAME  sub-zone.sub-zone.our.local.zone.
>
>  sub-zone.our.local.zone. IN  SOA ...
>                           IN  NS ns.our.local.zone
>  sub-zone.sub-zone.our.local.zone. IN A  <his.ip.addr>
>  Is this a protocol error? thanx , Benzi

This is an error.  You should move the sub-zone.our.local.zone CNAME
record to below the SOA record for that name.  It only makes sense.  An
SOA record delimits a zone, but you already have defined RR's that
belong in that zone.  This should not be a problem (it will work) unless
you are delegating authority to another server.  In the case of using
Bind 4.8 based systems, I think you will get a duplicate SOA message
from the secondary during the zone transfer (assuming the secondary also
is secondary for both our.local.zone and sub-zone.our.local.zone).

Cheers,

Dale Smith, Assistant Director of Network Services
University of Oregon		Internet: dsmith@oregon.uoregon.edu
Computing Center		BITNET: dsmith@oregon.bitnet
Eugene, OR  97403-1212		Voice: (503)686-4394