Two Servers, One Domain

They have: 19 posts

Joined: Jun 2004

I just purchased a second Linux cPanel server and I am have a nameserver problem. Here is an example of my setup...

Server #1 has the domain abc.com. This domain is registered. The nameservers for this server are ns1.abc.com and ns2.abc.com. The hostname of this server is hosting.abc.com. The ip address for the nameservers are 11.1111.11 & 11.1111.12.

Server #2 has the domain abc.com but it is not registered. The Nameservers for this server are ns3.abc.com and ns4.abc.com. The hostname of this server is hosting2.abc.com. The ip address for the nameservers are 22.2222.22 & 22.2222.23.

I had a problem that hosting2.abc.com could not be found. Even though these two servers are not clustered, I had to add a dns zone on Server #1. So I added a dns zone on Server #1 for hosting2.abc.com that uses ip address 22.2222.22. This seemed to solve this problem.

I have registered ns3.abc.com & ns4.abc.com at the registar.

Should I also add a dns zone on Server #1 for each of the two nameservers (ns3.abc.com & ns4.abc.com) to point to 22.2222.22 & 22.2222.23?

They have: 18 posts

Joined: Sep 2004

Why are you setting up separate nameservers for each machine? It looks like you're trying to set up round-robin dns? I'm not sure what you're trying to achieve.

He has: 1,758 posts

Joined: Jul 2002

Hey,

The best way to achieve what you want is to have two nameservers registered with the registrar. These servers should only handle DNS requests and route traffic to the appropriate webserver.

So really you should be using four servers for the best setup.

Andy

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.