我们最近将我们的Web应用程序移至AWS.我们的旧托管服务商仍在管理的一件事是DNS.
OLD HOSTER example.com. NS <Old hoster's name server> example.com. A <ElasticIP on EC2 instance> *.example.com. CNAME example.com. ...
我现在正尝试设置和使用Route53并将其用于我们的EC2实例的名称解析.
ROUTE53 web-01.aws.example.com. CNAME ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com. web-02.aws.example.com. CNAME ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com. ...
现在我的问题:是否可以将* .aws.example.com的DNS查询转发到Route53(ns-xxxx.awsdns-59.co.uk.)?我必须添加什么样的记录?
更新
现在我有以下NS记录:
OLD HOSTER: Zone example.com. example.com. NS <Old hoster's name server> example.com. A <ElasticIP on EC2 instance> *.example.com. CNAME example.com. ... OLD HOSTER: Zone aws.example.com. aws.example.com. NS ns-1324.awsdns-37.org. aws.example.com. NS ns-384.awsdns-48.com. aws.example.com. NS ns-1754.awsdns-27.co.uk. aws.example.com. NS ns-590.awsdns-09.net. ROUTE53: Zone aws.example.com. aws.example.com. NS ns-1324.awsdns-37.org. aws.example.com. NS ns-384.awsdns-48.com. aws.example.com. NS ns-1754.awsdns-27.co.uk. aws.example.com. NS ns-590.awsdns-09.net. web-01.aws.example.com. CNAME ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com. web-02.aws.example.com. CNAME ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com. ...
但是,当我为web-01.aws.example.com做nslookup时,我从旧服务器获取A记录(ElasticIP).当我在ns-1324.awsdns-37.org上查找主机时,我确实得到了CNAME记录.所以问题出在我猜的旧DNS服务的某个地方.
我是否需要在AWS上的example.com区域(而不是aws.example.com区域)添加内容?
TTL是3600,所以这不应该是问题.
非常感谢您的任何其他帮助.
这是我的最终设置.
OLD HOSTER: Zone example.com. example.com. NS <Old hoster's name server> aws.example.com. NS ns-1324.awsdns-37.org. aws.example.com. NS ns-384.awsdns-48.com. aws.example.com. NS ns-1754.awsdns-27.co.uk. aws.example.com. NS ns-590.awsdns-09.net. example.com. A <ElasticIP on EC2 instance> *.example.com. CNAME example.com. ... ROUTE53: Zone aws.example.com. aws.example.com. NS ns-1324.awsdns-37.org. aws.example.com. NS ns-384.awsdns-48.com. aws.example.com. NS ns-1754.awsdns-27.co.uk. aws.example.com. NS ns-590.awsdns-09.net. web-01.aws.example.com. CNAME ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com. web-02.aws.example.com. CNAME ec2-xx-xx-xx-xx.eu-west-1.compute.amazonaws.com. ...
解决方法
@H_301_33@ 您可以为aws.example.com添加指向Route53名称服务器的相应NS记录.例如:aws.example.com. IN NS ns-2012.awsdns-59.co.uk. aws.example.com. IN NS ns-650.awsdns-14.com. aws.example.com. IN NS ns-102-awsdns-45.org.