Fix _check_dns_entries for suggested apex domain substitutions for --domain-alias

Current checks don't support @.domain.tld or .domain.tld, which are suggested to be used instead of the domain apex with --domain-alias at https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode#7-challenge-alias-or-domain-alias
This fix removes "@." or "." at the beginning of the domain, so the correct domain will be checked.
This commit is contained in:
Andrew Burdo 2025-02-10 18:07:09 +02:00
parent f981c782bb
commit 5a4b6f3593

View File

@ -4219,6 +4219,7 @@ _check_dns_entries() {
_debug "aliasDomain" "$aliasDomain"
_debug "txt" "$txt"
_debug "d_api" "$d_api"
aliasDomain="$(echo "$aliasDomain" | sed "s/^@\{0,1\}\.//")"
_info "Checking $d for $aliasDomain"
if _contains "$_success_txt" ",$txt,"; then
_info "Already succeeded, continuing."