- Newest
- Most votes
- Most comments
The most likely culprit is the CNAME flattening/quarantine issue when migrating DNS to Route 53. Here’s what’s happening: when you move DNS to Route 53, AWS sometimes silently quarantines or delays propagation of ACM's DNS validation CNAME records because they contain underscore prefixes (_hash.subdomain), which Route 53 treats suspiciously to prevent subdomain takeover attacks. To fix this, delete the ACM certificates and recreate them after the hosted zone has been active in Route 53 for at least 48 hours, ensuring you use the "Create records in Route 53" button from ACM's validation page—don’t manually create the CNAME records. Also, verify there are no trailing dots in the DNS records and confirm Route 53’s nameservers are correctly set at your registrar (Hostinger) using a DNS propagation checker, not just the AWS console. If issues persist, request a single certificate with both subdomains as SANs rather than separate certificates, as this reduces validation complexity and potential rate-limiting conflicts.
answered 10 months ago
When ACM DNS validation fails despite having Route 53 as your authoritative DNS provider, there are several potential issues to investigate:
-
Validation Timeout: ACM searches for CNAME records in a publicly hosted zone and times out after 72 hours if validation isn't successful. If your certificates have been pending for more than 72 hours, you'll need to delete them and request new ones.
-
DNS Delegation Issues: Even though you've updated the nameservers at Hostinger, verify that the delegation is complete and working correctly. You can check this using tools like dig or nslookup to confirm that queries for your domain are being answered by Route 53's nameservers.
-
NS Record Conflicts: One common issue that can cause validation failures is having both NS records and CNAME records for the same name. This creates DNS resolution conflicts. For example, if you have NS records for admin.mydemoapp.com and are also trying to create validation CNAME records for _hash.admin.mydemoapp.com, this can cause problems.
-
Region Considerations: If you're requesting certificates for use with CloudFront, ensure you're requesting them in the us-east-1 region.
-
Multiple Certificates vs. Single Certificate with SANs: Using a single certificate with multiple Subject Alternative Names (SANs) is generally more efficient and can help avoid potential conflicts. This approach is recommended over requesting separate certificates for each subdomain.
-
Nameserver Configuration: Double-check that your domain is using the correct nameservers and that they match between your registrar and Route 53.
-
CAA Records: Even though you mentioned your CAA records allow multiple CAs, verify that Amazon's CA is specifically allowed.
For your specific situation, I recommend:
- Delete the pending certificate requests
- Request a single new certificate that includes all your subdomains as SANs
- Verify DNS resolution for the validation records using dig or nslookup before proceeding
- Check for any NS record conflicts that might be interfering with validation
If the issue persists with a new certificate request after addressing these potential issues, you might need to contact AWS Support for further assistance.
Sources
Troubleshoot DNS validation problems - AWS Certificate Manager
ACM certificate stuck in “Pending validation” despite correct DNS CNAMEs | AWS re:Post
Unable to request a Certificate in AWS | AWS re:Post
ACM DNS Validation stuck for root domain despite correct CNAME record (sapori.co.za) | AWS re:Post
ACM Certificate Validation Pending indefinitely | AWS re:Post
Ensure you can resolve the CNAME records via NSLOOKUP or DIG. If you cant resolve the CNAME records, then you know you have an issue. Usually after creating CNAME records ACM issues very quickly
Peoples usual mistake is to create the cname with the FQDN which means it looks like _CNAME.example.com.example.com
Just create the CNAME without the domain name
Relevant content
asked 9 months ago
- AWS OFFICIALUpdated a year ago
