考虑在AWS Route53上注册的域.应从AWS CloudFront CDN分发中提供对此域的http请求.为了实现这一点,定义了别名A记录:@H_419_3@
@H_419_3@
挖掘结果@H_419_3@
但是,挖掘结果显示实际的IP地址.实际上,这些IP地址不是恒定的,而是随时间变化的:@H_419_3@
# dig @1.1.1.1 serverlessdaystlv.io...;; ANSWER SECTION:serverlessdaystlv.io. 60 IN A 13.32.67.21serverlessdaystlv.io. 60 IN A 13.32.67.27serverlessdaystlv.io. 60 IN A 13.32.67.97serverlessdaystlv.io. 60 IN A 13.32.67.122serverlessdaystlv.io. 60 IN A 13.32.67.141serverlessdaystlv.io. 60 IN A 13.32.67.159serverlessdaystlv.io. 60 IN A 13.32.67.201serverlessdaystlv.io. 60 IN A 13.32.67.216# dig @1.1.1.1 serverlessdaystlv.io...;; ANSWER SECTION:serverlessdaystlv.io. 60 IN A 52.222.232.13serverlessdaystlv.io. 60 IN A 52.222.232.24serverlessdaystlv.io. 60 IN A 52.222.232.43serverlessdaystlv.io. 60 IN A 52.222.232.55serverlessdaystlv.io. 60 IN A 52.222.232.63serverlessdaystlv.io. 60 IN A 52.222.232.104serverlessdaystlv.io. 60 IN A 52.222.232.136serverlessdaystlv.io. 60 IN A 52.222.232.224
我的问题@H_419_3@
什么是Route53别名记录?它是内置类型的DNS记录,还是仅用于CloudFront分配的实际IP的内部AWS别名,从不暴露给外部?@H_419_3@解决方法 Route53别名记录是与DNS协议 record types分开的自己的概念:例如A是地址记录,Cname是规范名称记录. Cname就像一个指向规范名称的别名,而A与别名无关. (见 RFC 1035.)
别名记录是在更高级别上工作的内部Amazon特定指针;在技术DNS级别,它可能会导致A或Cname,具体取决于具体情况. DNS不需要知道这个内部指针类型也不需要知道目标,因为Route53只回答结果记录.@H_419_3@
亚马逊文章Choosing Between Alias and Non-Alias Records详细解释了这一点:@H_419_3@
Alias records provIDe a Route 53–specific extension to DNS
functionality. Instead of an IP address or a domain name,an alias
record contains a pointer to a CloudFront distribution,an Elastic
Beanstalk environment,an ELB Classic,Application,or Network Load
Balancer,an Amazon S3 bucket that is configured as a static website,
or another Route 53 record in the same hosted zone. When Route 53
receives a DNS query that matches the name and type in an alias
record,Route 53 follows the pointer and responds with the applicable
value:@H_419_3@An alternate domain name for a CloudFront distribution – Route 53 responds as if the query had asked for the CloudFront distribution by
using the CloudFront domain name,such as
d111111abcdef8.cloudfront.net
.@H_419_3@An Elastic Beanstalk environment – Route 53 responds to each request with one or more IP addresses for the environment.@H_419_3@
An ELB load balancer – Route 53 responds to each request with one or more IP addresses for the load balancer.@H_419_3@
An Amazon S3 bucket that is configured as a static website – Route 53 responds to each request with one IP address for the Amazon S3 bucket.@H_419_3@
Another Route 53 record in the same hosted zone – Route 53 responds as if the query had asked for the record that is
referenced by the pointer.@H_419_3@
混淆是可以理解的,因为您似乎在添加A类型的IPv4地址记录,而目标是主机名而不是IP地址;你宁愿和Cname一起使用的东西!@H_419_3@ 总结
以上是内存溢出为你收集整理的domain-name-system – 什么是Amazon Route53“Alias”DNS记录?全部内容,希望文章能够帮你解决domain-name-system – 什么是Amazon Route53“Alias”DNS记录?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)