为什么我不能创建此Route53 CNAME别名?

问题描述

我用fake-domain代替了我们真正拥有的。

这就是我现在在R53中拥有的。

www.fake-domain.com     CNAME     xxxxxxx.cloudfront.net
fake-domain.com         MX        {typical MX records}
fake-domain.com         NS        {aws name servers }

当我尝试将fake-domain.com的CNAME别名添加www.fake-domain.com时,出现以下错误

InvalidChangeBatch 400: RRSet of type CNAME with DNS name fake-domain.com. is not permitted as it conflicts with other records with the same DNS name in zone fake-domain.com.

与哪个记录有冲突?我没有A,唯一的根级别是MXNS

解决方法

在Route53中,仅当您必须指向AWS资源时,才允许使用别名。您可以创建cname别名以指向ELB DNS。