From fd5b4374d00e8673b99e5a13b640d793dbad49ca Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Thu, 26 Sep 2024 16:39:30 +0100 Subject: [PATCH] Sleep between retries of drill --- getssl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/getssl b/getssl index a7837dbe..27d95380 100755 --- a/getssl +++ b/getssl @@ -1629,6 +1629,11 @@ get_auth_dns() { # get the authoritative dns server for a domain (sets primary_n # shellcheck disable=SC2086 out=$($HAS_DIG_OR_DRILL $DNS_CHECK_OPTIONS ${gad_s} NS "${gad_d}") res=$(echo "$out"| grep -E "IN\W(NS|SOA)\W") + if [[ "$out" == *SERVFAIL* ]]; then + debug Output from $HAS_DIG_OR_DRILL $DNS_CHECK_OPTIONS ${gad_s} NS ${gad_d} contains SERVFAIL + debug $out + sleep 2 + fi ((i++)) done fi