Browse Source

do nslookup on each domain before starting requests

pull/16/head
Dennis Koot 10 years ago
parent
commit
12a7e5218d
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      getssl

+ 10
- 0
getssl View File

@ -610,6 +610,16 @@ else
fi
debug "created SAN list = $SANLIST"
# check nslookup for domains
alldomains=$(echo "$DOMAIN,$SANS" | sed "s/,/ /g")
for d in $alldomains; do
debug "checking nslookup for ${d}"
exists=$(nslookup "${d}")
if [ "$?" != "0" ]; then
error_exit "DNS lookup failed for $d"
fi
done
# check if domain csr exists - if not then create it
if [ -f "$DOMAIN_DIR/${DOMAIN}.csr" ]; then
debug "domain csr exists at - $DOMAIN_DIR/${DOMAIN}.csr - skipping generation"


Loading…
Cancel
Save