diff options
| -rw-r--r-- | plugins/check_dns.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index a4c8e9b1..95f33083 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
| @@ -128,6 +128,9 @@ int main(int argc, char **argv) { | |||
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | if (strcasestr(chld_out.line[i], ".in-addr.arpa") || strcasestr(chld_out.line[i], ".ip6.arpa")) { | 130 | if (strcasestr(chld_out.line[i], ".in-addr.arpa") || strcasestr(chld_out.line[i], ".ip6.arpa")) { |
| 131 | if ((strstr(chld_out.line[i], "canonical name = ") != NULL)) { | ||
| 132 | continue; | ||
| 133 | } | ||
| 131 | char *temp_buffer = NULL; | 134 | char *temp_buffer = NULL; |
| 132 | if ((temp_buffer = strstr(chld_out.line[i], "name = "))) { | 135 | if ((temp_buffer = strstr(chld_out.line[i], "name = "))) { |
| 133 | addresses[n_addresses++] = strdup(temp_buffer + 7); | 136 | addresses[n_addresses++] = strdup(temp_buffer + 7); |
