I have two dedicated web servers running WHM, and one VPS running DNSOnly. My DNSOnly server recently had a disk failure and I realized my redundancy isn't at the level I need it to be. I have acquired second VPS to run another DNSOnly server.
After fiddling about on my own I am left with a few questions regarding the proper way of setting up DNS Cluster, and in particular how to configurate the zone files for my nameservers.
Overview of my setup
server1.domain.com (running ns7.domain.com, ns8.domain.com)
server2.domain.com (running ns9.domain.com, ns10.domain.com)
vps1.domain.com (running ns1.domain.com, ns2.domain.com)
vps2.domain.com (running ns3.domain.com, ns4.domain.com)
Each nameserver is running on a dedicated IP address, in current setup a total of 8 IP's just for nameservers. I don't know if this is the optimal setup but it seem to be the logical thing to do.
Registrar
I've set the domain to use ns1, ns2, ns3, ns4 to be used at the registrar (GoDaddy in this case). I've also added a hostname (and their IP's) to each of the servers/vps/nameservers.
Cluster
On server1.domain.com and server2.domain.com, I've added (WHM - Clusters - DNS Cluster) vps1.domain.com and vps2.domain.com to "Write Only" configuration, and enabled "Reverse Trust".
On vps1 and vps2 I have "Enable DNS Cluster", but not added any servers to the list.
Now comes the part where I am having issues, and will keep this part to server1 to simplify things. At this point I haven't done any extra configuration to server2 as I am seeing issues with my setup already.
server1
I have used "Add DNS Zone" and added a zone for vps1, vps2, ns1, ns2, ns3 and ns4. One zone for each. I also added A records to domain.com for ns3 and ns4.
My domain.com zone file looks like this (edited to show relevant info only)
My ns1.domain.com file looks like this (edited to show relevant info only)
My ns2.domain.com SOA record show
What puts me off here is that ns1 SOA points to ns7. ns2 SOA points to ns1. Am I supposed to point ns3 to ns7, and ns4 to ns3 and follow the same pattern? This is what I did:
ns3 SOA now points to ns7.domain.com. ns4 SOA points to ns3.domain.com.
(but I realize that I am now over my head and I am again having such struggle with DNS. It's the one topic my brain just fails to understand the logic of)
Using DNS Check tool at pingdom I am not getting any errors on domain.com.
However, if I run DNS Check on ns1, ns2 they come up with errors:
- Failed to find name servers of ns1.domain.com/IN.
- No name servers found at child.
No name servers could be found at the child. This usually means that the child is not configured to answer queries about the zone.
- Not enough nameserver information was found to test the zone ns1.domain.com, but an IP address lookup succeeded in spite of that.
DNS Check on ns3.domain.com and ns4.domain.com has no errors.
Is anyone able to enlighten me on what these errors are, and what I am doing wrong here?
What should the zone files of ns1,ns2,ns3,ns4 look like? What should SOA point to and should there be A and NS records for each nameserver in each zone file?
What about server2,ns9,ns10. How do I puzzle all of this together?
Thank you.
After fiddling about on my own I am left with a few questions regarding the proper way of setting up DNS Cluster, and in particular how to configurate the zone files for my nameservers.
Overview of my setup
server1.domain.com (running ns7.domain.com, ns8.domain.com)
server2.domain.com (running ns9.domain.com, ns10.domain.com)
vps1.domain.com (running ns1.domain.com, ns2.domain.com)
vps2.domain.com (running ns3.domain.com, ns4.domain.com)
Each nameserver is running on a dedicated IP address, in current setup a total of 8 IP's just for nameservers. I don't know if this is the optimal setup but it seem to be the logical thing to do.
Registrar
I've set the domain to use ns1, ns2, ns3, ns4 to be used at the registrar (GoDaddy in this case). I've also added a hostname (and their IP's) to each of the servers/vps/nameservers.
Cluster
On server1.domain.com and server2.domain.com, I've added (WHM - Clusters - DNS Cluster) vps1.domain.com and vps2.domain.com to "Write Only" configuration, and enabled "Reverse Trust".
On vps1 and vps2 I have "Enable DNS Cluster", but not added any servers to the list.
Now comes the part where I am having issues, and will keep this part to server1 to simplify things. At this point I haven't done any extra configuration to server2 as I am seeing issues with my setup already.
server1
I have used "Add DNS Zone" and added a zone for vps1, vps2, ns1, ns2, ns3 and ns4. One zone for each. I also added A records to domain.com for ns3 and ns4.
My domain.com zone file looks like this (edited to show relevant info only)
Code:
domain.com. 86400 IN SOA ns1.domain.com. domainhost.gmail.com.
domain.com. 86400 IN NS ns1.domain.com.
domain.com. 86400 IN NS ns2.domain.com.
domain.com. 86400 IN NS ns3.domain.com.
domain.com. 86400 IN NS ns4.domain.com.
ns7 14400 IN A 1.1.1.7
ns8 14400 IN A 1.1.1.8
domain.com. 14400 IN A 1.1.1.100
ns1 14400 IN A 1.1.1.1
ns2 14400 IN A 1.1.1.2
ns3 14400 IN A 1.1.1.3
ns4 14400 IN A 1.1.1.4
Code:
ns1.domain.com. 86400 IN SOA ns7.domain.com. domainhost.gmail.com.
ns1.domain.com. 86400 IN NS ns7.domain.com.
ns1.domain.com. 86400 IN NS ns8.domain.com.
ns1.domain.com. 14400 IN A 1.1.1.1
Code:
ns2.domain.com. 86400 IN SOA ns1.domain.com. domainhost.gmail.com.
ns3 SOA now points to ns7.domain.com. ns4 SOA points to ns3.domain.com.
(but I realize that I am now over my head and I am again having such struggle with DNS. It's the one topic my brain just fails to understand the logic of)
Using DNS Check tool at pingdom I am not getting any errors on domain.com.
However, if I run DNS Check on ns1, ns2 they come up with errors:
- Failed to find name servers of ns1.domain.com/IN.
- No name servers found at child.
No name servers could be found at the child. This usually means that the child is not configured to answer queries about the zone.
- Not enough nameserver information was found to test the zone ns1.domain.com, but an IP address lookup succeeded in spite of that.
DNS Check on ns3.domain.com and ns4.domain.com has no errors.
Is anyone able to enlighten me on what these errors are, and what I am doing wrong here?
What should the zone files of ns1,ns2,ns3,ns4 look like? What should SOA point to and should there be A and NS records for each nameserver in each zone file?
What about server2,ns9,ns10. How do I puzzle all of this together?
Thank you.