Been noticing my Virtualmin backups are failing. The first virtual server fails at " Copying records in DNS domain … domain not found!"
Dug around and noticed BIND DNS server is not started and it won’t start, at least not in the dashboard. When opening BIND in Webmin it presents a setup screen for BIND with three choices - this is new as it was previously set up. I ended up re-setting it up anyway but then I got a chroot error message and giving me an option to go into module configuration.
I ended up with none of my domains having any DNS Zones showing up. I’d go on but it seems to have fixed itself after made a change and then changed back, and I can’t tell you exactly what I did, but I think it had something to do with chroot. There’s a bug causing the above, but I am not sure where/what. Eeek.
Stop doing things. Webmin is somehow confused about how BIND is configured.
It either thinks BIND is configured to use a chroot, and it isn’t, or vice versa. You need to switch the config in Webmin to match how your BIND is actually operating (either in a chroot or not). You don’t want to start over from scratch. You want Webmin to know where you actual configuration is.
I’m not sure how this would happen, as the config files don’t change unless Webmin is reinstalled (you should not do that), or it gets changed by something else (did you run virtualmin config-system? you should not do that for services that are already in production). I’m not sure what else could cause Webmin to change config like this once things were already running, but, I’m sure there are other possibilities.
Thanks for the quick reply. Other than doing a yum update I haven’t done anything to the server or made changes in months. This issue started two days ago and I only noticed because my backup email showed errors.
Everything appears to be working just fine now. FYI I don’t use the server for DNS and it’s all done externally. Still, the config getting messed is a complete mystery.
Curious, how do I determine if my system is setup to have BIND use chroot?
Well, I am in the newbie zone. Seriously though, I don’t think I ever meant to enable BIND but something was off on my server and I got confused. Everything appears to be working now but I really don’t know why. Thanks for the help.
Oh, I am getting this error when trying to remove BIND from features and plugins:
Failed to save enabled features : The feature BIND DNS domain cannot be disabled, as it is used by the following virtual servers :
I think if I go to Edit Virtual Server for each virtual server and uncheck “DNS domain enabled” that will solve the problem. Is there a better/proper solution? Does it matter if BIND is setup and running if I am not actually using it?
we discovered more or less the same situation in Webmin yesterday. We have 2 CentOS7 servers for private DNSs and use Webmin for managing the registers. As one of our users suspected a DNS problem, we have done a check and Webmin reply is that BIND is not running (by the way it is false: BIND services run flawlessly). Then it appears that Webmin is now unable to give the right answer about the service. As for jmunjr we have automatic yum updates running. We probably encountered the problem with the same update load.