[Pdns-users] Automatically delete zones that are deleted on Supermaster

Mark Scholten mark at streamservice.nl
Sat Nov 17 12:41:56 UTC 2012

> Hello. I'm realy need this. I'm apply this patch, but how can i get master 
> zones list running this command on slave? Or how can i decide which  
> domain i need to remove on slave, that absent on master?

Hello Vasily,

With this patch you don't get all information yet as far as I know. If you are using the gmysql backend you could check the archive to find a script I posted last month or this month. That PHP script could check everything and has some options.

Kind regards,

Mark Scholten

> 2012/11/13 Mark Scholten <mark at streamservice.nl>
> Hello Ruben,
> > I would like some feedback on this, as there are a number of options:
> > - Change list-all-zones to also show last_check (how would we format?)
> > - Change show-zone to output more information about the zone (this was
> > also suggested in ticket #608)
> > - Create a delete-old-zones command which receives a last_check
> > parameter and automatically deletes al zones that have a last_check
> > field lower than the given command.
> Hello Ruben,
> If you ask me including it in the list-all-zones is probably the best option
> to limit the load if you need to check all domains and have a few 1000 zones
> in your name server. I think the first option (where possible include the
> (hidden) master so external scripts can do a few additional tests before
> removing the domain).
> Mark

More information about the Pdns-users mailing list