<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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. 
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
HTH,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Scott<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> 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</font>
<div> </div>
</div>
<div style="word-wrap:break-word" lang="en-AT">
<div class="x_WordSection1">
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US">Hi,</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US">I want to delete a zone with:</span></p>
<p class="x_p1" style="margin: 0cm; font-size: 8.5pt; font-family: Menlo; color: black;">
<span class="x_s1">rndc delzone domain.org</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US">In the logfile I get:</span></p>
<p class="x_p1" style="margin: 0cm; font-size: 8.5pt; font-family: Menlo; color: black;">
<span class="x_s1">Oct 12 10:16:30 nsmaster named[669]: general: received control channel command 'delzone domain.org'</span></p>
<p class="x_p1" style="margin: 0cm; font-size: 8.5pt; font-family: Menlo; color: black;">
<span class="x_s1">Oct 12 10:16:30 nsmaster named[669]: general: zone domain.org scheduled for removal via delzone</span></p>
<p class="x_p1" style="margin: 0cm; font-size: 8.5pt; font-family: Menlo; color: black;">
<span class="x_s1">Oct 12 10:16:30 nsmaster named[669]: general: deleting zone domain.org in view _default via delzone</span></p>
<p class="x_p1" style="margin: 0cm; font-size: 8.5pt; font-family: Menlo; color: black;">
<span class="x_s1">Oct 12 10:16:30 nsmaster named[669]: general: mdb_txn_begin: Invalid argument</span></p>
<p class="x_p1" style="margin: 0cm; font-size: 8.5pt; font-family: Menlo; color: black;">
<span class="x_s1">Oct 12 10:16:30 nsmaster named[669]: general: unable to open NZD database for '_default.nzd'</span></p>
<p class="x_p1" style="margin: 0cm; font-size: 8.5pt; font-family: Menlo; color: black;">
<span class="x_s1">Oct 12 10:16:30 nsmaster named[669]: general: unable to delete zone configuration: failure</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
 </p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US">And so in the nzd db the config remains active:</span></p>
<p class="x_p1" style="margin: 0cm; font-size: 8.5pt; font-family: Menlo; color: black;">
<span class="x_s1">named-nzd2nzf _default.nzd | grep domain.org</span></p>
<p class="x_p1" style="margin: 0cm; font-size: 8.5pt; font-family: Menlo; color: black;">
<span class="x_s1">zone "domain.org" { type master; file "../dynamic/domain.org"; };</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
 </p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US">So why can the nzd db not be opened? And how can that be solved?</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US"> </span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US">Thanks in advance,</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US">Christian</span></p>
<p class="x_MsoNormal" style="margin: 0cm; font-size: 12pt; font-family: "Calibri", sans-serif;">
<span lang="EN-US"> </span></p>
</div>
</div>
</div>
</body>
</html>