Multiple zones share same DB?

David Botham dns at botham.net
Mon Feb 3 05:27:25 UTC 2003




> -----Original Message-----
> From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
> Behalf Of Pete Ehlke
> Sent: Monday, February 03, 2003 11:42 AM
> To: Lee M Dobson
> Cc: bind-users at isc.org
> Subject: Re: Multiple zones share same DB?
> 
> 
> On Mon, Feb 03, 2003 at 11:19:13AM -0500, Lee M Dobson wrote:
> >
> > Gotcha, I had neglected to use "@" and was trying to use multiple
> $ORIGIN`s
> > and RR`s in my db record, which is why it was complaining about out
of
> zone
> > data. :)  Usually I
> > would maintain a separate DB record for each zone although on this
> occasion
> > I have two domains within different ORIGINS which I would prefer to
use
> the
> > same DB record
> > to keep things tidy.
> >
> Remember that this only works on masters. @ is rewritten to the
current
> $ORIGIN on axfr, so slaves *must* have unique db files per zone.


Pete brings up a very good point.  You will need to adjust your zone
statements on the slave to create a *unique* backup file for each zone.
I recommend a perl script for large numbers of zones.


Thanks,

Dave...


> 
> -Pete



More information about the bind-users mailing list