Help - Search - Members - Calendar
Full Version: Linking two servers to the same domain???
The Planet Forums > Control Panels > cPanel/WHM
NetGeek
Hi

I just got a new second box and want to make boths box's have the same domain name with different host names and either the same dns or different dns. here is what I have and what I did


Server 1 :
Host Name: one.mydomin.com
IP: 1.1.1.1
DNS: ns1.mydomain.com 11.11.11.11, ns2.mydomain.com 22.22.22.22

Server 2 :

Host name: two.mydomain.com
IP: 2.2.2.2
DNS: ns3.mydomain.com 33.33.33.33, ns4.mydomain.com 44.44.44.44

- mydomain.com is of course already regsitered and under it I registered all 4 DNS servers names and IP's

- mydomain.com is pointing to ns1.ev1servers.net and ns2.ev1servers.net

- Server 1 is working perfectly and all the accounts on it are pointing to ns1 and ns2

here are the zone files in server 1 :

mydomain.com.db :

HTML
; Modified by Web Host Manager
; Zone File for mydomain.com
$TTL 14400
@ 14440 IN SOA ns1.mydomain.com. myemail.hotmail.com. ( 2005052500
14400
7200
3600000
86400
)

mydomain.com. 14400 IN NS ns1.mydomain.com.
mydomain.com. 14400 IN NS ns2.mydomain.com.

mydomain.com. 14400 IN A 1.1.1.1

localhost.mydomain.com. 14400 IN A 127.0.0.1

mydomain.com. 14400 IN MX 0 mydomain.com.

mail 14400 IN CNAME mydomain.com.
www 14400 IN CNAME mydomain.com.
ftp 14400 IN CNAME mydomain.com.
ns1 14400 IN A 11.11.11.11
ns2 14400 IN A 22.22.22.22
one 14400 IN A 1.1.1.1
ns4 14400 IN A 44.44.44.44
ns3 14400 IN A 33.33.33.33
two 14400 IN A 2.2.2.2



And the one.mydomain.com

HTML
; Modified by Web Host Manager
; Zone File for one.mydomain.com
@ 14400 IN SOA ns1.mydomain.com. root.ns.mydomain.com. (
2004012701
28800
7200
3600000
86400
)

one.mydomain.com. 14400 IN NS ns1.mydomain.com.
one.mydomain.com. 14400 IN NS ns2.mydomain.com.
one.mydomain.com. 14400 IN A 1.1.1.1

localhost.one.mydomain.com. 14400 IN A 127.0.0.1

one.mydomain.com. 14400 IN MX 0 one.mydomain.com.



And two.mydomain.com.db :

HTML
; cPanel 10.1.0
; Zone file for two.mydomain.com
$TTL 14400
@ IN SOA ns1.mydomain.com. myemail.hotmail.com. (
2005052201 ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

two.mydomain.com. IN NS ns1.mydomain.com.
two.mydomain.com. IN NS ns2.mydomain.com.

two.mydomain.com. IN A 2.2.2.2

localhost.two.mydomain.com. IN A 127.0.0.1

two.mydomain.com. IN MX 0 two.mydomain.com.

mail IN CNAME two.mydomain.com.
www IN CNAME two.mydomain.com.
ftp IN CNAME two.mydomain.com.



- in two.mydomain.com there is a zone file similar to the mydomain.com.db on server 1 and with the same name..


- I asked for all dns servers to be added into the ev1 network
- more than 72hrs has been passed

- What did I missed???


Best wishes
NetGeek
Nobody had came across something like this????? :eek:
theuruguayan
Probably this: mydomain.com is pointing to ns1.ev1servers.net and ns2.ev1servers.net

if you point your mydomain.com to ev1 dns servers they will manage the domain. Any chance you make in WHM will not be reflected in any way. If you want to pm domain i will happy take a look at it.
Gary Simat
your over complicating what your trying to do... if your trying to host the same domain accross several servers without a load balancer you could use a round robin dns. just add the multiple A records in the zone for that domain, one for each ip...
NetGeek
yes mydomain.com is pointing to ns1.ev1servers.net and ns2.ev1servers.net
shall we change it to ns1.mydomain.com and ns2.mydomain.com?
Gary Simat
no it is fine for it to point to those 'name servers' that doesnt mean your site is pointing there though. the A records for www and domain.com is where it is pointing to just add it to look somthing like this:

www A x.x.x.1
domain.com A x.x.x.1
www A x.x.x.2
domain.com A x.x.x.2
www A x.x.x.3
domain.com A x.x.x.3

Get the idea?
NetGeek
Hi Gary,

I am not sure that I got your idea. I don't know what the www's records have to do with it.

All I want is, name my new server to be something like newserver.mydomain.com where mydomain.com is the same domain used to name my 1st server serverOne.mydomain.com.

Best wishes icon_smile.gif
Gary Simat
then just make an A record in each name server pointing to that ip...

newserver.domain.com A x.x.x.x
NetGeek
Gary, Thank you for being paciant with me.. DNS is always my worst erea rolleyes.gif


Ok .. If you look at the first file in the post which is mydomain.com.db and which is on the 1st server there is an entry :

two 14400 IN A 2.2.2.2


two is the host name for the second server and its ip.


and if we look at the file two.mydomain.com as well on the 1st server there are an entry.


and on the newserver there are as well.


icon_sad.gif
theuruguayan
you need to put all dns in one server only. or do it in both (ns1 -server 1 and ns2 -server2), but you need to put the same named file configuration in both.

And yes, you need to point it to your own dns servers.. because changes are not reflected because you have your domain point it at ev1.

If you want this results to appear atm, you need to make the changes in dns section of ev1.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.