How to handle DNS with many servers?

BlueNoteWeb

Verified User
Joined
Nov 4, 2004
Messages
52
Location
Denton, TX
This question isn't specific to DirectAdmin, but hopefully someone here can help out.

Currently we have a couple of shared servers for clients, one running DA and another running cPanel. At my registrar I have ns1 and ns2 for my main domain pointing to the DA box, ns3 and ns4 pointing to the cPanel box. Clients are told when they sign up whether to use 1 and 2 or 3 and 4 depending on if they choose DA or cPanel.

So now we're looking at expanding to a third server. I could set up ns5 and ns6...but that gets crazy especially when we look at 4 servers, or 5, or 6 or....

I'm thinking I could set up two small servers (probably even on VPS for now), in two different datacenters, call them ns1 and ns2. Set up named on each, add a cronjob that rsyncs all of the named files from each server every so often (4 hours?), and tell all new clients to use ns1 and ns2. I could point ns3 to one and ns4 to the other for backwards compatibility.

That gives me DNS hosted in two different physical locations, providing some redundancy, and I don't have to concern myself with which nameservers new clients should use (since it's ALWAYS ns1 and ns2). We can manage DNS changes through the normal methods in the respective control panels, clients who have access to their own DNS manage it just as they do now. DNS changes would be delayed slightly, but it's no big deal to log in and manually do an rsync if it's needed.

Does that all make sense to do? Is there a better way to do this? Am I reinventing the wheel here?
 
I'm not sure how rsync would work because the new servers would need all the domain name in one named.conf file, or in small ones included with include files; I'm sure you could figure it out ;).

And you need to be careful about dupes; what happens when you're busy moving a domain from one of your servers to another?

We use master2slave DNS replicator, and the local DA servers as hidden masters.

That even notifies you of dupes.

:)

Jeff
 
Jeff,

Do you have some extra information about this?

Currently i'm struggling with the same
 
About what? master2slave DNS Replicator is an open source system I had written (I paid someone to write it) and released as open source. It was written for me, but works for a lot of people.

It comes with installation instructions.

Jeff
 
Back
Top