<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div> <!--StartFragment--><div class="post-text" itemprop="text"><p style="margin: 0px;" data-mce-style="margin: 0px;">could you help me find a solution to restrict who can check my DNS within my domain?</p><p style="margin: 0px;" data-mce-style="margin: 0px;">I have a domain controller with SAMBA4 and as DNS backend I use BIND9.</p><p style="margin: 0px;" data-mce-style="margin: 0px;">I would like to be able to define who are the IPs that I want to allow to consult my DNS. I tried the following but I failed to get it</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><code>/etc/bind/named.conf.options</code></p><pre><code>options {
 allow-query {
                localhost;
        };
}
</code></pre><p style="margin: 0px;" data-mce-style="margin: 0px;">In essence, this should allow the domain controller itself to be the only one that has permission to query itself, but when I try to query from a PC in my domain, the DNS keeps responding to my queries. How could I avoid this?</p></div><!--EndFragment--> </div><br></div></div>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<table style="color: gray;font-family: Arial;line-height: 1.3;font-size:1em; text-align: justify" width="100%" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td style="font-size:75%;padding-top: 15px;"> <strong>IMPORTANTE:</strong> El contenido de este correo electrónico y los archivos adjuntos son confidenciales. Está estrictamente prohibido compartir cualquier parte de este mensaje con terceros, sin el consentimiento por escrito del remitente. Si recibió este mensaje por error, no responda a este mensaje y continúe con su eliminación, para que podamos asegurarnos de que no se produzcan errores en el futuro. Este mensaje ha sido analizado por ClamAV antivirus y se considera totalmente libre de amenazas.</td>
    </tr>
</table>
<br>
</body></html>