Re: [webmin-l] BIND DNS Server named.conf and chroot error after upgrading Virtualmin

Turritopsis Dohrnii Teo En Ming <[email protected]> Wed, 2 Nov 2022 17:26:42 +1100
Newsgroups gmane.comp.web.webmin.general
Message-ID <CAD3upLvpnxZWQ1C4vjX6g4hPPXk-yV5zKM-h30Mwh-=X9c8WHw@mail.gmail.com>
--===============5660345546767880092==
Content-Type: multipart/alternative; boundary="0000000000003a3ac505ec76edbf"

--0000000000003a3ac505ec76edbf
Content-Type: text/plain; charset="UTF-8"

On Wed, 2 Nov 2022 at 16:47, Jamie Cameron <[email protected]> wrote:

> Have a look at this ticket - you may be seeing the same issue :
> https://forum.virtualmin.com/t/bind-dns-server-uninstalled-chroot-issue-on-1-999-x-update/116410/19
>

Yes, it looks like the same issue.


>
>
> On 01/Nov/2022 19:44 Turritopsis Dohrnii Teo En Ming <[email protected]>
> wrote ..
>
> Subject: BIND DNS Server named.conf and chroot error after upgrading
> Virtualmin
>
> Good day from Singapore,
>
> I have upgraded Virtualmin web hosting control panel Master Server to the
> following versions on the evening of 1st Nov 2022 Tuesday.
>
> Webmin version: 2.001
> Virtualmin version: 7.3
> Usermin version: 1.860
> Authentic theme version: 20.01.1:5
>
> However, after the Virtualmin and Webmin upgrade, I get the following
> error messages.
>
> Information!
>
> Virtualmin's configuration has not been checked since it was last updated.
> Click the button below to verify it now.
> Button: Re-check and refresh configuration
>
> Checking Configuration
> =======================
>
> The status of your system is being checked to ensure that all enabled
> features are available and properly configured ..
> Your system has 7.63 GiB of memory, which is at or above the Virtualmin
> recommended mi nimum of 256 MiB
> 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
>
>  .. your system is not ready for use by Virtualmin
>
> Then I navigate to Webmin > Servers > BIND DNS Server. It says:
>
> The primary configuration file for BIND /var/named/chroot/etc/named.conf
> does not exist, or is not valid. Create it?
>
> Options:
> -  Setup nameserver for internal non-internet use only
> -  Setup as an internet name server, and download root server information
> -  Setup as an internet name server, but use Webmin's older root server
> information
>
> Button: Create Primary Configuration File and Start Nameserver
>
> 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.
>
> So I did a Google search and found the following discussion threads.
>
> [1] BIND DNS Server is uninstalled after the last upgrade
> Link: https://archive.virtualmin.com/node/32314
>
> [2] Prevent OS updates from chrooting Bind
> Link: https://archive.virtualmin.com/node/53785
>
> Solution
> =========
>
> After reading through the above discussion threads, I have solved the
> problem by performing the following steps.
>
> Click Webmin > Servers > BIND DNS Server
>
> Click Module config at the top left hand corner.
>
> Chroot directory to run BIND under: choose None
>
> Is named.conf under chroot directory? choose No
>
> Click Save.
>
> 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.
>
> Problem solved! I hope this guide is useful to you.
>
> Regards,
>
> Mr. Turritopsis Dohrnii Teo En Ming
> Targeted Individual in Singapore
> Blogs:
> https://tdtemcerts.blogspot.com
> https://tdtemcerts.wordpress.com
>
>
>
>
>
>
>
> -
> Forwarded by the Webmin mailing list at
> [email protected]
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-list
>

--0000000000003a3ac505ec76edbf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Wed, 2 Nov 2022 at 16:47, Jamie Ca=
meron &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt=
; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p>Have=
 a look at this ticket - you may be seeing the same issue :=C2=A0<a href=3D=
"https://forum.virtualmin.com/t/bind-dns-server-uninstalled-chroot-issue-on=
-1-999-x-update/116410/19" target=3D"_blank">https://forum.virtualmin.com/t=
/bind-dns-server-uninstalled-chroot-issue-on-1-999-x-update/116410/19</a></=
p></blockquote><div><br></div><div>Yes, it looks like the same issue.</div>=
<div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p>=C2=
=A0</p>
  <p>On 01/Nov/2022 19:44 Turritopsis Dohrnii Teo En Ming &lt;<a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]</a>&gt; wro=
te ..
</p>
  <blockquote type=3D"cite">=20
    <div dir=3D"ltr">Subject: BIND DNS Server named.conf and chroot error a=
fter upgrading Virtualmin<br><br>Good day from Singapore,<br><br>I have upg=
raded Virtualmin web hosting control panel Master Server to the following v=
ersions on the evening of 1st Nov 2022 Tuesday.<br><br>Webmin version: 2.00=
1<br>Virtualmin version: 7.3<br>Usermin version: 1.860<br>Authentic theme v=
ersion: 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&#=
39;s configuration has not been checked since it was last updated. Click th=
e button below to verify it now.<br>Button: Re-check and refresh configurat=
ion<br><br>Checking Configuration<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br><br>The status of your system is being=
 checked to ensure that all enabled features are available and properly con=
figured ..<br>Your system has 7.63 GiB of memory, which is at or above the =
Virtualmin recommended mi
 nimum 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&=
#39;s BIND DNS Server module. If your system does not use BIND, it should b=
e disabled in Virtualmin&#39;s module configuration page<br><br>=C2=A0.. yo=
ur system is not ready for use by Virtualmin<br><br>Then I navigate to Webm=
in &gt; Servers &gt; BIND DNS Server. It says:<br><br>The primary configura=
tion file for BIND /var/named/chroot/etc/named.conf does not exist, or is n=
ot valid. Create it?<br><br>Options:<br>- =C2=A0Setup nameserver for intern=
al non-internet use only<br>- =C2=A0Setup as an internet name server, and d=
ownload root server information<br>- =C2=A0Setup as an internet name server=
, but use Webmin&#39;s older root server information<br><br>Button: Create =
Primary Configuration File and Start Nameserver<br><br>All along, ever sinc=
e 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. Af=
ter upgrading Virtualmin last night, the configuration was suddenly and une=
xpectedly changed to running BIND DNS Server in a chroot environment. I hav=
e 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=3D"https://archive.virtualmin.com/=
node/32314" target=3D"_blank">https://archive.virtualmin.com/node/32314</a>=
<br><br>[2] Prevent OS updates from chrooting Bind<br>Link: <a href=3D"http=
s://archive.virtualmin.com/node/53785" target=3D"_blank">https://archive.vi=
rtualmin.com/node/53785</a><br><br>Solution<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D<=
br><br>After reading through the above discussion threads, I have solved th=
e problem by performing the following steps.<br><br>Click Webmin &gt; Serve=
rs &gt; BIND DNS Server<br><br>Click Module config at the top left hand cor=
ner.<br><br>Chroot directory to run
  BIND under: choose None<br><br>Is named.conf under chroot directory? choo=
se No<br><br>Click Save.<br><br>And now BIND DNS Server should be back runn=
ing 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 thi=
s guide is useful to you.<br><br>Regards,<br><br>Mr. Turritopsis Dohrnii Te=
o En Ming<br>Targeted Individual in Singapore<br>Blogs:<br><a href=3D"https=
://tdtemcerts.blogspot.com" target=3D"_blank">https://tdtemcerts.blogspot.c=
om</a><br><a href=3D"https://tdtemcerts.wordpress.com" target=3D"_blank">ht=
tps://tdtemcerts.wordpress.com</a><br><br><br><br><br><br></div>=20
  </blockquote><br> <br>
-<br>
Forwarded by the Webmin mailing list at <a href=3D"mailto:webadmin-list@lis=
ts.sourceforge.net" target=3D"_blank">[email protected]</=
a><br>
To remove yourself from this list, go to<br>
<a href=3D"http://lists.sourceforge.net/lists/listinfo/webadmin-list" rel=
=3D"noreferrer" target=3D"_blank">http://lists.sourceforge.net/lists/listin=
fo/webadmin-list</a><br>
</blockquote></div></div>

--0000000000003a3ac505ec76edbf--


--===============5660345546767880092==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5660345546767880092==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-
Forwarded by the Webmin mailing list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list

--===============5660345546767880092==--