指向亚马逊的CloudFront的在A记录而不是CNAME [英] Pointing Amazon's CloudFront at an A record not a CNAME

查看:1604
本文介绍了指向亚马逊的CloudFront的在A记录而不是CNAME的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现说明,指出我的域名的CNAME到亚马逊的CloudFront的服务,但我非常希望来点根域名(A记录的名字)。例如,foo.com代替www.foo.com。这可能吗?

I've found instructions to point my domain's CNAME to Amazon's CloudFront service but ideally I would like to point the root name (A record name). For example, foo.com instead of www.foo.com. Is this possible?

推荐答案

您可以点区域顶点(即example.com)上使用他们的路线53服务AWS一个CloudFront的分布。只需登录到您的CloudFront的分布和设置备用域名(的CNAME)到您的域名(例如:example.com和/或www.example.com)。然后在路线53,为您的域名创建托管区域,然后别名记录选择CloudFront的分布为目标。您还可以创建任何子域,比如www.example.com第二别名记录。注意:你需要与你的域名注册商更改域名服务器太

You can point the zone apex (i.e. example.com) to a CloudFront distribution on AWS using their Route 53 service. Just log into your CloudFront distribution and set the Alternate Domain Names (CNAMEs) to your domain (e.g. example.com and/or www.example.com). Then in Route 53, create a hosted zone for your domain, and then an alias record selecting the CloudFront distribution as the destination. You can also create a second alias record for any sub-domains, such as www.example.com. Note: you'll need to change the name servers with your domain registrar too.

从路线53常见问题:

Q值。我可以在点我区顶点(example.com与www.example.com)我   亚马逊CloudFront的分布?

Q. Can I point my zone apex (example.com versus www.example.com) at my Amazon CloudFront distribution?

是的。亚马逊路线53提供记录的特殊类型称为别名   记录,可以让你映射的区域顶点(example.com)DNS​​名称到您的   亚马逊CloudFront的分布(例如,d123.cloudfront.net)。 IP   与Amazon CloudFront的终端关联的地址有所不同的基础上   最终用户的位置(以便引导最终用户的   最近CloudFront的边缘位置),并在任何时候,由于可以改变   按比例放大,缩小,或软件更新。路线53响应   每一个请求与该IP地址(ES)的别名记录   分配。路线53不适用于查询别名记录充电   被映射到一个CloudFront的分布。这些查询列   作为内AWS-DNS-查询亚马逊路线53使用情况报告。

Yes. Amazon Route 53 offers a special type of record called an ‘Alias’ record that lets you map your zone apex (example.com) DNS name to your Amazon CloudFront distribution (for example, d123.cloudfront.net). IP addresses associated with Amazon CloudFront endpoints vary based on your end user’s location (in order to direct the end user to the nearest CloudFront edge location) and can change at any time due to scaling up, scaling down, or software updates. Route 53 responds to each request for an Alias record with the IP address(es) for the distribution. Route 53 doesn't charge for queries to Alias records that are mapped to a CloudFront distribution. These queries are listed as "Intra-AWS-DNS-Queries" on the Amazon Route 53 usage report.

有关详细信息,请参阅自动气象站资料:

For more information, see AWSs documentation:

  • <一个href="http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html">Route 53:路由查询到一个Amazon CloudFront的分布
  • 路线53:创建别名资源记录集
  • Route 53: Routing Queries to an Amazon CloudFront Distribution
  • Route 53: Creating Alias Resource Record Sets

这篇关于指向亚马逊的CloudFront的在A记录而不是CNAME的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆