retitle 171440 dnsutils: dig manpage does not document exitcodes -- dig exits zero when everything works from a DNS perspective. NXDOMAIN is working. SERVFAIL is working. (In both cases, we sent a request, and we got a reply that was correct.) Parse the output to distinguish the variety of possible data contents.
The actual bug here is that dig's manpage does not correctly document the exit codes for the program. lamont Here are the exit codes for dig. *\li 0 Everything went well, including things like NXDOMAIN *\li 1 Usage error *\li 7 Got too many RR's or Names *\li 8 Couldn't open batch file *\li 9 No reply from server *\li 10 Internal error -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]