Page 1 of 2

DNS Cluster

Posted: Sun Feb 28, 2016 5:30 am
by edg3d903
Hi,

I have two VPSes. VPS1 is web, mail, cp, db - and I'd like VPS2 to be redundant dns server. So, ns1.domain.com will be on VPS1 and ns2.domain.com will be on VPS2.

I have VestaCP installed on both. I'm find it a difficult challenge to configure the master-slave cluster of DNS between the two servers.

Would appreciate your help.

Thanks,

Re: DNS Cluster

Posted: Sun Feb 28, 2016 10:32 am
by tjebbeke
It isn't that hard.

http://vestacp.com/docs/#how-to-setup-dns-cluser

Server1 : Web, DNS master, ...
Server 2: DNS Slave

1. On server2 create user 'dns-cluster'
2. on server1 run command as root: v-add-remote-dns-host server2.domainname.com 8083 admin passwordofadminaccountserver2


Password and host name should be replaced with relevant data of course.

Re: DNS Cluster

Posted: Sun Feb 28, 2016 8:13 pm
by edg3d903
You're right, it isn't too difficult. I ran into a problem where running the command v-add-remote-dns-host would spit back a "no directory or file found" error. But I was able to search and find a solution to that (putting /source/profiles) before the command.

The only other issue that I'm see is when I check the nameservers on intodns, it gives an error that the dns server (server2) is not responding. But everything with that server looks fine (port 53 is open, dns server is running). Any ideas?

Re: DNS Cluster

Posted: Mon Feb 29, 2016 10:53 am
by tjebbeke
On server2 you can check if the DNS domains and records exist in user 'dns-cluster'.

Re: DNS Cluster

Posted: Tue Mar 01, 2016 10:21 am
by zarizza
Hi,

Sorry hijack this thread. Is possible to add another cluster? Mean have dns1,dns2 and dns3 using same setup?

Re: DNS Cluster

Posted: Tue Mar 01, 2016 12:37 pm
by tjebbeke
zarizza wrote:Hi,

Sorry hijack this thread. Is possible to add another cluster? Mean have dns1,dns2 and dns3 using same setup?
I think it's possible.

Re: DNS Cluster

Posted: Fri May 20, 2016 3:52 am
by jgriggs79
Not meaning to hijack this thread, but I'm trying to set up a Cluster with 2 servers...

on server one, I run the command:
./v-add-remote-dns-host ns2 8083 admin *******
and it returns
Error: api connection to ns2 failed
I have ns2.servername pointed to the IP of the 2nd server. So what am I failing at here?

Re: DNS Cluster

Posted: Sat May 21, 2016 4:51 am
by jgriggs79
I got that problem solved. But I've checked the 2nd server, and nothing ever syncs to the 2nd server for DNS. I'm not sure what I did wrong?

Re: DNS Cluster

Posted: Fri Jul 08, 2016 2:00 pm
by mestresan
My cluster stopped sync =(

I try remove and re-add ... but not work ... just work foce sync all command

Re: DNS Cluster

Posted: Fri Jul 08, 2016 2:39 pm
by mestresan
hahaha

yes... can be better .... or do manual sync from all