Web Hosting Talk







View Full Version : DNS Problem?


Vortech
05-28-2001, 12:04 AM
Ok right now we run 1 freebsd and a 2 redhat boxes for DNS. At the end of each day we have to copy the DNS from the main server to the other 2 so its on all of them.

Is there any automated way to do this i am sure there is a easy way. From what i under stand you can setup a pri. server and have the sec. server pull all the DNS info from them. What needs to be done or how can we do this. What we would like to be able to do is add DNS to the pri. server and it gets pulled to the 2nd and 3rd server every night at 12am is there anyw ay to do this?


Any help would be great.. ;)

DHWWnet
05-28-2001, 06:26 PM
Try

Batch DNS and Batch Apache, it automates the creation of DNS domains and V.sites.

http://www.thirdpartymodules.com/webmin/?page=Servers



cheers,
elijah john :)

cperciva
05-28-2001, 06:47 PM
Well, ignoring for the moment the questionably sanity of using Redhat for DNS server, I'd suggest running djbdns here. A cron job can scp dta.cdb across to the new servers daily (or hourly or whatever), and that way you don't even need to worry about restarting the dns server.

DHWWnet
05-28-2001, 07:01 PM
Good advice ya got there Cperciva :)

Vortech
06-03-2001, 11:41 PM
Where can i find djbdns. That sounds kind of like what i need. We plan to move DNS to FreeBSd servers ASAP. Will this work for that as well.

What we are doing is setting up 3 RedHat 7.1 boxes for CPanel. Then 2 FreeBSD boxes maybe 3 for DNS for our network. What we need to happen is. When a site gets added by cpanel it update bind running on its server but then as well update the 2 or 3 main DNS servers.

So it would work kind of like this.

CPanel site gets setup DNS is add on that server.
Now on Pri. DNS it needs to be added and also added to Sec. DNS. So the site can be live ASAP.
Would like for this to all get updated every hour if it can. This way if some one signs up for a CPanel account there site can be up in 5 min. and DNS working in a hour or when NSi points it to us.


Let me know if this would work.

Vortech
06-03-2001, 11:49 PM
Never min i think i found it djbdns.com. But will this work with CPanel on the same server so CPanel could add stuff to the DNS as CPanel says it works with BIND can this in a way just go in place of bind. Sorry i am not the unix guy but will ether ask me the same thing as this will be new to him or have to go try and find out.. hehe

cperciva
06-03-2001, 11:55 PM
djbdns takes its input data in a different (simpler) format than BIND's convoluted zone files, so unless CPanel is specifically setup to create dns data in djbdns' format it won't work.
Now, one option would be to run BIND on a non-standard port (firewalled off from the hostile internet, of course), and run a cron job/script/whatever to check for changes to the zone files and the use djb's zone transfer client to grab the updated zone files... but that gets a bit crazy I think.