How do I resolve a DNS CNAME conflict from the AWS WordPress Plug-In tool for Cloudfront?

0

Following the steps of the AWS for Wordpress Plug-In, I created cloud front distribution with SSL certificate. However, when I go to Route 53 to add the CNAME record for the distribution, I get the following error message

Bad request. (InvalidChangeBatch 400: RRSet of type CNAME with DNS name www.diversereads.org. is not permitted as it conflicts with other records with the same DNS name in zone diversereads.org.)

I do not have any other CNAME records (other than the validation one), so I don't know where the conflict is arising from.

I went over to the Lightsail console, created a new DNS zone, updated the name servers in Route 53, and was able to add the CNAME record in Lightsail, but my site still shows not secure.

4 Answers
1

Could you please try the following as per the documentation

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html

Adding an alternate domain name

1. Sign in to the AWS Management Console and open the CloudFront console at https://console.aws.amazon.com/cloudfront/v3/home.
2. Choose the ID for the distribution that you want to update.
3. On the General tab, choose Edit.
4. Update the following values:
Alternate Domain Names (CNAMEs)
Add your alternate domain names. Separate domain names with commas, or type each domain name on a new line.

[...]

Route 53

Create an alias resource record set. With an alias resource record set, you don’t pay for Route 53 queries. In addition, you can create an alias resource record set for the root domain name (example.com), which DNS doesn’t allow for CNAMEs. For more information, see Routing traffic to an Amazon CloudFront web distribution by using your domain name in the Amazon Route 53 Developer Guide.
profile picture
Sri
answered 2 years ago
0

That is exactly what I have already done. However the final step, going to Route 53 to add the CNAME record is where I have the problem. I get an error message saying "conflicts with other records with the same DNS name in zone" even though there are no other CNAME records visible in my zone.

answered 2 years ago
0

Based on a DNS query, it looks like you already have an A record for www.diversereads.org - you'll need to remove this to be able to add a CNAME record.

AWS
EXPERT
Paul_L
answered 2 years ago
0

I removed the A record and still got the same error message when attempting to add the CNAME record.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions