SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu Linux 24.04.2 |
Webmin version | 2.301 |
Virtualmin version | 7.30.4 |
Webserver version | Apache version 2.4.58 |
Related packages | BIND version 9.18.30 |
Hello there everyone.
I just found the other day something not a big deal at all, maybe cosmetic (not sure if it is affecting something “under layer”), but it is related when the admin of the Virtualmin server suspends a Virtual server account, and its BIND Zone name.
Here is the deal:
On my server (details specified above) when I suspend an account, everything stops for that virtual server account (Apache, Postfix, DNS, etc.). So, suspension works as expected.
But regarding the DNS part, I noticed 2 files being edited when suspending:
One is /etc/bind/named.conf.local
On that one, the “disable” part of the zone name is added and removed properly without issue when suspending/unsuspending:
From this:
zone “domain.com.disabled” {
type master;
file “/var/lib/bind/domain.com.hosts”;
allow-transfer {
127.0.0.1;
localnets;
x.x.x.x;
};
};
to this:
zone “domain.com” {
type master;
file “/var/lib/bind/domain.com.hosts”;
allow-transfer {
127.0.0.1;
localnets;
x.x.x.x;
};
};
…
But the other file:
/etc/webmin/bind8/zone-names
(permissions and ownership of that file:
Attrs: --------------e-------
Access: (0644/-rw-r–r–) Uid: (0/root) Gid: (0/root)
)
The line where the virtual server account is specified changes from this:
zone_1=domain.com 2 master * 0 /var/lib/bind/domain.com.hosts
to this:
zone_1=domain.com.disabled 2 master * 0 /var/lib/bind/domain.com.hosts
when suspending.
so in BIND (under webmin servers), it is shown as:
But then, when the virtual server account is re-enabled (unsuspending), everything returns to normal (Apache, postfix, etc. ) and it works perfectly fine, but that file stays with the edited version of the zone name:
zone_1=domain.com.disabled 2 master * 0 /var/lib/bind/domain.com.hosts
That means, that if I go to BIND, the zone is still called “domain.com.disabled”, as shown on my screenshot above.
Again, I have not seen an issue when making an account to be unsuspended, returned to normal, and keeping the “.disabled” part in the zone name. I’m just curious about the renaming behavior. (I went ahead, and manually edited the file to remove the “disabled” part anyway)
Could you verify guys if it’s some kind of a little cosmetic bug, or it is just my server having this strange behavior.
Thanks