Page 1 of 1

dns slave and master

Posted: Tue Dec 02, 2014 11:16 pm
by jhoedram
Hello everyone:

I have 2 vps servers, both have vesta. I installed vesta in the 2 domains:

dominio1.com, when I add a domain, I offer these dns (ns1.dominio1.com / ns2.dominio1.com)

dominio2.com when a website would like to add here, I would also use (ns1.dominio1.com / ns2.dominio2.com), you could?

I hope you can tell me how?
And also let me know if this affects the performance of my server.

Thanks

Re: dns slave and master

Posted: Wed Dec 03, 2014 5:50 am
by demian
1. create on both server user dns-cluster

2.
on server ns1.dominio1.com execute

Code: Select all

/usr/local/vesta/bin/v-add-remote-dns-host  {IP ns2.dominio2.com} 8083 admin password api dns-cluster
on server ns2.dominio2.com execute

Code: Select all

/usr/local/vesta/bin/v-add-remote-dns-host  {IP ns1.dominio1.com} 8083 admin password api dns-cluster
executes very fast
synchronization dns every 5 minutes

admin cron task: */5 * * * * sudo /usr/local/vesta/bin/v-update-sys-queue dns-cluster