From: Marc Powell <marc@en...> - 2003-12-09 20:22:22
> -----Original Message-----
> From: Michel Blomgren [mailto:michel@...]
> Sent: Tuesday, December 09, 2003 12:58 PM
> To: nagios-devel@...
> Subject: [Nagios-devel] check_dns segfaults when nslookup returns
> In nagios-plugins-1.3.1:
> check_dns seems to segfault when nslookup returns an empty answer,
> querrying a non-resolvable hostname. I know, querrying a nameserver
> it's hostname is probably not what one want to do, but still, it
> root@...:/usr/local/nagios/libexec$ ./check_dns -s non_existent
> Segmentation fault
> nslookup directs it's error to stderr, but stdout is completely empty.
> I can provide a patch for this, unless of course, anyone hasn't
> thought about this??!
I saw similar behavior when querying a non-recursive server for a domain
it wasn't authoritative for. The CVS version appears to handle
exceptions like that better. Try that and see if it works for you as