View Full Version : Secondary NS?
3josh
10-20-2003, 07:13 PM
Hello,
I would like to do secondary NS on another server so that
mail does not bounce when the server is down.
I don't think DA supports this natively like Hsphere and some
others - but anyone have scripts made up to munge
DA's named.conf to make a config for secondaries that can
by sync'd over to another server?
Thanks
-josh
DirectAdmin Support
10-20-2003, 11:04 PM
Hello,
I think some people have just setup a 2nd server to run as a slave to the DA master. You'd just have to create each zone as they come on the 2nd server and set it up as a slave, which will get it's data from the DA server. I'm not too sure on the exact syntax at the momment, but I'm sure someone has it handy. :)
John
3josh
10-20-2003, 11:33 PM
Right :)
But doing that for every domain all users and resellers have
is - well.. time consuming and something that cries for automation.
Thats what control panels are all about after all right?
Particularly with how DA does subdomains...
What I'm looking for is something that can take the named.conf
and find/replace the 'master' with secondary and the IP address
of the DA server and stick it someplace like /etc/named.secondary.
Then I can rsync/scp/whatever over from the secondary NS.
Ideally I would like to see this file be automagically made by
DA (ie - make updates to /etc/named.conf and /etc/named.secondary )
But I'll settle for generating the thing from cron every hour.
I can probably make it work if I stare at the sed/awk man pages
long enough, but when I try to make bourne scripts I almost
always break stuff :) I'll give it a try if nobody is willing to
give out their solution.. I just hate bruising my head with
scripts that are 'hello world' for average coders...
-josh
MQ-James
10-21-2003, 02:50 AM
couldn't you use a cron to copy the named.conf files to a web directory and another cron to wget it every x minutes? not ideal but would work
S2S-Robert
10-21-2003, 04:45 AM
Should you have it working I'd love to see it, we're planning on perhaps adding another server and this feature would enhance NS stability a lot.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.