Martin Šťastný
2011-May-30 16:21 UTC
[CentOS] BIND9 - automatic zone definition replication to slave
Hello, I have simple question - is there a way to automatically replicate zone definition (not zone itself - this is easy) to slave server using BIND9? Is it BIND built-in or are there prebuilt scripts? Or I have to write that script on my own (started by Cron, transfer file with zone names, create conf file and finallly restart BIND?)? Thank you in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110530/392fcc61/attachment-0005.html>
Nicolas Ross
2011-May-30 22:30 UTC
[CentOS] BIND9 - automatic zone definition replication to slave
> I have simple question - is there a way to automatically replicate zone definition (not zone itself - this is easy) to slave server using BIND9? Is it BIND built-in or are there prebuilt scripts? Or I have to write that script on my own (started by Cron, transfer file with zone names, create conf file and finallly restart BIND?)?Here, I have made a php front-end to manage dns zones and entries. So for the slaves, it's only a little php script that connects to the same database and fetches the zone names to build the conf file...
Lars Hecking
2011-May-31 08:41 UTC
[CentOS] BIND9 - automatic zone definition replication to slave
Martin ??astn? writes:> Hello, > > I have simple question - is there a way to automatically replicate zone > definition (not zone itself - this is easy) to slave server using BIND9? Is > it BIND built-in or are there prebuilt scripts? Or I have to write that > script on my own (started by Cron, transfer file with zone names, create > conf file and finallly restart BIND?)?Check out incron from rpmforge. Together with rsync and possibly a bit of custom scripting it should be perfect. I would not rsync config files directly into place, but use a staging area, watched by incron on the other end, so that a custom script could do some integrity checking before applying the update.