Web Hosting Talk







View Full Version : DNS Question


jason216
08-08-2004, 11:42 PM
Hi

I have 2 dedicated server.
if the main server is down, it will point to other server automatically and immediately so that the domain is still up.


How and what can I set in both server ?

and in domain registerars?


Thanks

linux-tech
08-17-2004, 01:22 PM
Doing something like this can be hazardous to say the least. You don't want the server switching over when you reboot, but you do want it switching over if, say the server is down for 30+ minutes.

Firstly:
You'll need to use something like rsync to sync data over from master to slave server. This will include cpanel data, homedirs, passwords, sql data, all of that.

Secondly:
You'll need dns entries on both servers, dns on the one should point to the one, dns on the second should point to the second.

Thirdly:
You'll need entries in your nameserver configuration (at your registrar) to point to both servers. I'd setup 4 entries (ns1-ns4), the first two on the master server, second two on the slave server.

Make SURE you have the same MX entries on both servers, otherwise you'll receive mail on both servers, and if the first server is up, you'll always want mail going there, not to the secondary server.

drwhiz
08-17-2004, 02:12 PM
Thiis is called DNS clustering. You might want to search up more topics on it. It is fairly simple once you get it right.

RegisteringBites
08-30-2004, 02:57 PM
I used to run my own DNS servers a long time ago but I've found it to be unnecessary. eNom.com is a great domain name registrar that provides good DNS hosting that's included. They run many fast, well-maintained DNS servers.

Running your own DNS server is now only an invitation to DNS-based DDoS attacks.