Browse Source

NS Lookup is not required when using dns validation

pull/32/head
Gonzalo Peci 10 years ago
parent
commit
c9129eb152
1 changed files with 10 additions and 7 deletions
  1. +10
    -7
      getssl

+ 10
- 7
getssl View File

@ -715,13 +715,16 @@ 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
if [[ $VALIDATE_VIA_DNS != "true" ]]; then
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
fi
# check if domain csr exists - if not then create it
if [ -f "$DOMAIN_DIR/${DOMAIN}.csr" ]; then


Loading…
Cancel
Save