From 5012daeff60fce4bd4253b7580a38d160ef42a2c Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Mon, 31 Aug 2020 12:39:58 +0000 Subject: Fix check_dig when it uses drill and when changing the port. PR: 249027 Reported by: Joakim Lindblom --- net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff') diff --git a/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff b/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff index f109621c2749..afc32e94e22c 100644 --- a/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff +++ b/net-mgmt/monitoring-plugins/files/extra-patch-dig-to-drill.diff @@ -6,8 +6,8 @@ /* get the command to run */ - xasprintf (&command_line, "%s %s %s -p %d @%s %s %s +retry=%d +time=%d", - PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type, number_tries, timeout_interval_dig); -+ xasprintf (&command_line, "%s %s @%s -z -p %d %s %s %s", -+ PATH_TO_DIG, dig_args, dns_server, server_port, query_transport, query_address, record_type); ++ xasprintf (&command_line, "%s %s %s -p %d @%s %s %s", ++ PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type); alarm (timeout_interval); gettimeofday (&tv, NULL); -- cgit v1.2.3