When a domain name resolves to multiple hosts at the same time, the SSL certificate cannot be created.
https://github.com/acmesh-official/acme.sh/wiki/dnsapi
https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode
Example
My domain
domain.com
My servers
Server1 111.111.111.111
Server2 222.222.222.222
Resolves
api.domain.com A 111.111.111.111
api.domain.com A 222.222.222.222
Result
Both Server1 and Server2 create certificates