[monitoring-plugins] check_dns: allow for IPv6 RDNS
Sven Nierlein
git at monitoring-plugins.org
Tue Dec 20 22:00:14 CET 2016
Module: monitoring-plugins
Branch: master
Commit: f524b15e572c4316feb70917d05f6349bef996ef
Author: Patrick Rauscher <prauscher at prauscher.de>
Committer: Sven Nierlein <sven at nierlein.org>
Date: Mon Dec 19 20:02:38 2016 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=f524b15
check_dns: allow for IPv6 RDNS
---
plugins/check_dns.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 54ce7d1..1f43c2e 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -126,7 +126,7 @@ main (int argc, char **argv)
if (verbose)
puts(chld_out.line[i]);
- if (strcasestr (chld_out.line[i], ".in-addr.arpa")) {
+ if (strcasestr (chld_out.line[i], ".in-addr.arpa") || strcasestr (chld_out.line[i], ".ip6.arpa")) {
if ((temp_buffer = strstr (chld_out.line[i], "name = ")))
addresses[n_addresses++] = strdup (temp_buffer + 7);
else {
More information about the Commits
mailing list