RE: [Nagios-devel] check_dns segfaults when nslookup returns empty answer
RE: [Nagios-devel] check_dns segfaults when nslookup returns empty answer
> -----Original Message-----
> From: Michel Blomgren [mailto:michel@sentinix.org]
> Sent: Tuesday, December 09, 2003 12:58 PM
> To: nagios-devel@lists.sourceforge.net
> Subject: [Nagios-devel] check_dns segfaults when nslookup returns
empty
> answer
>=20
> Hi!
>=20
> In nagios-plugins-1.3.1:
>=20
> check_dns seems to segfault when nslookup returns an empty answer,
e.g.
> when
> querrying a non-resolvable hostname. I know, querrying a nameserver
using
> it's hostname is probably not what one want to do, but still, it
> segfaults.
>=20
> root@sentinix:/usr/local/nagios/libexec$ ./check_dns -s non_existent
-H \
> a.root-servers.net
> Segmentation fault
>=20
> nslookup directs it's error to stderr, but stdout is completely empty.
>=20
> I can provide a patch for this, unless of course, anyone hasn't
already
> 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
well.
--
MArc=20
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: marc@ena.com