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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南

相關內容