Can't turn bind dns on or off

I got the following message after the last update "Virtualmin's configuration has not been checked since it was last updated. Click the button below to verify it now.". When I click re-check, it stops with "The feature BIND DNS domain cannot be disabled, as it is used by the following virtual servers : exampledomain.com"

I can't turn it off for these servers as it's not in the list of active features. When I try to turn it on, I get the error message "Failed to save enabled features : Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page."

I don't want to use the local server as a DNS server, I'm using an external DNS, so I'd rather not switch it on. Is there anyway to alter either the settings of just the domains in question without turning it on, or to enable that option without making DNS active?

Thanks, Nick

Status: 
Closed (fixed)

Comments

One quick fix would be to get the domain's unique ID with the command :

virtualmin list-domains --domain exampledomain.com --id-only

then edit the file /etc/webmin/virtual-server/domains/$ID and remove the line dns=1

Virtualmin should prevent this from happening in the first place in more recent versions.

Thanks, that solved it.

Cheers, Nick