创建一个使用Amazon Route 53作为DNS服务的子域,而无需迁移父域 [英] Create a subdomain that uses Amazon Route 53 as the DNS service without migrating the parent domain

本文介绍了创建一个使用Amazon Route 53作为DNS服务的子域,而无需迁移父域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个实例example.com的域.

该域由第三方服务(数字海洋)托管.

The domain is hosted by a third party service (Digital Ocean).

我想将对子域的控制权交给AWS.

I would like to give control of a subdomain to AWS.

所以我想将aws.example.com指向AWS.

So I would like to point aws.example.com to AWS.

一旦根子域指向AWS.我想使用Route 53设置以下功能:

Once the root subdomain is pointed to AWS. I would like to use Route 53 to setup the following functionality:

  • aws.example.com => eb my-production-eb的别名
  • dev.aws.example.com => eb my-dev-eb的别名
  • stage.aws.example.com => eb别名my-stage-eb
  • aws.example.com => alias to eb my-production-eb
  • dev.aws.example.com => alias to eb my-dev-eb
  • stage.aws.example.com => alias to eb my-stage-eb

这可能吗?我是否必须通过cname记录直接将我的域指向AWS负载均衡器?

Is this possible? Do I have to point my domains directly via cname record to the AWS load balancer?

更新1 :

我觉得我需要在Digital Ocean中设置以下内容:

I feel like I need to set the following in Digital Ocean:

  • aws.example.com =>以某种方式撤销对AWS Route 53的控制权
  • *.aws.example.com =>以某种方式撤销对AWS Route 53的控制权
  • aws.example.com => revoke control to AWS Route 53 somehow
  • *.aws.example.com => revoke control to AWS Route 53 somehow

更新2 :

不适用于Digital Ocean.

The AWS documentation for Creating a Subdomain That Uses Amazon Route 53 as the DNS Service without Migrating the Parent Domain does not work for Digital Ocean.

请勿将授权起始(SOA)记录添加到父域的区域文件中.由于该子域将使用Amazon Route 53,因此父域的DNS服务不是该子域的权限. 如果您的DNS服务自动为子域添加了SOA记录,请删除该子域的记录.但是,请勿删除父域的SOA记录.

Do not add a start of authority (SOA) record to the zone file for the parent domain. Because the subdomain will use Amazon Route 53, the DNS service for the parent domain is not the authority for the subdomain. If your DNS service automatically added an SOA record for the subdomain, delete the record for the subdomain. However, do not delete the SOA record for the parent domain.

有关数字海洋的有关更改SOA地址的问题,标题为"

The question on Digital ocean regarding changing the SOA address titled "How can I change the SOA address in DNS settings?" states the following in one of the comments.

很遗憾,目前无法编辑SOA地址

Unfortunately it is not possible to edit the SOA address right now

Digital Ocean可以对此功能进行投票 DNS中可配置的SOA记录.

There is the ability to vote for this feature in Digital Ocean Configurable SOA record in DNS.

所以我的想法是,因为您无法在Digital Ocean上删除SOA,所以Amazon无法与该域正确通信.

So my idea is that because you can't remove the SOA on Digital Ocean Amazon can't communicate to the domain correctly.

推荐答案

您需要将DNS子域aws.example.com委派给Route 53.

You need to delegate the DNS subdomain aws.example.com to Route 53.

请参阅创建一个使用Amazon Route 53作为DNS服务的子域,迁移父域

您可以创建一个使用Amazon Route 53作为DNS的子域 服务,而无需从另一个DNS服务迁移父域.

You can create a subdomain that uses Amazon Route 53 as the DNS service without migrating the parent domain from another DNS service.

基本步骤是:

  1. 为子域创建Amazon Route 53托管区域.
  2. 将新子域的资源记录集添加到您托管的Amazon Route 53中
  3. 通过为步骤1中提供的子域添加名称服务器记录来更新父域的DNS服务.

假定当前TLD example.com托管在Digital Ocean,那么您需要使用<名称>服务器为创建aws.example.com的托管区域时使用的名称服务器在aws子域中创建NS资源记录.

Assuming the current TLD example.com is hosted at Digital Ocean, then you need to create NS resource records there for the aws subdomain, using the name servers Route 53 provides you when create the hosted zone for aws.example.com.

然后,您可以控制所有主机*.aws.example.com,包括来自Route 53的ELB的CNAMES等.

Then you can control all hosts *.aws.example.com, including CNAMES for ELBs etc. from Route 53.

这篇关于创建一个使用Amazon Route 53作为DNS服务的子域,而无需迁移父域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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