summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9750a7f)
raw | patch | inline | side by side (parent: 9750a7f)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 20 Feb 2004 02:09:35 +0000 (02:09 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 20 Feb 2004 02:09:35 +0000 (02:09 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@810 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_dns.c | patch | blob | history |
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 1fc4039fe590e849c7cb9e0f3d3ce60c0b3e2f18..242052947e9739397d170fbc6f12a39865aa1211 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ LIMITATION: nslookup on Solaris 7 can return output over 2 lines, which will not
+ be picked up by this plugin
+
******************************************************************************/
#include "common.h"
/* the server is responding, we just got the host name... */
if (strstr (input_buffer, "Name:"))
parse_address = TRUE;
- else if (strstr (input_buffer, "Address:") && parse_address == TRUE) {
+ else if (parse_address == TRUE && (strstr (input_buffer, "Address:") || strstr (input_buffer, "Addresses:"))) {
temp_buffer = index (input_buffer, ':');
temp_buffer++;