problem with two zones with same reverse zone

Kevin Darcy kcd at daimlerchrysler.com
Tue Aug 2 21:08:53 UTC 2005


Rick Tautin wrote:

>	I have three zones.  mov.com, movie.com and the reverse lookup zone.  My
>question is both zones are in the same network using the same subnet.  We
>are trying to get rid of the mov.com zone but we won't be able to for
>awhile.  What reverse zone would I use for mov.com since they are the same
>ip's are the movie.com zone.  I tried entering a entry in the mov.com file
>
>	mov.com.		IN	CNAME		movie.com.
>
>but I just get this error when it starts up zone mov.com/IN: loading master
>file db.mov.com: CNAME and other data.  I can't find a way around it, does
>anyone have any ideas.  Thanks in advance.
>
You can't "alias" one domain to another like that. Every entry in 
movie.com could be made an alias to the corresponding entry  in mov.com, 
*except* for the apex entry (i.e. the name "movie.com" itself), because 
of the "CNAME and other data" rule that BIND is complaining. What that 
rule basically means is that if a name owns a CNAME, it cannot own any 
other records of another type. Since the movie.com name owns an SOA 
record and at least 2 NS records, it is thus barred from owning a CNAME.

As for the reverse record, choose one of the names and point the PTR to 
it. The vast majority of apps which actually make reverse lookups only 
care that the reverse matches the forward and _vice_versa_. I don't know 
of any app which actually requires that there be a PTR for *every* name 
which points to a particular IP address...

                                                                         
                                                            - Kevin




More information about the bind-users mailing list