A certificate fails although the A record is right
Let's Encrypt cannot validate a domain when its A record points to the server and its AAAA record points elsewhere. It connects over IPv6 first, so correcting or deleting the AAAA record fixes validation.
Symptoms
dig +short A example.com shows the server's IP address, but validation fails at Let's Encrypt. dig +short AAAA example.com shows an IPv6 address that points elsewhere.
Cause
Let's Encrypt's documentation says "Let's Encrypt will always prefer the IPv6 addresses for the initial connection." It retries over IPv4 only if the IPv6 connection times out.
If another server answers at that IPv6 address, Let's Encrypt receives that server's response and validation fails.
UrbeStack's check before the request passes if either the A or the AAAA record points to this server, so the request goes through.
Resolution
Change the AAAA record to the server's IPv6 address. If the server has no IPv6 address, delete the record.
Check that the lookup shows the server's IPv6 address if you corrected the record, or no IPv6 address if you deleted it.
dig +short AAAA example.comRequest the certificate again.
urbestack-cert-issue --name example.com