问题描述
在亚马逊,我试图创建一个CNAME为一个域,
In Amazon, I am attempting to create a cname for a domain,
example.com
在路线53负载平衡器
to a load balancer in Route 53
Examplecom-1058462749.us-west-2.elb.amazonaws.com
但是,当我试图保存记录,我得到这个错误:
But when I try to save the record, I get this error:
RRSet of type CNAME with DNS name example.com.
is not permitted at apex in zone example.com.
当我试图使它的A记录,我得到一个类似的问题:
And when I try to make it an A record, I get a similar issue:
The record set could not be saved because:
- The Value field contains invalid characters
or is in an invalid format.
由于负载平衡器的公共DNS并不是IPv4地址。我究竟做错了什么?我怎样才能example.com指向负载均衡?请注意,我并成功创建了CNAME为www.example.com负载均衡的公共DNS。
Because the public DNS of the load balancer is not an ipv4 address. What am I doing wrong? How can i get example.com to point to the load balancer? Note, I did successfully created a cname for www.example.com to the load balancers public dns.
推荐答案
http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingAliasRRSets.html
您不使用CNAME,您可以使用配置的别名ELB A记录。
You don't use a CNAME, you use an A record configured as an ALIAS for the ELB.
当你设置别名为是,而创造的记录,您将看到您所选择的ELB,其内部的信息将被用于来提供答案了别名框。
When you set Alias to "Yes" while creating the A record, you will then see a box where you select the ELB whose internal info will be used to serve up answers for the alias.
别名是路由53功能,旨在支持你正在做什么。
Aliases are a Route 53 feature designed to support exactly what you are trying to do.
这篇关于EC2 / Route53:我怎么点顶点记录在负载均衡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!