We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
DNS Cluster
DNS Cluster
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,
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,
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: DNS Cluster
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.
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
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?
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?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: DNS Cluster
On server2 you can check if the DNS domains and records exist in user 'dns-cluster'.
Re: DNS Cluster
Hi,
Sorry hijack this thread. Is possible to add another cluster? Mean have dns1,dns2 and dns3 using same setup?
Sorry hijack this thread. Is possible to add another cluster? Mean have dns1,dns2 and dns3 using same setup?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: DNS Cluster
I think it's possible.zarizza wrote:Hi,
Sorry hijack this thread. Is possible to add another cluster? Mean have dns1,dns2 and dns3 using same setup?
Re: DNS Cluster
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:
on server one, I run the command:
and it returns./v-add-remote-dns-host ns2 8083 admin *******
I have ns2.servername pointed to the IP of the 2nd server. So what am I failing at here?Error: api connection to ns2 failed
Re: DNS Cluster
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
My cluster stopped sync =(
I try remove and re-add ... but not work ... just work foce sync all command
I try remove and re-add ... but not work ... just work foce sync all command
Re: DNS Cluster
hahaha
yes... can be better .... or do manual sync from all
yes... can be better .... or do manual sync from all