简体   繁体   English

在Route53中还配置了父域后,如何在AWS Route53中创建子域?

[英]How can I create a subdomain in AWS Route53 when the parent domain is also configured in Route53?

I have one domain name registered in an AWS Hosted zone. 我在一个AWS托管区域中注册了一个域名。 It comprises of 5 records viz A, SOA, NS (4 ns addresses), MX and CNAME. 它包括5条记录,即A,SOA,NS(4 ns地址),MX和CNAME。 But now, I want to create a Subdomain : static.domain.com . 但是现在,我想创建一个Subdomain: static.domain.com I have read Creating a Subdomain That Uses Amazon Route 53 as the DNS Service without Migrating the Parent Domain article from AWS doc but clearly that is not my case. 我已经从AWS文档中阅读了创建使用Amazon Route 53作为DNS服务而不迁移父域的子域的信息,但显然这不是我的情况。 My domain name is configured in the Route53 itself. 我的域名是在Route53本身中配置的。

So if I have to create a hosted zone for the static.domain.com and update the NS records in the parent's hosted zone domain.com then I can just do that but I am confused if that's gonna work or destroy my whole configuration! 因此,如果我必须为static.domain.com创建一个托管区域并更新父级托管区域domain.com的NS记录,那么我可以这样做,但是如果这样做会起作用或破坏我的整个配置,我会感到困惑!

So guys, please tell me how to create the subdomain static.domain.com when my parent domain domain.com is also in the Route53? 伙计们,请告诉我当我的父域domain.com也位于static.domain.com时,如何创建子域static.domain.com?

FYI : I am creating this subdomain to serve static content from an s3 bucket which will be configured as an static website and will be aliased against this subdomain static.domain.com so that all static requests are can be fetched as http://static.domain.com/resources/path/to/dir/image.png etc. 仅供参考:我正在创建此子域,以从s3存储桶中提供静态内容,该存储桶将被配置为静态网站,并将以该子域static.domain.com作为别名,以便可以将所有静态请求提取为http://static.domain.com/resources/path/to/dir/image.png等。

Thanks very much 非常感谢

All you need to do is create a record set in your Hosted Zone, for your desired sub domain. 您需要做的就是在托管区域中为所需的子域创建一个记录集。

  1. Go to your Hosted Zone 转到您的托管区域
  2. Click the 'Create Record Set' Button 点击“创建记录集”按钮
  3. In the dialog that appears on the right, enter your desired subdomain in the 'name' field. 在右侧出现的对话框中,在“名称”字段中输入所需的子域。 If you want static.domain.com, just enter 'static' in the name field. 如果要static.domain.com,只需在名称字段中输入“ static”。
  4. Choose the Type of DNS Record you want eg, A, CNAME 选择所需的DNS记录类型,例如A,CNAME
  5. Enter a custom TTL if desired, enter value(s) for your record and change the routing policy if also desired. 如果需要,请输入自定义TTL,为记录输入值,并根据需要更改路由策略。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM