Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm wondering how can I use the same domain to setup 3 cPanel server DNSes, instead of having a dedicated domain for each server.

Here's an example of what I want to achieve:

Server A:

Hostname: a.mydomain.com

Name Server 1: ns1.mydomain.com

Name Server 2: ns2.mydomain.com

Server B:

Hostname: b.mydomain.com

Name Server 1: ns3.mydomain.com

Name Server 2: ns4.mydomain.com

Server C:

Hostname: c.mydomain.com

Name Server 1: ns5.mydomain.com

Name Server 2: ns6.mydomain.com

Please help. Thanks.

share|improve this question

closed as off-topic by masegaloeh, Michael Hampton Aug 3 '15 at 3:16

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

3  
Why can't ns1 and ns2 be authoritative for all three subdomains? Is there a reason you want 6 DNS servers for 3 total subdomains? – MDMarra Jul 5 '10 at 1:26
1  
I think the op has misunderstood the distincting between a DNS zone and a nameserver – Mark Henderson Jul 5 '10 at 1:30

Ok, what you've got there seems very odd. You setup should look something like this:

Hostname Setup:

Hostname: mydomain.com
Name Server 1: ns1.mydomain.com
Name Server 2: ns2.mydomain.com
Name Server 3: ns3.mydomain.com
Name Server 4: ns4.mydomain.com
Name Server 5: ns5.mydomain.com
Name Server 6: ns6.mydomain.com

I assume you are using a commerical DNS hosting provider? Or do you actually have 6 DNS servers? I'm assuming hosting because if you've got the know-how to synchronise 6 DNS servers then this would be a no-brainer for you.

So, log into your DNS hosting provider, and then create a records for your subdomains inside your zone for mydomain.com, such as

  • a - x.x.x.x
  • b - y.y.y.y
  • c - z.z.z.z

(where x/y/z are the IP addresses of your actual servers).

share|improve this answer

All three would have the same pair of nameservers. Just point each individual hostname at the addresses homed at the appropriate server.

share|improve this answer