Multiple Servers Same Domain Name - Is this correct?
I am planning to set up multiple servers using the same domain and want to make sure I am doing this correctly. Can someone please confirm if I am heading in the right direction?
Server 1 Hostname = server.myserver.com | ns1.myserver.com = 1.1.1.1 & ns2.myserver.com 1.1.1.2
Server 2 Hostname = server2.myserver.com | ns3.myserver.com = 1.1.1.3 & ns4.myserver.com 1.1.1.4
Server 1: create myserver.com website
Server 2: Do I create myserver.com website on this server too? Does it need to mirror site #1? This is where I get stuck.
Can someone please talk me through this? It's making my brain hurt, lol.
-
Hey there! That all sounds right to me. The actual website would only run off Server1, so you don't need to create a cPanel account at all for that domain on Server2. 0 -
Great. Thanks. I appreciate the feedback. 0 -
I"ve understood your question. let me explain your question more. you have two different server with different Nameserver and ip. your question is should you host same website on multiple server? The Question is Yes. You can Host same website on Two servers. You have to do enter NS of both server. Like Ns1 of first server and ns2 of second server. But there is also a problem. If you host same website on both Server. You don"t know where you are changing. For changing you have to do login using cpanel one click softaclous. If you want to change anything you have to do change on both servers. My recommendation is. Don"t do these. Host on single server. instead of creating multiple NS of two server. You can create same ns for two servers. I am also using the same and you can do without clusteting. i hope you will understand. 0 -
Server 1 Hostname = server.myserver.com | ns1.myserver.com = 1.1.1.1 & ns2.myserver.com 1.1.1.2 Server 2 Hostname = server2.myserver.com | ns3.myserver.com = 1.1.1.3 & ns4.myserver.com 1.1.1.4 Server 1: create myserver.com website Server 2: Do I create myserver.com website on this server too? Does it need to mirror site #1? This is where I get stuck.
The domain myserver.com is in Server 1, which means that the DNS Zone for myserver.com is in Server 1. When you create nameservers, ns1, ns2, ns3 ns4 etc. you add A records for those in the DNS Zone of myserver.com. myserver.com has nameservers ns1.myserver.com & ns2.myserver.com, and in those nameservers myserver.com points to Server 1, so if you create myserver.com account in another server it does not work, it will go to Server 1.0 -
Now I am confused again. Here is what I am trying to do. I already have 1 server online that I am hosting clients on. Server 1 Hostname = server.myserver.com | ns1.myserver.com = 1.1.1.1 & ns2.myserver.com 1.1.1.2. I was going to bring another server online and start adding new customers there. So I figured I would use the hostname server2.myserver.com and set nameserver 3 & 4 to point to that server. I guess the core website doesn't matter since it will be on server 1. I just want to make sure when I give customers NS3 & NS4 their sites resolve to the correct server. 0 -
Yes - you would edit the DNS records on Server1 to ensure that ns3 and ns4, which are being used on Server2, point to the correct machine. 0 -
answering your question in detail as I"ve faced the same issue in past. you have setup one server with hostname server1.myserver.com with ns1 and ns2 this server is working fine now. If you want to setup second server server2.myserver.com you have to add record in server1. add A record in myserver.com with Server2 ip Like A record server2.myserver.com 1.1.1.2 now same as for NS Add A record in server1 in domain myserver.com you don"t need to enter any record in server2 you have to do all with server1 Better option is to use cloudflare for dns management. 0
Please sign in to leave a comment.
Comments
7 comments