Skip to content

Commit

Permalink
Sleep between retries of drill
Browse files Browse the repository at this point in the history
  • Loading branch information
timkimber committed Sep 26, 2024
1 parent 734f221 commit dfabb85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions getssl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfabb85

Please sign in to comment.