<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
{mso-style-name:x_msonormal;
margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.xp1, li.xp1, div.xp1
{mso-style-name:x_p1;
margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.xs1
{mso-style-name:x_s1;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=en-AT link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;mso-fareast-language:EN-US'>OS running is FreeBSD 12.1 with bind version 9.16.7.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;mso-fareast-language:EN-US'>I'm running rndc commands as root user.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;mso-fareast-language:EN-US'>Yes, the zone was created with rndc addzone. And it's also possible to add and delete other zones this way.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;mso-fareast-language:EN-US'>Only the one particular zone throws this error. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;mso-fareast-language:EN-US'>Is there a way to manually clean or rebuild the nzd database?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;mso-fareast-language:EN-US'>Thanks, Christian<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='margin-left:36.0pt'><b><span style='font-size:12.0pt;color:black'>From: </span></b><span style='font-size:12.0pt;color:black'>"Scott A. Wozny" <sawozny@hotmail.com><br><b>Date: </b>Monday, 12. October 2020 at 20:42 <br><b>To: </b>"boesch@fhv.at" <boesch@fhv.at>, "bind-users@lists.isc.org" <bind-users@lists.isc.org><br><b>Subject: </b>Re: unable to delzone<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;color:black'>There are a LOT of possibilities why this isn't working. The first two things I'd check is trying this action again as root (if you're not already) to make sure this action isn't trying something that's DAC prohibited and checking the SELinux / AppArmor log (if you're running them) to see if this particular action (it doesn't sound like it's something you do often) is making a system call that's forbidden by the MAC. <o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;color:black'>These are suggestions to see if the issue is at the OS level, of course. I'm assuming what you're doing is permitted in the application (i.e. the zone you're trying to delete was created with rndc addzone) but you haven't provided enough detail to determine that.<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;color:black'>HTH,<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;color:black'>Scott<o:p></o:p></span></p></div><div><div><p class=MsoNormal style='margin-left:36.0pt'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><hr size=0 width="100%" align=center></div><div id=divRplyFwdMsg><p class=MsoNormal style='margin-left:36.0pt'><b><span style='color:black'>From:</span></b><span style='color:black'> bind-users <bind-users-bounces@lists.isc.org> on behalf of BĂ–SCH Christian <boesch@fhv.at><br><b>Sent:</b> October 12, 2020 4:35 AM<br><b>To:</b> bind-users@lists.isc.org <bind-users@lists.isc.org><br><b>Subject:</b> unable to delzone</span> <o:p></o:p></p><div><p class=MsoNormal style='margin-left:36.0pt'> <o:p></o:p></p></div></div><div><div><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'>Hi,</span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'> </span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'>I want to delete a zone with:</span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xp1 style='margin-left:36.0pt'><span class=xs1><span style='font-size:8.5pt;font-family:Menlo;color:black'>rndc delzone domain.org</span></span><span style='font-size:8.5pt;font-family:Menlo;color:black'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'> </span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'>In the logfile I get:</span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xp1 style='margin-left:36.0pt'><span class=xs1><span style='font-size:8.5pt;font-family:Menlo;color:black'>Oct 12 10:16:30 nsmaster named[669]: general: received control channel command 'delzone domain.org'</span></span><span style='font-size:8.5pt;font-family:Menlo;color:black'><o:p></o:p></span></p><p class=xp1 style='margin-left:36.0pt'><span class=xs1><span style='font-size:8.5pt;font-family:Menlo;color:black'>Oct 12 10:16:30 nsmaster named[669]: general: zone domain.org scheduled for removal via delzone</span></span><span style='font-size:8.5pt;font-family:Menlo;color:black'><o:p></o:p></span></p><p class=xp1 style='margin-left:36.0pt'><span class=xs1><span style='font-size:8.5pt;font-family:Menlo;color:black'>Oct 12 10:16:30 nsmaster named[669]: general: deleting zone domain.org in view _default via delzone</span></span><span style='font-size:8.5pt;font-family:Menlo;color:black'><o:p></o:p></span></p><p class=xp1 style='margin-left:36.0pt'><span class=xs1><span style='font-size:8.5pt;font-family:Menlo;color:black'>Oct 12 10:16:30 nsmaster named[669]: general: mdb_txn_begin: Invalid argument</span></span><span style='font-size:8.5pt;font-family:Menlo;color:black'><o:p></o:p></span></p><p class=xp1 style='margin-left:36.0pt'><span class=xs1><span style='font-size:8.5pt;font-family:Menlo;color:black'>Oct 12 10:16:30 nsmaster named[669]: general: unable to open NZD database for '_default.nzd'</span></span><span style='font-size:8.5pt;font-family:Menlo;color:black'><o:p></o:p></span></p><p class=xp1 style='margin-left:36.0pt'><span class=xs1><span style='font-size:8.5pt;font-family:Menlo;color:black'>Oct 12 10:16:30 nsmaster named[669]: general: unable to delete zone configuration: failure</span></span><span style='font-size:8.5pt;font-family:Menlo;color:black'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span style='font-size:12.0pt'> <o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'>And so in the nzd db the config remains active:</span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xp1 style='margin-left:36.0pt'><span class=xs1><span style='font-size:8.5pt;font-family:Menlo;color:black'>named-nzd2nzf _default.nzd | grep domain.org</span></span><span style='font-size:8.5pt;font-family:Menlo;color:black'><o:p></o:p></span></p><p class=xp1 style='margin-left:36.0pt'><span class=xs1><span style='font-size:8.5pt;font-family:Menlo;color:black'>zone "domain.org" { type master; file "../dynamic/domain.org"; };</span></span><span style='font-size:8.5pt;font-family:Menlo;color:black'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span style='font-size:12.0pt'> <o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'>So why can the nzd db not be opened? And how can that be solved?</span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'> </span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'>Thanks in advance,</span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'>Christian</span><span style='font-size:12.0pt'><o:p></o:p></span></p><p class=xmsonormal style='margin-left:36.0pt'><span lang=EN-US style='font-size:12.0pt'> </span><span style='font-size:12.0pt'><o:p></o:p></span></p></div></div></div></div></body></html>