Return of the 0 byte new secondary zone file with bind cluster use

SYSTEM INFORMATION
OS type and version Rocky Linux 9.2
Webmin version 2.021
Usermin version 1.861
Virtualmin version 7.7 Pro
Theme version 20.21
Package updates 1 package update is available

The 0 byte secondary zone file after zone creation problem is back when using bind cluster service!

Complete description of problem in closed topic at Bind Cluster name servers setup doesn't create slave zones anymore but 0 byte files are present

Raised as a github issue at Return of the 0 byte new secondary zone file with bind cluster use · Issue #565 · virtualmin/virtualmin-gpl · GitHub

There is a Webmin way of fixing this problem. The Webmin way is to change the owner for zone files who makes the BIND calls. The configuration value is hard to find, but try this:

  • Go to Webmin / Bind DNS Server
  • Click the cogwheel below:

image

Experiment with the Zone file options configuration value:

Good luck.

For Rocky the user: group is named: named and the slave files already have this ownership, even the 0 length files.

Below is from a current discussion with Jamie Cameron on Return of the 0 byte new secondary zone file with bind cluster use · Issue #565 · virtualmin/virtualmin-gpl · GitHub. Please join in, we need people with real experience like yourself.

ll /var/named/slaves/111179.xyz.hosts 
-rw-r--r-- 1 named named 0
1 Like

I have found a one line fix for the problem.

The fix is reported at Return of the 0 byte new secondary zone file with bind cluster use · Issue #565 · virtualmin/virtualmin-gpl · GitHub

Quote from fix:

I made a change to one line in the restart_on_slaves function in file /usr/libexec/webmin/bind8/bind8-lib.pl

The change is from
next if (%on && !$on{$slave->{'host'}});
to
next if (%on && !$on{$slave->{'nsname'}});

That is change letters host to nsname.

1 Like

The fix will be in the next release of Webmin.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.