- Newest
- Most votes
- Most comments
This issue is related to how DNS records work in Route 53. When you're getting the error "RRSet of type CNAME with DNS name is not permitted as it conflicts with other records with the same DNS name in zone," it indicates there's still a conflict with existing records.
Here are the key points to understand:
-
DNS protocol does not allow a CNAME record to coexist with any other record type for the same name. If you have any other record type (A, AAAA, MX, TXT, etc.) for x.domain.com, you cannot create a CNAME for the same name.
-
Even though you deleted the A record alias, there might still be other records with the same name in your hosted zone. This could include NS records, SOA records, or other record types that you may not be immediately aware of.
-
If x.domain.com is the zone apex (meaning it's the root domain itself), you cannot create a CNAME record for it at all. The DNS protocol does not allow CNAME records at the zone apex.
To resolve this issue:
-
Verify that there are absolutely no other records of any type for x.domain.com in your hosted zone.
-
Check if x.domain.com is the zone apex. If it is, you'll need to use an A record alias instead of a CNAME.
-
If you've confirmed there are no other records and x.domain.com is not the zone apex, you might need to wait longer for DNS propagation or contact AWS Support as there could be a caching issue in the Route 53 system.
-
As an alternative, you could use Route 53's alias record functionality instead of a CNAME if you're pointing to another AWS resource.
Sources
Supported DNS record types - Amazon Route 53
Resolve CNAME record issues in Windows DNS server | AWS re:Post
Relevant content
- AWS OFFICIALUpdated a year ago
