How can I allow access only via FQDN to instances from another directory service domain?

0

I want to create an environment with two directory services and several EC2 instances in those domains.

  • The EC2 instances should be able to address other EC2 instances in the same domain via hostname.
  • Whereas the EC2 instances from the other domain need to use the FQDN to addess the EC2 instance of the first domain and vice versa

I tried creating a trust relationship between the two directory services, but that enables all EC2 instance to use only hostname to address instances from any domain.

Is there a way to configure this requirement with AWS directory services?

已提问 7 个月前216 查看次数
1 回答
0

Hello! If I understand you correctly, you have this scenario:

  1. You have two directories, let's call it a.local and b.local.
  2. You need computers joined to a.local to resolve hostnames in b.local and viceversa.

Operating systems use the concept of DNS suffixes (Windows) or DNS search order (UNIX-like OS). This is what allows a computer to request the dns of "server" and it is automatically converted to a FQDN using a suffix (i.e a.local). So when querying "server", the OS is actually querying server.a.local. You can check this behavior with any packet capture software. You can add several suffixes. For example, in Windows you can do this in the network interface adapter.

So, in order to get this working, you need two things:

  1. Add the new suffixes to your clients (machines)
  2. Ensure that both DNS servers (i.e domain controllers) can resolve each other's resources.

For 2), this depends on the DNS IP addresses you are using:

  1. If you are using the domain controllers IP addresses, you need to add conditional forwarders [1].
  2. If you are using Route 53, you need to create outbound DNS resolvers [2]. I suggest to read this AWS blog [3] for a deeper understanding of how to integrate DNS between AD and Route 53.

Have a great day ahead!

[1] https://woshub.com/dns-conditional-forwarding-policy-windows-server/ [2] https://repost.aws/knowledge-center/route53-resolve-with-outbound-endpoint [3] https://aws.amazon.com/blogs/networking-and-content-delivery/integrating-your-directory-services-dns-resolution-with-amazon-route-53-resolvers/

AWS
支持工程师
已回答 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则