Browse Source

Merge pull request #16 from koter84/nslookup-before-request

do nslookup on each domain before starting requests
pull/17/head
serverco 10 years ago
parent
commit
c3a0f23ef9
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"


Loading…
Cancel
Save