Page 1 of 1

3-Server Setup with External DNS

Posted: Sun Dec 10, 2017 2:04 am
by Radi
Hello guys.

Let's say I have 3 VPS'es

VPS1 - 1.1.1.1
VPS2 - 2.2.2.2
VPS3 - 3.3.3.3

I want VPS1 to be webserver+database+ftp+mail server. I want VPS2 and VPS3 to be only DNS servers(master + slave DNS), but when I add a Web domain to VPS1, I want the DNS records to be created on VPS2 and VPS3, so VPS1 use them for DNS. I also want to be able to add another VPS4 (4.4.4.4) and etc. to be used as webserver+database+ftp+mail server. DNS for VPS4 should be handled by VPS2 and VPS3. They should be like master nameservers for my whole setup of webservers. Is this possible? If I confused you, can post a diagram.

P.S. I hope the creation of user accounts in my scenario can work automatically(considering using Vesta for hosting offers).

Re: 3-Server Setup with External DNS

Posted: Sun Dec 10, 2017 6:33 am
by mehargags

Re: 3-Server Setup with External DNS

Posted: Sun Dec 10, 2017 12:10 pm
by Radi
This works for DNS server "named" regardless of being web server or not... infact, VestaCP is a full stack on every VPS so you can use all VPS as Webservers and still make one of them as Master DNS replicating zones to other VPSs as backup DNS

Re: 3-Server Setup with External DNS

Posted: Tue Dec 19, 2017 12:35 am
by Radi
I got it setup the following way and it's working.

VPS1 got the VPS2 and VPS3 as DNS slaves.
VPS2 got VPS3 as a DNS slave(usable for just plain DNS hosting). Of course I had to create child-ns of the nameserver domain on all of them.