[BETA] DNS master2slave

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
 
Hi jeff,

ive read other post, that topic is for rsync made by Arieh.

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.

If you got time, take a look on the solution ive provide on previous post with the direct link to the scripts.

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.

Should be very nice if DA Staff take a little of time to release a "Just DNS Slave Server" compatible with their standards.

Let me know what do you think about solution ive provided.

Regards

EDIT: PS, 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.

Regards
 
ive read other post, that topic is for rsync made by Arieh.
thanks for unconfusing me :).
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.
And now for confusing me again :D.
If you got time, take a look on the solution ive provide on previous post with the direct link to the scripts.
Please when you have a chance email the link to me and I'll put it into my workflow list.
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.
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.
Should be very nice if DA Staff take a little of time to release a "Just DNS Slave Server" compatible with their standards.
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.
[/quote]Let me know what do you think about solution ive provided.[/quote]
Hopefully soon.
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.
Not a bad idea but before doing that, please consider this for me:

Do you want to work within my project, or fork to one of your own, and manage it yourself. If the latter, it's less work for me :).

I have two projects now, Master2Slave DNS Replicator and the SpamBlocker exim.conf file, and I'd like to see more structure for getting input from others for both.

Jeff
 
Sorry for consusing.

You've got mail! :)

I can partecipate to your project or help if needed in the time i got free.

But, the script ive generated is almost pretty complete and probably is what everyone would need, just few tweaks i presum will be needed.

Once you take a look on it let me know.

BTW i would partecipate on project without problem (just matter of time) but we would need an "open space" for works, like svn for example for have a "common repository" for everyone will work on it.

Regards
 
We'll need a repository somewhere, and a method of trust, and someone to run it. Or we can do it much less formally. Let's continue to move forward slowly and discuss this here and privately, before making any decisions.

Jeff
 
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

Im busy with setting up a secondary nameserver (instead of virtual).
Do I only need to run your script or the script of the topic starter to?
 
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
 
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

I sent a request to add you on MSN.
 
Last edited:
ok but which protocol used for the transfer?

TCP? which ports?

In my server DA port is 6085 and SSH 7744

thanks
 
Im experiencing a problem now.
The servers doesn't sync automatically anymore.
The files on the "backup" server are only updated when creating a new user.
 
Back
Top