I have 2 Webmin Servers running on Ubuntu 18.04 and 20.04. I added the second server as a Cluster Slave Servers.
If I create a new master zone, the zone is also configured on the slave... but the initial zone transfer fails.
Error message on View Records File @slave-server:
This page shows the DNS records file /var/lib/bind/test3.de.hosts, created by BIND when the zone was transferred from the master server.
However the file is currently empty, probably because the zone has not yet been transferred from the master server.
If I manually trigger a zone transfer with rndc retransfer <zonename>, everything works. A second workarround is to change the zone file on the master to trigger a zone transfer... but this workarounds should be avoided.
Can someone reproduce the issue? Perhaps the initial zone transfer is not working, because the transfer is triggered during the creation of the zone on slave side is still ongoing?
Does anything get logged to /var/log/messages on the master or slave systems indicating why the initial transfer might have failed?
I don't know , why I have a "end of file" and "permission denied". But could it happen, that the master is creating the slave dns and parallel sending the notify to the slave... so that on slave side the zone file can't be changed by 2 processes at the same time?
This logs are triggered, after I created a virtual server in virtualmin with feature "DNS Domain enabled".
Master:
Slave:
Last edit: Daniel Rosenow 2020-12-19
Permissions may be the issue here. What output do you get if you run
ls -l /var/lib/bind/testbindsync.de.hosts?On the master server this file is owned by root:bind and on the slave by bind:bind. (644)
But the strange thing is, that everything works the second time... this problem happens only on the first transfer. ch