Browse Source

Refresh the TXT record if a CNAME is found (@JoergBruce #828)

cname-fix
Tim Kimber 2 years ago
parent
commit
5c962a7829
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      getssl

+ 1
- 0
getssl View File

@ -598,6 +598,7 @@ check_challenge_completion_dns() { # perform validation via DNS challenge
rr_cname=$(grep -i "^${rr}"<<<"${check_output}"|grep 'IN\WCNAME'|awk '{ print $5}')
debug "cname check=\"$rr_cname\""
if [[ -n "$rr_cname" ]]; then
check_output=$($DNS_CHECK_FUNC $DNS_CHECK_OPTIONS TXT "${rr_cname}" "@${ns}")
check_result=$(grep -i "^${rr_cname}"<<<"${check_output}"|grep 'IN\WTXT'|awk -F'"' '{ print $2}' | uniq)
fi
fi


Loading…
Cancel
Save