Purging dynamic zones
kcd at daimlerchrysler.com
Tue Mar 21 23:16:53 UTC 2000
Robert Weber wrote:
> > > --------
> > >
> > *Clip*
> > > > > Is there any way to
> > >>> "purge" all the A records, MX records, etc. from a dynamic zone so it can
> > > > > be re-built from scratch? If so I could purge and rebuild the zone
> > > > > nightly rather than trying to make another program that gets all the
> > > > > deleted and changed hostnames from a days work and cleans up.
> > > >
> > > -------
> **Kevin Darcy <kcd at daimlerchrysler.com> wrote:
> > The "old-fashioned" way would be to nightly rewrite an $INCLUDE file, bump
> > the zone serial, and then tell named to reload the zone. This won't work,
> > of
> > course, if there are other records in the zone which need to be updated
> > dynamically.
> > - Kevin
> In truth I would like to do it that way but since W2K requires that
> the "Active Direcory Servers" have the ability to make dynamic SRC
> records in the zone I cannot do that. I need some way to batch remove
> all non-srv records so the zone isn't filled with bogus records.
I suspected as much, which is why I added the caveat.
Why not create separate zones for the SRV records? Last week, I heard some
discussion about possibly creating "_udp" and "_tcp" subzones, which would be
updateable by AD servers (since all SRV records have one of those as their second
domain label). Then, the theory goes, you could keep the main (parent) zone
static. Of course, I haven't tried this, so I don't know if it's a good idea or
not. But it might be worth a try.
More information about the bind-users