Tuesday, December 2, 2014

domain name system - Can I Point about 30 DNS Zone NS entries to the same two IP Adresses?



I have about 60 Domain Names That I Am Creating Private name Servers For. Is it possible for me to just point ns1.mydomain.com, ns1.mydomain2.com, ns1.mydomain3.com etc. to the same nameserver IP address through the DNS Zone Record for each domain? And if I can do that do I have to put the original nameserver domain name in the DNS Zone SOA or can i juts map it too ns1.mydomain.com? Does any of that make sense? Other wise I am going to create like 30 nameservers on this one machine. Also I am using all C-Class IPs. I don't want to create 30 nameservers on this one machine and waste precious IP addresses. Any tips?



Thanks in advance for your help.




I also forgot to mention that I am trying to keep the fact that these are all on the same server Private so the SOA record for each domain needs to point to its own nameserver not the domain name for the real nameserver.


Answer



This is my conclusion from all the help and information given:



Actual Name Servers:



ns1.maindomainnameserver.com = 123.456.789.1
ns2.maindomainnameserver.com = 123.456.789.2



DNS Zone Entries:



Zone: domain1.com 
SOA is set to ns1.domain1.com
NS is set to ns1.domain1.com and ns2.domain1.com
A record ns1 = 123.456.789.1
A record ns2 = 123.456.789.2

Zone: domain2.com

SOA is set to ns1.domain2.com
NS is set to ns1.domain2.com and ns2.domain1.com
A record ns1 = 123.456.789.1
A record ns2 = 123.456.789.2

Zone: Domain3.com (shares nameservers with domain2.com)
SOA set to ns1.domain2.com
NS is set to ns1.domain2.com and ns2.domain1.com



From what I have gotten from everybody, this should work and mask that domain1.com and domain2.com share the same nameservers. And in the end my WHM Nameservers List should only contain:



ns1.maindomainnameserver.com = 123.456.789.1 
ns2.maindomainnameserver.com = 123.456.789.2

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...