Cloudfront dist on top level domain

2019-05-05 03:04发布

Is it possible to point a top level domain like http://example.com to a amazon cloudfront distribution?

I know it's possible with CNAME's but as far as i know i need to set a A-name record for the top level domain in the DNS settings.

3条回答
手持菜刀,她持情操
2楼-- · 2019-05-05 03:39

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

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.

Source: Amazon Route 53 FAQs

查看更多
放我归山
3楼-- · 2019-05-05 03:47

you can if you add alias in cloudfront then select A or AAAA(ipv6 if enabled on cloudfront)

查看更多
何必那么认真
4楼-- · 2019-05-05 03:50

My understanding is that you cannot create an A record for Cloudfront.

Amazon provides you with a domain name like YourName.cloudfront.net. They need to manage the DNS resolution for that domain name behind the scenes in order to route each request to the nearest edge server.

查看更多
登录 后发表回答