CloudFront for naked domain name WordPress problem

0

I have created a WordPress website (mywebsite.com) and wanted to use CloudFront. In the wizard, it asked me to add the below CNAME record in my DNS records.

Name               Type     Value
mywebsite.com      CNAME    xxx123.cloudfront.net

But when I tried to enter that in my DNS records I got an error that it is not allowed. What is your solution for this?

Note: I even tested this with Route 53 and got a similar error:

(InvalidChangeBatch 400: RRSet of type CNAME with DNS name mywebsite.com. is not permitted at apex in zone mywebsite.com.)

preguntada hace 2 años669 visualizaciones
1 Respuesta
2
Respuesta aceptada
profile pictureAWS
EXPERTO
kentrad
respondido hace 2 años
profile pictureAWS
EXPERTO
revisado hace 2 años
  • You mean I have to create A records to IP4 and IP6? Does this defeat the purpose of having dynamic IP addresses to the various regions?

  • Alias records are route53-specific extensions to DNS functionality. They are not the same as A records. You can find more information here: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html

    You cannot use a CNAME for the zone apex. Alias records provide you similar functionality to CNAME records when used with CloudFront distributions, plus they can be used for the zone apex. If you create any alternate domain names though, eg. www.example.com, you should use a CNAME record.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas