DNS cluster on servers already hosting websites

ruiz

Well-Known Member
Feb 13, 2008
50
4
58
Hi there,

I have 5 webservers and i want to use 2 of then to host all my dns's. Problem is, all those servers are already being used by clients and i cannot afford 2 extra servers(or 2 vps's). The question is... Is it possible to create the cluster pointing to 2 of my servers? How's that gonna work?

Here's what i want to do:
-------------------------
server 1 - NS1
server 2 - NS2
server 3 - dnss points to server 1 and 2
server 4 - dnss points to server 1 and 2
server 5 - dnss points to server 1 and 2
-------------------------

But what should i do with the clients already hosted on server 1 and 2? Can i point those servers to each other? Will it work? Thanks!
 

garrettp

Well-Known Member
PartnerNOC
Jun 18, 2004
312
1
166
cPanel Access Level
DataCenter Provider
Hi there,

I have 5 webservers and i want to use 2 of then to host all my dns's. Problem is, all those servers are already being used by clients and i cannot afford 2 extra servers(or 2 vps's). The question is... Is it possible to create the cluster pointing to 2 of my servers? How's that gonna work?

Here's what i want to do:
-------------------------
server 1 - NS1
server 2 - NS2
server 3 - dnss points to server 1 and 2
server 4 - dnss points to server 1 and 2
server 5 - dnss points to server 1 and 2
-------------------------

But what should i do with the clients already hosted on server 1 and 2? Can i point those servers to each other? Will it work? Thanks!
It's quite simple really, my guess is you're over-thinking it. :)

Leave your DNS settings as-is for your two existing servers, and for servers 3-5 simply enable DNS clustering with both server 1 & 2. Set 3-5 to synchronize changes with 1 & 2, but not vice versa.

Set new domains on 3-5 to use the nameservers on 1 & 2, and then when you setup an account on 3-5, the DNS record will be auto-propagated to 1 & 2!
 

ruiz

Well-Known Member
Feb 13, 2008
50
4
58
It's quite simple really, my guess is you're over-thinking it. :)

Leave your DNS settings as-is for your two existing servers, and for servers 3-5 simply enable DNS clustering with both server 1 & 2. Set 3-5 to synchronize changes with 1 & 2, but not vice versa.

Set new domains on 3-5 to use the nameservers on 1 & 2, and then when you setup an account on 3-5, the DNS record will be auto-propagated to 1 & 2!
Hi garrettp thanks for your response,

That'll work, But the problem is that ns1 won't respond for the websites hosted on server2, and ns2 won't respond for websites hosted on server1. They will work, but maybe i'll have some problems with only one NS working for those servers.

Do you think i'll have a problem if i point server2 to NS1 and server1 to NS2? Thanks
 

garrettp

Well-Known Member
PartnerNOC
Jun 18, 2004
312
1
166
cPanel Access Level
DataCenter Provider
Hi garrettp thanks for your response,

That'll work, But the problem is that ns1 won't respond for the websites hosted on server2, and ns2 won't respond for websites hosted on server1. They will work, but maybe i'll have some problems with only one NS working for those servers.

Do you think i'll have a problem if i point server2 to NS1 and server1 to NS2? Thanks
ruiz,

My assumption there was also that you have a two-way synchronization setup between 1 & 2 to ensure record updates remain consistent between them and they each have an identical copy of all of your hosted DNS records.

The others only need a one-way sync since they will not be doing any DNS hosting on their own.
 

InstantIT

Registered
Dec 29, 2010
2
0
51
For me, I would consider on taking 2 budget VPS server and setup them with DNS only cPanel and reconfigure the nameserver to be hosted there.

This would saved up alot of configurations and the changes of IP address can be updated directly via scripts.
 

ruiz

Well-Known Member
Feb 13, 2008
50
4
58
Thanks guys! I'll try to setup openvz on 2 of my servers, if i have any trouble i'll just stick to the usual way and cross link like garrettp said.