check_dns: allow for IPv6 RDNS

This commit is contained in:
Patrick Rauscher 2016-12-19 20:02:38 +01:00 committed by Sven Nierlein
parent 1b08d51310
commit f524b15e57

View file

@ -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 {