Virtualmin Bind configuration on CentOS 7 gone after upgrading to Virtualmin 7.2 or Webmin 1999

If you’re running a Virtualmin system, and all of a sudden your backups are failing with errors like these:

Creating backup for virtual server example.com ..
    Copying virtual server configuration ..
    .. done

    Backing up Cron jobs ..
    .. none defined.

    Copying records in DNS domain ..
    .. domain not found!

Similarly, you then navigate to Webmin / Bind Configuration and there is looks like Bind has completely lost it’s configuration:


The primary configuration file for BIND /var/named/chroot/etc/named.conf does not exist, or is not valid. Create it?




Next:

You’re in hosting. Don’t panic. That doesn’t help anyone. This is Keith’s rule #1.

Cause & Solution

Webmin has an issue with it’s bind config. The commands below will reset the config.

webminbindconf=/etc/webmin/bind8/config ; rm -f $webminbindconf ; cp /usr/libexec/webmin/bind8/config-CentOS-Linux-8.0-ALL $webminbindconf

Reference

https://forum.virtualmin.com/t/bind-dns-server-uninstalled-chroot-issue-on-1-999-x-update/116410/28?page=2

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top