Page 1 of 1

Sync DNS records with another server not running VestaCP

Posted: Thu Jun 22, 2017 4:57 am
by chaosjester
Hi All,

I currently have 2 vps's running VestaCP and have the dns cluster set up and working, but I want to shut down one of them and migrate to only 1. I have another smaller VPS that is running centos7 and want to use it instead of the 2nd Vesta server.

Does anyone know a good way to sync the DNS records from Vesta to another server just running BIND?

TIA

Re: Sync DNS records with another server not running VestaCP

Posted: Wed Jul 19, 2017 1:27 pm
by skurudo
There is no ready solution for this.
But you have bind with VestaCP installation, try to look how sync two bind server.

Re: Sync DNS records with another server not running VestaCP

Posted: Thu Jul 27, 2017 7:00 am
by gecube_ru
Hello!

I asked the same questions yesterday: viewtopic.php?f=30&t=15013

I think that there is direct naive solution (example for Centos):
1. take files /etc/named.conf and /etc/rndc.key and copy to second server
2. copy also all files included in /etc/named.conf. They are usually globbed by mask: /home/*/conf/dns/*.db
3. apply new configuration on second server

I am not sure that this will be 100% robust solution, but can be easily scripted.