diff options
author | Patrick Rauscher <prauscher@prauscher.de> | 2016-12-19 20:02:38 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2016-12-20 21:59:58 +0100 |
commit | f524b15e572c4316feb70917d05f6349bef996ef (patch) | |
tree | 5ffe8785bd5588cb91b604ff7c8417346cb79997 /plugins/check_dns.c | |
parent | 1b08d5131089142b1e3090eafc0e537b8009ca63 (diff) | |
download | monitoring-plugins-f524b15e572c4316feb70917d05f6349bef996ef.tar.gz |
check_dns: allow for IPv6 RDNS
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 54ce7d16..1f43c2ed 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -126,7 +126,7 @@ main (int argc, char **argv) | |||
126 | if (verbose) | 126 | if (verbose) |
127 | puts(chld_out.line[i]); | 127 | puts(chld_out.line[i]); |
128 | 128 | ||
129 | if (strcasestr (chld_out.line[i], ".in-addr.arpa")) { | 129 | if (strcasestr (chld_out.line[i], ".in-addr.arpa") || strcasestr (chld_out.line[i], ".ip6.arpa")) { |
130 | if ((temp_buffer = strstr (chld_out.line[i], "name = "))) | 130 | if ((temp_buffer = strstr (chld_out.line[i], "name = "))) |
131 | addresses[n_addresses++] = strdup (temp_buffer + 7); | 131 | addresses[n_addresses++] = strdup (temp_buffer + 7); |
132 | else { | 132 | else { |