Browse Source

Sleep between retries of drill

pull/857/head
Tim Kimber 1 year ago
parent
commit
dfabb85668
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      getssl

+ 5
- 0
getssl View File

@ -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


Loading…
Cancel
Save