<div dir="ltr">Subject: BIND DNS Server named.conf and chroot error after upgrading Virtualmin<br><br>Good day from Singapore,<br><br>I have upgraded Virtualmin web hosting control panel Master Server to the following versions on the evening of 1st Nov 2022 Tuesday.<br><br>Webmin version: 2.001<br>Virtualmin version: 7.3<br>Usermin version: 1.860<br>Authentic theme version: 20.01.1:5<br><br>However, after the Virtualmin and Webmin upgrade, I get the following error messages.<br><br>Information!<br><br>Virtualmin's configuration has not been checked since it was last updated. Click the button below to verify it now.<br>Button: Re-check and refresh configuration<br><br>Checking Configuration<br>=======================<br><br>The status of your system is being checked to ensure that all enabled features are available and properly configured ..<br>Your system has 7.63 GiB of memory, which is at or above the Virtualmin recommended minimum of 256 MiB<br>The BIND DNS server version 8 or 9 does not appear to be installed on your system, or has not yet been set up properly in Webmin's BIND DNS Server module. If your system does not use BIND, it should be disabled in Virtualmin's module configuration page<br><br> .. your system is not ready for use by Virtualmin<br><br>Then I navigate to Webmin > Servers > BIND DNS Server. It says:<br><br>The primary configuration file for BIND /var/named/chroot/etc/named.conf does not exist, or is not valid. Create it?<br><br>Options:<br>-  Setup nameserver for internal non-internet use only<br>-  Setup as an internet name server, and download root server information<br>-  Setup as an internet name server, but use Webmin's older root server information<br><br>Button: Create Primary Configuration File and Start Nameserver<br><br>All along, ever since the initial deployment of my Virtualmin web hosting control panel on 18 Oct 2021, I have never run BIND DNS Server in a chroot environment. After upgrading Virtualmin last night, the configuration was suddenly and unexpectedly changed to running BIND DNS Server in a chroot environment. I have no idea why and what happened.<br><br>So I did a Google search and found the following discussion threads.<br><br>[1] BIND DNS Server is uninstalled after the last upgrade<br>Link: <a href="https://archive.virtualmin.com/node/32314">https://archive.virtualmin.com/node/32314</a><br><br>[2] Prevent OS updates from chrooting Bind<br>Link: <a href="https://archive.virtualmin.com/node/53785">https://archive.virtualmin.com/node/53785</a><br><br>Solution<br>=========<br><br>After reading through the above discussion threads, I have solved the problem by performing the following steps.<br><br>Click Webmin > Servers > BIND DNS Server<br><br>Click Module config at the top left hand corner.<br><br>Chroot directory to run BIND under: choose None<br><br>Is named.conf under chroot directory? choose No<br><br>Click Save.<br><br>And now BIND DNS Server should be back running normally, without chroot environment. It will revert back to using /etc/named.conf and zone files in /var/named.<br><br>Problem solved! I hope this guide is useful to you.<br><br>Regards,<br><br>Mr. Turritopsis Dohrnii Teo En Ming<br>Targeted Individual in Singapore<br>Blogs:<br><a href="https://tdtemcerts.blogspot.com">https://tdtemcerts.blogspot.com</a><br><a href="https://tdtemcerts.wordpress.com">https://tdtemcerts.wordpress.com</a><br><br><br><br><br><br></div>