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. You’ll see the screenshot below:
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. Access the terminal and run the two commands below.
- This command will reset the config:
webminbindconf=/etc/webmin/bind8/config ; rm -f $webminbindconf ; cp /usr/libexec/webmin/bind8/config-CentOS-Linux-8.0-ALL $webminbindconf