<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<span dir="ltr" style="margin-top:0; margin-bottom:0;">Trying using rndc to see if it's broke.</span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">rndc status</span>
<br>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">You may need to add a path to the rndc binary if it's not in your $PATH env vars. Or maybe -c to the location of your rndc config.</span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;"> In your named.conf you should have a rndc statement with the key name and value.</span>
<br>
<br><span dir="ltr" style="margin-top:0; margin-bottom:0;">You can recreate your rndc config / key with that if needed.</span>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="fairemail_quote">
<div dir="ltr">
<p>Nov 24, 2024 6:36:57 PM Luis Navarro <ln@lunadesign.net>:</p>
</div>
<blockquote lang="EN-US" link="#467886" vlink="#96607D" style="margin:0;word-wrap:break-word;border-left:3px solid #ccc; padding-left:10px;">
<div class="WordSection1" style="page: WordSection1;">
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;">I've been running BIND on Ubuntu 22.04 for over a year and it has been running perfectly as my primary DNS server. I’m currently using BIND 9.18.28.</span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;"><o:p>
</o:p></span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;">I'm currently setting up BIND on another box (as a secondary DNS server) and accidentally just ran "sudo rndc-confgen -a" on the first box. From what I can tell, running this command overwrote the previously installed "/etc/bind/rndc.key" file with a new one. </span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;"><o:p>
</o:p></span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;">I'm vaguely familiar with rndc but don't think I've ever used it directly. It is possible the BIND tools I typically use call it. Anyway, the first box *<b>seems</b>* to still be working normally.</span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;"><o:p>
</o:p></span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><b><span style="font-size:11.0pt;">Questions:</span></b><span style="font-size:11.0pt;"> Did I break anything by running "rndc-confgen"? Is there anything else I need to do on the first box to move forward with the new key file? Or should I restore the key file from a backup?</span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;"><o:p>
</o:p></span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;">Thanks in advance!</span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;">Luis</span></p>
<p class="MsoNormal" style=" mso-ligatures: standardcontextual;margin: 0in; font-size: 12pt; font-family: "Aptos", sans-serif;"><span style="font-size:11.0pt;"><o:p>
</o:p></span></p>
</div>
</blockquote>
</div>
</body>
</html>