aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_dig.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r--plugins/check_dig.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 8d996b08..d899b119 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -296,7 +296,10 @@ process_arguments (int argc, char **argv)
dns_server = argv[c];
}
else {
- dns_server = strdup ("127.0.0.1");
+ if (strcmp(query_transport,"-6") == 0)
+ dns_server = strdup("::1");
+ else
+ dns_server = strdup ("127.0.0.1");
}
}