[Nagiosplug-devel] check_dns record types (AAAA,MX,SRV,TXT, etc.)

David Horn dhorn2000 at gmail.com
Tue Apr 7 20:02:34 CEST 2009


I submitted an enhancement patch for review:
https://sourceforge.net/tracker/?func=detail&aid=2741269&group_id=29880&atid=397599

This is my first foray into changing a nagios plugin, so please be kind ;)

My primary motivation was to provide support for the IPv6 host record
type (AAAA),
but decided it was just as easy to make the feature generic.

Added optional support for the major DNS record types (AAAA, MX, TXT, SRV,
CNAME, A, ANY). Specifically, allow for a new optional --querytype
parameter, and a new optional --accept-cname parameter. Help text has been
updated to reflect the changes as well. Patch is against SVN trunk of
check_dns.c from April 7,2009.

This change should be completely backwards compatible with existing
check_dns usage and syntax. New features are off by default.

I have tested this on FreBSD 7 only at this point, although it
*should* be portable.

Comments appreciated.

--Thanks!
--_Dave




More information about the Devel mailing list