Checking on DNS secondaries

Rick Moen rick at linuxmafia.com
Mon May 23 09:52:13 PDT 2011


I wrote:

> You will probably find that your script breaks if it encounters some of
> the 'dig' results other than success or NXDOMAIN.  In particular, I
> noticed that, if the tested nameserver is returning 'status: REFUSED' in
> the options section, then any dig query with the '+short' flag retnrns a
> null result (with, IIRC, value = 9).
                           ^^^^^

Sloppy typing.  I meant 'return value', i.e., contents of '$?'.
The initial version of my weekly checking script omitted the entire 
line for any nameserver returning 'status: REFUSED', because including
the '+short' flag for dig resulted in null output.




More information about the Baylisa mailing list