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.

已提问 2 年前2477 查看次数
4 回答
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
已回答 2 年前
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.

已回答 2 年前
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
专家
Paul_L
已回答 2 年前
0

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

已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则