nobaloney
NoBaloney Internet Svcs - In Memoriam †
I responded today somewhere in another thread. I must have been confused and thought it was this one. Do we have two threads we need to merge?
Jeff
Jeff
thanks for unconfusing me .ive read other post, that topic is for rsync made by Arieh.
And now for confusing me again .What ive done is mix your script with his taking some part from each one.
Result is that is the master server that call the restart of bind with new zone from remote, and, aswell, is the master server that ask to remote slave to remove zones and resync.
Please when you have a chance email the link to me and I'll put it into my workflow list.If you got time, take a look on the solution ive provide on previous post with the direct link to the scripts.
Integration to Mult-Server option isn't important to me; I need one or the other; Multi-Server option or Master2Slave DNS Replicator, the latter if I'm going to offer slave service to people not running DirectAdmin. And for now anyway, I don't see much in the way of requests to me, from non-DirectAdmin administrators.A nice shot should be have a service listening on port 2222 that can interact directly with directadmin multi-server setup, that maybe can be done with debg on directadmin for check what he send and how, but, honestly im not that nice on create a program that listen on the port and interact in that way.
Feel free to ask them, but even then, there would be some folk with nowhere to put one, who would want a service which i can only provide if there are hooks somewhere so I can figure out who's using it, and charge for it. I've thought about grepping out the messages file, and billing for actual DNS replies, but it adds more complexity to billing then to serving, and I don't like that.Should be very nice if DA Staff take a little of time to release a "Just DNS Slave Server" compatible with their standards.
Not a bad idea but before doing that, please consider this for me:im not sure is needed ot merge two discussion, maybe create a new one for take all ideas and make a "team" that cooperate for that would be much better.
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
The install script is enough, remember to install server first (the one without directadmin for be clear).
If you have any problem feel free to contact me via PM or MSN.
Regards