DNS attributes within the VPC

0

Hello,I am considering a configuration where I specify the on-premises DNS server in the DHCP options set, and use the Systems Manager via the VPC endpoint from the EC2 instances. In order to implement this configuration, do I necessarily have to enable 'enableDnsHostnames' and 'enableDnsSupport' in the VPC settings? Also, for the DNS server settings in the DHCP options set, should I specify both the on-premises DNS server and AmazonProvidedDNS?

已提问 1 年前251 查看次数
2 回答
1

Have you considered using route53 outbound endpoints and configure rules to forward requests for specific domains to on prem DNS servers.

That is also another option for you depending on your requirements

profile picture
专家
已回答 1 年前
  • Thank you for your answer. Yes, I am considering it, but I am aiming to make the configuration as simple as possible

  • Think you will find this is the simplest configuration. You’ll get into other issues using on prem DNS servers as the primary name server.

0

Here's a clarification on the settings enableDnsHostnames and enableDnsSupport in the VPC:

  1. enableDnsHostnames allows instances with assigned public IPs to have corresponding DNS hostnames in the <region>.compute.amazonaws.com domain.

  2. enableDnsSupport enables DNS resolution within the VPC, meaning your instances can resolve the DNS names of other instances.

If you're using Systems Manager via a VPC endpoint from the EC2 instances, you do not necessarily have to enable 'enableDnsHostnames' and 'enableDnsSupport' in the VPC settings. VPC endpoints allow private connections between your VPC and supported AWS services, so your traffic to Systems Manager doesn't need to leave the Amazon network.

In order to implement the configuration where you use your on-premises DNS server, you should specify your on-premises DNS servers in the DHCP options set. As per the documentation, it is not recommended to specify both the on-premises DNS server and AmazonProvidedDNS. So, you should choose only your on-premises DNS server.

Please remember to ensure that your on-premises DNS server can correctly resolve any necessary internal and external addresses for your application. If your on-premises DNS server has to resolve AWS-specific addresses, you may need to configure it to forward queries for the Amazon-provided DNS.

profile picture
专家
已回答 1 年前
  • If the answer is helpful, please click "Accept Answer" and upvote it.

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

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

回答问题的准则

相关内容