DNS cluster Setup assistance needed

rotame

Member
Sep 20, 2006
19
2
153
Athens,Greece
cPanel Access Level
Root Administrator
Hi

I have 3 CPANEL servers srvA, srvB, srvC and 2 VPS which use DNSonly

I want to enable DNS cluster so I am doing the followings :

I use a domain for DNS purposes lets say that be dnsdomain
For this domain I will use 2 IPs as ns in two diferrent VPS and there will be installed DNSonly


So my confing will be :
srvA stand alone CPANEL
|----- >dns1srv.dnsdomain ( DNS VPS1 ) synchronize mode
|---->dns2srv.dnsdomain (DNS VPS2 ) synchronize mode

In my registar as registared name server I will use
ns1.srvAhostname
ns2.srvAhostname
dns1srv.dnsdomain
dns2srv.dnsdomain

srvB stand alone CPANEL
|----- >dns1srv.dnsdomain ( DNS VPS1 ) synchronize mode
|---->dns2srv.dnsdomain (DNS VPS2 ) synchronize mode

In my registar as registared name server I will use
ns1.srvBhostname
ns2.srvBhostname
dns1srv.dnsdomain
dns2srv.dnsdomain


srvC stand alone CPANEL
|----- >dns1srv.dnsdomain ( DNS VPS1 ) synchronize mode
|---->dns2srv.dnsdomain (DNS VPS2 ) synchronize mode

In my registar as registared name server I will use
ns1.srvChostname
ns2.srvChostname
dns1srv.dnsdomain
dns2srv.dnsdomain
etc


Questions :
- This configuration its OK or for every server need to use different VPS DNSonly ?
- If my main server fails example srvA my DNS records still to reported by dns1srv and dns2srv with this way avoiding service failures; as example www service serviced by other server, mail server by other server ?
- If my srvB fails and all services hosted there what happens when someone sends me an email ?
I will loose it or I will get it when my srvB is online again ?
 
Last edited:

rotame

Member
Sep 20, 2006
19
2
153
Athens,Greece
cPanel Access Level
Root Administrator
One more question
I have a client in srvC who wants private name servers
I will setup his account at srvC
As nameservers I will use ns1.clientdomain & ns2clientdomain but as IPs?

The IPs for this must be local from srvC or I can use DNS VPS1 & DNS VPS2 ips?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

This configuration its OK or for every server need to use different VPS DNSonly ?
Yes, this is an acceptable configuration. However, make sure you are using the correct IP addresses for your name servers at the registrar. EX:

ns1.srvAhostname
ns2.srvAhostname
dns1srv.dnsdomain
dns2srv.dnsdomain
The NS1/NS2 IP addresses should match the IP addresses associated with DNS1SRV/DNS2SRV.

If my main server fails example srvA my DNS records still to reported by dns1srv and dns2srv with this way avoiding service failures; as example www service serviced by other server, mail server by other server ?
The DNS cluster only adds redundancy for DNS. You'd have to setup or restore the cPanel account from a backup on a new cPanel server and then connect that new cPanel server to the existing DNS cluster. Or, you could update the "A" records manually in the domain name's DNS zone on the DNS-Only servers.

If my srvB fails and all services hosted there what happens when someone sends me an email ? I will loose it or I will get it when my srvB is online again ?
You would lose the email if the server is not active at all, unless the remote mail server queues the email attempts delivery again once it detects your server is running.

I have a client in srvC who wants private name servers. I will setup his account at srvC As nameservers I will use ns1.clientdomain & ns2clientdomain but as IPs? The IPs for this must be local from srvC or I can use DNS VPS1 & DNS VPS2 ips?
Yes, this is acceptable. You'd need to use the same IP addresses that you use for the name servers associated with your DNS cluster.

Thank you.
 

brt

Well-Known Member
Jul 9, 2015
104
10
68
US
cPanel Access Level
Root Administrator
Why don't you share the two nameservers with -all- of your servers and have the same two standardized nameserver records for all of your clients/websites, regardless of which server they're utilizing?