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?

asked 10 months ago235 views
2 Answers
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
EXPERT
answered 10 months ago
  • 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
EXPERT
answered 10 months ago
  • If the answer is helpful, please click "Accept Answer" and upvote it.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions