<div class="gmail_quote">On Tue, Mar 13, 2012 at 9:33 AM, hugo hugoo <span dir="ltr"><<a href="mailto:hugobxl@hotmail.com">hugobxl@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
Thanks for this interesting feedback.<br>
Now I have the problem to detect this kind of bad configuration.<br>
<br>
If I have:<br>
<br>
Zone <a href="http://toto.be" target="_blank">toto.be</a>:<br>
<br>
<a href="http://toto.be" target="_blank">toto.be</a>.<br>
<br>
NS <a href="http://ns1.xxx.be" target="_blank">ns1.xxx.be</a><br>
<br>
+ some records<br>
<br>
<br>
Zone <a href="http://titi.toto.be" target="_blank">titi.toto.be</a>:<br>
<br>
<br>
<a href="http://titi.toto.be" target="_blank">titi.toto.be</a>.<br>
<br>
NS <a href="http://ns1.xxx.be" target="_blank">ns1.xxx.be</a><br>
<br>
+ some records.<br>
<br>
<br>
What will be the command to detect that zone <a href="http://toto.be" target="_blank">toto.be</a> has no NS for <a href="http://titi.toto.be" target="_blank">titi.toto.be</a> ??<br>
<br>
</div></div></blockquote><div><br></div><div>Here's one command, given that <a href="http://ns1.xxx.be">ns1.xxx.be</a> is authoritative for both <a href="http://toto.be">toto.be</a> and <a href="http://titi.toto.be">titi.toto.be</a>:</div>
<div><br></div><div>dig +noall +comments @<a href="http://ns1.xxx.be">ns1.xxx.be</a> <a href="http://titi.toto.be">titi.toto.be</a> ns | grep "status: NOERROR" && \</div><div><div> dig +noall +comments @<a href="http://ns1.xxx.be">ns1.xxx.be</a> <a href="http://titi.toto.be">titi.toto.be</a> ds | grep "status: NXDOMAIN"</div>
</div><div><br></div><div>A zero exit status for the above command indicates that the NS RRs are missing from the parent. Note, however, that a non-zero exit status doesn't necessarily mean that the NS records exist.</div>
<div><br></div><div>Casey</div></div>