Best setup for DNS over 2 VPS's

Ticiba

New Member
Hi everyone, I am a returning customer to KH after having to leave 18 months ago due to personal reasons, was very happy with the VPS KH supplied and their support.

Well on returning to using VPS's my budget was limited to start with so I purchased another VPS from another provider - which is good but because I like KH VPS's now my budget is more I can come back, so I have decided to sell off the space on the other VPS.

What I am a little confused about is the best DNS settings to use, let me explain the setup:
My VPS here will act as the main one using mydomain.com and nameservers ns3 & ns4.
My VPS at other provider is using ns1 & ns2 and using separate hostname (of course).
Both have different hostnames

It is best just to add A records on my server here for ns1 and ns2 to point to the other VPS or should I add all nameservers to both VPS's?
Also should I add an A record to point to the other VPS hostname and IP here or also add them to both or just leave them as is?

Do you have any other suggestions on the best and correct setup of DNS for 2 VPS's.

Any suggestions and help is greatly received.

Tom
 
Hello Ticiba and welcome back! :)

I'm given to wonder why you want to go through configuring DNS on the two VPSs when you are going to be selling the first one off.

But to answer your questions:

It is best just to add A records on my server here for ns1 and ns2 to point to the other VPS or should I add all nameservers to both VPS's?

For redundancy I would say to add A records for your all nameservers to each VPS.

Also should I add an A record to point to the other VPS hostname and IP here or also add them to both or just leave them as is?

Yes, I would also add A records for hostnames to each vps.

cPanel also supports DNS clustering so you might want to take a look at that.

As far as my recommendation unless you are going to retain control of the first VPS and want redundancy in your DNS I would say to just move your domains over and be done with the first giving the new owner full control of the original.

Hope that helps!
 
Hi Dan, thank you for the welcome back.

I should of said I want to offer space on the other server for shared hosting, but not actually selling off the whole server in one, apologies for the confusion.

I have now got the whole DNS setup done and all seems to be working correctly.
Although I did contact Support and they did offer to perform the setup on my behalf, I really needed to learn the correct way to do this for myself as there will be more Servers added into the cluster down the road.

In the end it turned out to be pretty straight forward and easy to do, I added the following A & NS records in all DNS Zones on first VPS:
Second Servers hostname > Main IP address of second server
ns3.mydomain > IP address of ns3
ns4.mydomain > IP address of ns4
Then added NS records on first VPS so they looked like:
ns3.mydomain > hostname of second server
ns4.mydomain > ------- same as above --------
I did that with all DNS zones located on the 1st VPS

Then I did the same on the on second VPS but to point to the first VPS so they looked like:
First Servers Hostname > Main IP Address of first server.
ns1.mydomain > IP Address of ns1
ns2.mydomain > IP Address of ns2
Then added NS records on second server so they looked like:
ns1.mydomain > hostname of first server.
ns2.mydomain > ------- same as above --------

After doing that I then went to Cluster/Remote Access section in both WHM's CP and first clicked on Setup remote access key then Configure Cluster.
Upon reaching the Configure Cluster page I then selected Add A New Server To Cluster then added the details of the other servers and pasted the remote access key I left the DNS Role as standalone to start with.

After adding the servers to the cluster then I went back to Configure Cluster and under DNS Clustering clicked Enabled on both servers after reloading the page I left everything at the default value.

The final step I preform was to change the DNS Role from Standalone to Synchronize Changes on both servers.
I did notice a slight load increase for around 20 minutes following enabling Synchronize Changes but this soon eased back off and wasn't higher than 0.50.
One other step I did was just to go through each DNS Zone to make sure everything looked correct and it did.

Thought I would add a simple and very basic guide to what I did to hopefully help others that may not know, hopefully if I have missed any steps or something important Dan or another team member of the KH forum/Support can add to it.

Anyway thanks for the reply Dan.
 
Morning Tuciba :)

Excellent, I am glad you got it figured out and that everything seems to be working well!

I'll see if I can copy your post into the tutorials section as I am sure it will help someone else at some point :D
 
Top