Web Hosting Talk







View Full Version : Linking Multiple VPS's with the same domain name


BassHost
06-16-2011, 11:02 PM
Hello All, This is my first tutorial, so please bear with me....


Say we have 2 VPS’s, they will be distinguished as VPS1 and VPS2

You want both VPSs to use the same domain name as the hostname (website.com for both)

You first need to setup VPS1 Nameservers to NS1 and NS2 and corresponding IP addresses.
Setup VPS2 Nameservers to NS3 and NS4 and corresponding IP addresses.

Set hostname for VPS1 to something like: server1.website.com
Set hostname for VPS2 to something like: server2.website.com
(Obviously don’t use these, as they will be likely to be easier to attack)

Now from there, we have to set some DNS zones that will point to each other.

On VPS1:

Make sure all of your DNS zones are set for the first VPS that include its nameservers, IPs, and hostname, and any subdomains and such. From there, You will need to add A Entries that include the same things from VPS2
From VPS1, you should have/add the following DNS A Entries in:

Website.com. 86400 IN SOA NS1.website.com.

Website.com. 86400 IN NS ns1.website.com.

Website.com. 86400 IN NS ns2.website.com.

Ns1 14400 IN A xxx.xxx.xx.xx (First IP)

Ns2 14400 IN A xx.xxx.xx.xx (second IP)

Localhost 14400 IN A 127.0.0.1

Mail 14400 IN CNAME server1.website.com.

www 14400 IN CNAME server1.website.com.

ftp 14400 IN CNAME server1.website.com.

server2 14400 IN A xx.xxx.xxx.xx (First IP of Server2)

ns3 14400 IN A xx.xxx.xxx.xx (First IP of Server2)

ns4 14400 IN A xx.xx.xxx.xx (Second IP of Server2)

ns3 14400 IN NS server2.website.com.

ns4 14400 IN NS server2.website.com.




From VPS2, you should have/add the following DNS A Entries in:

Server2.website.com. 86400 IN SOA NS3.website.com [RootEmail]@Website.com

Server2.website.com. 86400 IN NS NS3.website.com.

Server2.website.com. 86400 IN NS NS3.website.com.

Server2.website.com. 14400 IN A xxx.xx.xxx.xx (IP of NS3.website.com)

Localhost 14400 IN A 127.0.0.1

Server2.website.com. 14400 IN MX 0 server2.website.com.

Mail 14400 IN CNAME server2.website.com.

www 14400 IN CNAME server2.website.com.

ftp 14400 IN CNAME server2.website.com.

ns1 14400 IN A xx.xxx.xx.xxx (First IP of server1)

ns2 14400 IN A xx.xxx.xx.xxx (Second IP of server1)

server1.website.com. 14400 IN NS ns1.website.com.

server1.website.com. 14400 IN NS ns2.website.com.


And whenever you are adding in a DNS entry that has a TLD (i.e. “.COM, .NET, .US, .TV, etc.), make sure you end it with a period (“.”)

I hope this helps anyone that has this issue. I will also be posting this on the BassHost Forums over at BassHost.net

DK SEO
06-25-2011, 11:30 PM
How to set multiple resellers on one domain

BassHost
06-25-2011, 11:36 PM
well it would be a similar process. if you don't have a vps, but you know the hostname for the server, then you should be able to link multiple reseller accounts to the same domain.

You would still pretty much have all of the A records the same. Hope this helps...

karigaalan
07-18-2011, 04:40 AM
thanks for the tut

sam_basshost
07-24-2011, 06:53 AM
Never knew you wrote a tutorial todd. We need to start posting this good stuff on out blog :)

BassHost
07-24-2011, 11:03 PM
yes, we could do something like that. :)

xcitchx
05-23-2012, 12:00 PM
thank for tutor. i'll try to combine vps + shared hosting + reseller hosting