Route53 如何将多个域名关联到一条记录?

How can I associate multiple domain name with one record in Route53?

我正在考虑使用 AWS Route53 来平衡多个域名之间的流量。根据 AWS 文档:

Associating multiple IP addresses with a single record is often used for balancing the load of geographically-distributed web servers. Amazon Route 53 allows you to list multiple IP addresses for an A record and responds to DNS requests with the list of all configured IP addresses.

上面提到可以关联多个IP地址,但是如何关联多个域名呢?我的用例是我有来自不同 AWS 账户的多个应用程序负载均衡器。我想使用 route53 将流量路由到这些 ALB 端点。

我尝试用列表中的多个域名创建 CNAME,但出现错误:

InvalidChangeBatch 400: RRSet of type CNAME with DNS name rancher.crms.myzeller.dev. does not contain exactly one resource record.

如何在route53中实现?

发生这种情况是因为您正在创建路由策略值为简单路由的记录。先尝试使用地理定位或加权进行测试。