简体   繁体   English

AWS 账户是否有必要成为 AWS Organizations 的一部分以支持 Route53 中的跨账户子域委派?

[英]Is it necessary for AWS accounts to be part of AWS Organizations to support cross-account subdomain delegation in Route53?

I have 2 AWS accounts, let's say account A and B. In account A i have registered domain name: abc.com, I want to create subdomain like dev.abc.com in account B. As of now i have created hosted zone dev.abc.com in account B and copied the NS values to hosted zone in account A(by creating record set for NS).我有 2 个 AWS 账户,假设账户 A 和 B。在账户 A 中我注册了域名:abc.com,我想在账户 B 中创建像 dev.abc.com 这样的子域。截至目前我已经创建了托管区域 dev .abc.com 并将 NS 值复制到帐户 A 中的托管区域(通过为 NS 创建记录集)。 But when i try to dig domain name:但是当我尝试挖掘域名时:

dig abc.com ns (i get NS records in answer section, status as NOERROR ) dig abc.com ns (我在答案部分得到 NS 记录,状态为NOERROR

Output:输出:

QUESTION SECTION:
abc.com.            IN  NS
 ANSWER SECTION:
abc.com.        15045   IN  NS  ns-xxx.awsdns-xx.net.
abc.com.        15045   IN  NS  ns-xxxx.awsdns-xx.org.
abc.com.        15045   IN  NS  ns-xxxx.awsdns-xx.co.uk.
abc.com.        15045   IN  NS  ns-xxx.awsdns-xx.com.

dig dev.abc.com (i get status as NXDOMAIN ). dig dev.abc.com (我的状态为NXDOMAIN )。

Output:输出:

QUESTION SECTION:
dev.abc.com.            IN  NS

AUTHORITY SECTION:
dev.abc.com.        621 IN  SOA ns-xxx.awsdn 

I checked the values of NS are correct in account A for dev.abc.com , but still get NXDOMAIN.我在 dev.abc.com 的帐户 A 中检查了 NS 的值是否正确,但仍然获得 NXDOMAIN。 Now i'm thinking if this issue is coming because my AWS accounts are not the part of AWS Organizations.现在我在想这个问题是否会因为我的 AWS 账户不是 AWS Organizations 的一部分而出现。

No it is not necessary for 2 accounts to be part of AWS organisations.不,2 个账户不必成为 AWS 组织的一部分。

I was able to resolve it, i checked the NS values in registered domain were not matching the NS values of Hosted zone.我能够解决它,我检查了注册域中的 NS 值与托管区域的 NS 值不匹配。 Now i'm able to get correct NS values for subdomain as well using dig command.现在我也可以使用 dig 命令为子域获取正确的 NS 值。

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

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