Mobile app version of vmapp.org
Login or Join
Cugini213

: Private Nameservers and DNS for 2 dedicated servers We just recently rent our second dedicated server with WHM from our hosting provider. But we have issues with the DNS and would like some

@Cugini213

Posted in: #Dns #Domains #IpAddress #Nameserver #Server

We just recently rent our second dedicated server with WHM from our hosting provider. But we have issues with the DNS and would like some input to find the solution.
The first server have its nameservers like:

ns1.myprivatename.com -> IP 10.0.0.1
ns2.myprivatename.com -> IP 10.0.0.2

In my domain registar there are the glue records for the myprivatename, again:
ns1.myprivatename.com -> IP 10.0.0.1
ns2.myprivatename.com -> IP 10.0.0.2
and everything works fine.

Now on the second server, the hosting provider set the same nameservers with new ips of the second server, so:

ns1.myprivatename.com -> IP 20.20.0.10
ns2.myprivatename.com -> IP 20.20.0.20

On the new server I have created new hosting accounts for a few new domains and set changed the NS settings for these domains to my above NS, according to the guidance of my hosting provider.

But I can't understand how could these sites be reached, since the ns1.myprivatename.com nameserver points to the ips of the first server.

Does this make any sense, or I should change hosting provider?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cugini213

1 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

There is no issue at all in running your own DNS servers and cPanel as you have seen has its own built in DNS server for webmasters to host DNS on the cPanel server. In order to make this work you will have to make sure that the DNS server's IP addresses are changed and reflected appropriately.

On server 1...
ns1.domain.com > IP 10.0.0.1
ns2.domain.com > IP 10.0.0.2

On Server 2...
ns3.domain.com > IP 20.20.0.10
ns4.domain.com > IP 20.20.0.20

At that point what you tell your users to do for their domain names is that users on server 1 point their name server records to ns1.domain.com and ns2.domain.com and the users on server two to point their name server records to ns3.domain.com and ns4.domain.com.

By not using the server domains themselves and defining specific domains for the name servers themselves this will enable you to move the DNS servers out of cPanel at a later date should you use and to merge all your DNS hosting into a single set of servers for all of your clients (cPanel provides a free software stack for this called cPanel WHM DNSONLY with the instructions at lowendbox.com/blog/handle-dns-properly-with-cpanel/)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme