<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br><br><span style="background-color: rgba(255, 255, 255, 0);">____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*<br>|| \\UTGERS      |---------------------*O*---------------------<br>||_// Biomedical | Ryan Novosielski - Senior Technologist<br>|| \\ and Health | <a href="mailto:novosirj@rutgers.edu" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="3">novosirj@rutgers.edu</a>- 973/972.0922 (2x0922)<br>||  \\  Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark<br>    `'</span></div><div><br>On Oct 21, 2014, at 16:00, Evan Hunt <<a href="mailto:each@isc.org">each@isc.org</a>> wrote:<br><br></div><blockquote type="cite"><div><span>On Tue, Oct 21, 2014 at 12:07:15PM -0700, Warren Kumari wrote:</span><br><blockquote type="cite"><blockquote type="cite"><span>dig A $name | awk '$0 ~ /status/ && $0 !~ /status: NOERROR,/ {</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>                        sub(",", "", $6 ); print $6; x=1</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>                   }</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>                   $4 == "A" { print $5; x=1 }</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>                   END { if (!x) print "TIMEOUT" }'</span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Because, not everyone is as stunningly brilliant as you?</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>To a non-zero population of this list the above looks like line-noise...</span><br></blockquote><span></span><br><span>Could be worse, could be perl.  In any case, filtering the existing</span><br><span>output does seem better than adding every imaginable formatting option</span><br><span>to dig.</span><br><span></span><br><span>... I *could* maybe see adding a formatting option to produce an</span><br><span>easier-to-parse output header, though, such as:</span><br><span></span><br><span>        ; OPCODE=QUERY</span><br><span>        ; RCODE=NOERROR</span><br><span>        ; QRFLAG=1</span><br><span>        ; AAFLAG=0</span><br><span>        ; TCFLAG=0</span><br><span>        ; RDFLAG=1</span><br><span>        ; RAFLAG=1</span><br><span>        ; ADFLAG=0</span><br><span>        ; CDFLAG=0</span><br><span>        [... etc ...]</span><br></div></blockquote><br><div>While on some level, I'm with you, "IP only" doesn't seem like a corner case. </div></body></html>