summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2016-02-22 20:53:05 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2016-02-22 20:53:05 (GMT)
commitcca2b319234d3bfb30dbeb9fba714ded06c4827f (patch)
tree6cf2024d6497c80c56d4a198794b7b4c0d573063
parent8dc6bc64280c1e30c457840ee0180c43d29bae7f (diff)
parentd44b8d70a446e708cfd69a64f505fdf9193a412e (diff)
downloadmonitoring-plugins-cca2b31.tar.gz
Merge branch 'pr/1404'
* pr/1404: DNS is case insensitive!
-rw-r--r--plugins/check_dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index d6bd2c0..48601f0 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 {