SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu 20.04.4 LTS |
Webmin version | 1.994 |
Please help me isolate this problem:
Setup:
ns1.example.com
ns2.example.com
ns3.example.com
ns4.example.com
Then we have have this:
client server #1
client server #2
client server #3
When we create a zone on any of the client servers, it automatically gets replicated using Webmin’s cluster name servers. But it stopped working…
What works:
When I create a zone on any of the client servers, it doesn’t give any errors.
Then all of the slaves I can see the following 0 byte files:
/var/lib/bind]> ls -lah | grep testdomain
-rw-r--r-- 1 bind bind 0 Jun 23 06:43 testdomain1.com.hosts
-rw-r--r-- 1 bind bind 0 Jun 23 06:47 testdomain2.com.hosts
-rw-r--r-- 1 bind bind 0 Jun 23 07:00 testdomain3.com.hosts
rndc reload
for any of the test domains give this:
/var/lib/bind]> rndc reload testdomain1.com
WARNING: key file (/etc/bind/rndc.key) exists, but using default configuration file (/etc/bind/rndc.conf)
rndc: 'reload' failed: not found
no matching zone 'testdomain1.com' in any view
The workaround is to do service named reload
on all four name servers, at which point replication starts happening and zero byte files are populated with the correct zone data.
Deleting a zone also works, I can see the .hosts files are removed from all four name servers.
Here is post from 2009 that discusses similar problems:
Troubleshooting tips broadly covered in that post are:
- Check firewall
- Check
allow-transfer
- Check permissions
- Check
listen-on
.
I checked firewall with netstat -an | grep :53
It says bind is listening on both UDP and TCP port 53.
FirewallD
is stock so TCP (and UDP) 53 is open.
Also since reload
works, at this point I really don’t think it’s the firewall. And it used to work
listen-on
is interesting because the only listen-on*
is in /etc/bind/named.conf.options
and that is:
listen-on-v6 { any; };
I don’t know where to look next
If I had to guest the behind the scenes of “Re-start DNS server” when you add a domain is not succeeding…
Please give me some tips for taking this further?