Browse Source

Merge pull request #117 from Zoldan/master

working nslookup for IPV6 and V4
pull/122/head
serverco 9 years ago
committed by GitHub
parent
commit
c944d3c0db
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      getssl

+ 9
- 2
getssl View File

@ -141,6 +141,7 @@ _FORCE_RENEW=0
_QUIET=0
_UPGRADE=0
_UPGRADE_CHECK=1
IPV6=false
# store copy of original command in case of upgrading script and re-running
ORIGCMD="$0 $*"
@ -1016,8 +1017,14 @@ for d in $alldomains; do
# check nslookup for domains (ignore if using DNS check, as site may not be published yet)
if [[ $VALIDATE_VIA_DNS != "true" ]]; then
debug "checking nslookup for ${d}"
if [ "$(nslookup "${d}"| grep -c ^Name)" -lt 1 ]; then
error_exit "DNS lookup failed for $d"
if [[ "$IPV6" == "true" ]]; then
if [ "$(nslookup -query=AAAA "${d}"|grep -c ^""${d}".*has AAAA address")" -lt 1 ]; then
error_exit "DNS lookup IPV6 failed for $d"
fi
else
if [ "$(nslookup "${d}"| grep -c ^Name)" -lt 1 ]; then
error_exit "DNS lookup failed for $d"
fi
fi
fi
done


Loading…
Cancel
Save