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개 답변
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠