2 Servers running different sub-domains. Is it possible?

UnitHosting

Member
Sep 16, 2003
13
0
151
2 Servers running different sub-domains. Is it possible?

eg.
Server 1, hosts "sub1.hello.com"
Server 2, hosts "sub2.hello.com"

What do you need to configure? DNS Zone file?

cPanel.net Support Ticket Number:
 

alareach

Well-Known Member
Aug 12, 2001
57
0
306
I have done this quite a bit.
Using your example of the domain hello.com:

First, set up the second level domain on one of your boxes (assuming you host it), or set up the first sub-domain on that box. e.g. sub1.hello.com note the IP of course.

Then on the second box set up sub2.hello.com and also note the IP of that account.

Finally, go to the box or service who is handling dns for hello.com and add an A record for each:

For examle:
sub1 IN A 123.45.67.89 (IP for sub1)
sub2 IN A 123.98.76.54 (IP for sub2)

There are a few other ways to tackle this, but the one above should suit you.

cPanel.net Support Ticket Number:
 

captg

Registered
Jul 14, 2003
2
0
151
What do you recommend when one of the subdomains is on your box and doesn't have a static ip address? thanks

cPanel.net Support Ticket Number: