# CentOS 7: Webmin BIND service not starting, backups failing as a result and more

**URL:** <https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404>\
**Category:** Help! (Home for newbies)\
**Created:** [August 9, 2022, 5:35am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404 "2022-08-09T05:35:36Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmunjr](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/j/d9b06d/32.png) [@jmunjr](https://forum.virtualmin.com/u/jmunjr)\
**Post date:** [August 9, 2022, 5:35am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/1 "2022-08-09T05:35:36Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| Centos 7.9.2009 | REQUIRED |
| Virtualmin version 7.1 | REQUIRED |

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.

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [August 9, 2022, 5:45am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/2 "2022-08-09T05:45:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jmunjr](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/j/d9b06d/32.png) [@jmunjr](https://forum.virtualmin.com/u/jmunjr)\
**Post date:** [August 9, 2022, 6:24am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/3 "2022-08-09T06:24:13Z")

</div>

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?

Thanks again

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [August 9, 2022, 7:20am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/4 "2022-08-09T07:20:54Z")

</div>

> [@jmunjr](#):
>
> FYI I don’t use the server for DNS and it’s all done externally. Still, the config getting messed is a complete mystery.

Then why the heck is BIND even running or enabled in Virtualmin?

Disable that feature in Features and Plugins and disable the service and stop it.

---

<div class="post-metadata">

**Author:** ![jmunjr](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/j/d9b06d/32.png) [@jmunjr](https://forum.virtualmin.com/u/jmunjr)\
**Post date:** [August 9, 2022, 2:43pm UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/5 "2022-08-09T14:43:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jmunjr](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/j/d9b06d/32.png) [@jmunjr](https://forum.virtualmin.com/u/jmunjr)\
**Post date:** [August 9, 2022, 2:54pm UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/6 "2022-08-09T14:54:10Z")

</div>

Oh, I am getting this error when trying to remove BIND from features and plugins:

```auto
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?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [August 9, 2022, 6:33pm UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/7 "2022-08-09T18:33:34Z")

</div>

> [@jmunjr](#):
>
> Is there a better/proper solution? Does it matter if BIND is setup and running if I am not actually using it?

Virtualmin Pro allows you to perform mass update for all virtual servers using UI. Using Virtualmin GPL you can disable `DNS feature` one by one by editing each virtual server individually.

Also, I do not see how your Webmin BIND config happened to be messed up after Webmin upgrade. This is not something should happen nor something I could reproduce.

If your DNS is hosted elsewhere you generally don’t need BIND running locally.

---

<div class="post-metadata">

**Author:** ![JLE67](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@JLE67](https://forum.virtualmin.com/u/JLE67)\
**Post date:** [September 27, 2022, 10:00am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/8 "2022-09-27T10:00:16Z")

</div>

Hello,  
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.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 27, 2022, 10:11am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/9 "2022-09-27T10:11:17Z")

</div>

> [@JLE67](#):
>
> (by the way it is false: BIND services run flawlessly)

Yes, this issue doesn’t break BIND service itself. It breaks Webmin BIND module config, which stops seeing system BIND service at the right place.

The fix for this issue is as simple as that –

> [@CentOS 7: Unable to start BIND after Webmin update](https://forum.virtualmin.com/t/centos-7-unable-to-start-bind-after-webmin-update/117035/15):
>
> Nevermind. I think I still see an issue here for users who has never saved Webmin Bind module config. Anyone with CentOS 7 needs to make sure that /etc/webmin/bind8/config file has the following directives added at the end of the file before installing Webmin 2.001 upgrade: auto\_chroot= chroot= We will try to fix that issue for 2.002 release.

Sorry about that.

---

<div class="post-metadata">

**Author:** ![JLE67](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/j/cdc98d/32.png) [@JLE67](https://forum.virtualmin.com/u/JLE67)\
**Post date:** [September 27, 2022, 11:32am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/10 "2022-09-27T11:32:29Z")

</div>

Thank you so much for the info! I will jump on it 🙂

And I confirm it works 😁 👌 🙏

---

<div class="post-metadata">

**Author:** ![gyorgy.chityil](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@gyorgy.chityil](https://forum.virtualmin.com/u/gyorgy.chityil)\
**Post date:** [October 4, 2022, 6:30am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/11 "2022-10-04T06:30:46Z")

</div>

I am having the same issue, but it seems I am unable to turn off the “DNS domain enabled” feature. Whenever I do so, I am taken to the confirmation page:

> Are you sure you want to save the domain [xxx.xxxxxxx.com](http://xxx.xxxxxxx.com)? The following features have been selected for deletion:

> - DNS domain - All DNS records in the domain and any BIND options will be deleted.

Then it goes on to delete

> Removing records from DNS zone [xxxx.com](http://xxxx.com) …  
> … DNS zone does not exist!
> 
> Saving server details …  
> … done

but when I go back to the Virtual Server Details, DNS is enabled again. This is a subdomain!

When I go to Webmin BIND server, I see this message

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

---

<div class="post-metadata">

**Author:** ![gyorgy.chityil](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@gyorgy.chityil](https://forum.virtualmin.com/u/gyorgy.chityil)\
**Post date:** [October 4, 2022, 6:46am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/12 "2022-10-04T06:46:56Z")

</div>

Ok, I managed to solve it. In Virtalmin, under Disable and Delete, there is an option to “Disassociate Features” which did it for DNS. phew 🙂

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [October 12, 2022, 6:47am UTC](https://forum.virtualmin.com/t/centos-7-webmin-bind-service-not-starting-backups-failing-as-a-result-and-more/116404/13 "2022-10-12T06:47:10Z")

</div>

Closed on October 12, 2022, 6:47am UTC

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
