diff options
author | Sven Geggus <sven.geggus@iosb.fraunhofer.de> | 2016-02-22 17:14:27 +0100 |
---|---|---|
committer | Sven Geggus <sven.geggus@iosb.fraunhofer.de> | 2016-02-22 17:14:27 +0100 |
commit | d44b8d70a446e708cfd69a64f505fdf9193a412e (patch) | |
tree | 40ace57846d1ebb012d6e3ead7c34535eff7b536 /plugins/check_dns.c | |
parent | ac380fd243e4eb7f0b1ace06dbdc276a3a13a9bb (diff) | |
download | monitoring-plugins-d44b8d70a446e708cfd69a64f505fdf9193a412e.tar.gz |
DNS is case insensitive!
Thus recent Versions of bind will no longer change .IN-ADDR.ARPA to lowercase
as the uppercase version is also valid.
To have check_dns.c consider this fact change strstr to strcasestr
Diffstat (limited to 'plugins/check_dns.c')
-rw-r--r-- | plugins/check_dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index d6bd2c0f..48601f02 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -127,7 +127,7 @@ main (int argc, char **argv) | |||
127 | if (verbose) | 127 | if (verbose) |
128 | puts(chld_out.line[i]); | 128 | puts(chld_out.line[i]); |
129 | 129 | ||
130 | if (strstr (chld_out.line[i], ".in-addr.arpa")) { | 130 | if (strcasestr (chld_out.line[i], ".in-addr.arpa")) { |
131 | if ((temp_buffer = strstr (chld_out.line[i], "name = "))) | 131 | if ((temp_buffer = strstr (chld_out.line[i], "name = "))) |
132 | addresses[n_addresses++] = strdup (temp_buffer + 7); | 132 | addresses[n_addresses++] = strdup (temp_buffer + 7); |
133 | else { | 133 | else { |