<div dir="ltr">Maybe use:<div><br></div><div>Perl Net::DNS::Dig ?<br></div><div><br></div><div>Never tried it but it looks like it returns a lot of information similar to dig.</div><div><br></div><div>John</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 3:41 PM, Trevor Cordes <span dir="ltr">&lt;<a href="mailto:trevor@tecnopolis.ca" target="_blank">trevor@tecnopolis.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2016-04-06 Robert Keizer wrote:<br>
&gt; Why don&#39;t you use dig+grep+sed in bash?<br>
<br>
</span>Ya, that&#39;s one of the ideas (dig).  It looks like dig will<br>
differentiate between named down, vs blocked 53, vs simple invalid<br>
domain.<br>
<br>
I&#39;m trying to see if there are other ways also, perhaps ones that don&#39;t<br>
require a fork.  And the dig will send out real queries to real<br>
servers, but I guess it will be tempered by the cache?  I&#39;ll have to<br>
test what dig does in the different failure modes when a) resolving a<br>
domain that isn&#39;t cached vs b) resolving one that is cached.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" rel="noreferrer" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">John Lange<br><a href="http://www.johnlange.ca" target="_blank">www.johnlange.ca</a></div>
</div>