Ok, it is ready.
Please feel free to test it and post suggestions.
Download URL:
http://repository.custombuild.it/scripts/dns-replicator.tar.gz
For sure it need something more to be fixed.
It use SSH/RSYNC in this way:
DA add/modify domain -> post domain create/modify script call the executable script -> script create a file with domain list and send it to remote nameserver(s) using rsync and touch a reload file -> remote nameserver use cron for check if reload file is present, if yes, it check zones and restart named.
DA remove domain -> post domain destroy script call executable script -> script create file with domain list and sent it to remove nameserver(s) using rsync, touch a reload file and a remove file -> remote nameserver use cron for check if reload is present, if yes, it check zones and restart (the check zones check for remove file, if present remove all zones frome the requested server before re-add).
DNS edits without add/modify/remove domain are done from BIND with his own master/slave capability.
Ive created an installation script inside the file that work this way:
./install server (for nameserver side presuming you got bind up and running)
./install client (for da server side)
The install script ask for remote server host/ip and nameserver user password (and local server ip) and create key and connect nameserver and localserver using ssh-key so no password will be needed.
There are some things you have to know:
You have to manual allow ip on nameserver side in named.conf for transfer/notify
For now, is da-server side that add nameservers, im studing how make that is the nameserver that add servers to check (but would be hard cause using this current way we are sure when a re-sync is needed, other way still ive no idea on how to do that).
Any suggestion is appreciated.
Feel free to edit script where needed and, if is not too much disturb, let me know what edit for make it better.
Regards