I tried to migrate the DNS cluster to Master → Slave. After sync with v-sync-dns-cluster, the slave DNS does not answer queries anymore.
Hestia Server is behind a NAT, backup DNS Server have only a public IP address and is hosted at other provider. In the Bind configuration file on slave server, I see the private IP address as master which of course can not work.
Is there a way to prevent this? As I understand, we need to add “transfer-source ;” to every zone.
Here an example:
zone “example.com” {
type master;
file “/etc/bind/zones/example.com.zone”;
transfer-source ;
};
This should be done automatically by the Hestia control panel when creating a DNS zone if the server is running behind a NAT.
Here the log:
Mar 24 20:53:43 ns2 named[9092]: transfer of ‘xyz/IN’ from 192.168.101.30#53: shut down: operation canceled
Mar 24 20:53:43 ns2 named[9092]: transfer of ‘xyz/IN’ from 192.168.101.30#53: Transfer status: operation canceled
Mar 24 20:53:43 ns2 named[9092]: transfer of ‘xyz/IN’ from 192.168.101.30#53: Transfer completed: 0 messages, 0 records, 0 bytes, 23.317 secs (0 bytes/sec)
Slave DNS try to connect to the master with IP 192.168.101.30 and not the public, so no records are transferred.
I have changed the file v-add-remote-dns-domain on the Hestia Server, but unfortunately still have the same problem. On the DNS Cluster I see this in the named.conf:
zone “xyz.com” in {type slave; masters { 192.168.101.30; }; file “/home/dns-cluster/conf/dns/xyz.com.db”;};