Skip to content

windows ec2 dns not getting resolved

0

I am getting DNS error in the EC2 running win server 2022.

nslookup gmail.com 8.8.8.8 -> Resolved nslookup gmail.com 169.254.169.253 -> not resolved. telnet 169.254.169.253 53 > Could not open connection to the host, on port 53: Connect failed

2 Answers
0

Based on your symptoms, it appears you're experiencing DNS resolution issues with your Windows Server 2022 EC2 instance. The fact that you can resolve domains using Google's DNS (8.8.8.8) but not with the AWS-provided DNS (169.254.169.253) indicates a specific issue with the AWS DNS resolver.

The telnet failure to 169.254.169.253 on port 53 suggests connectivity issues to the AWS DNS server. This could be due to several reasons:

  1. Security Group or Network ACL restrictions: Verify that your security groups and network ACLs allow outbound traffic on port 53 (both TCP and UDP) to the AWS DNS server.

  2. VPC DNS settings: Ensure that DNS resolution and DNS hostnames are enabled in your VPC settings.

  3. Windows Server 2022 may have restrictions with the 169.254.x.x address space (Link Local address space): Instead of using 169.254.169.253, try using your VPC's .2 address as the DNS server. For example, if your VPC CIDR is 10.0.0.0/16, use 10.0.0.2 as your DNS server.

  4. Check your network configuration: Ensure that your instance is properly configured to use the AWS DNS server. In Windows, you can check this in the network adapter properties.

  5. Firewall settings: Check if the Windows Firewall is blocking DNS traffic to the AWS DNS server.

To resolve this issue, I recommend:

answered a year ago

0

able to resolve using 172.31.0.2

answered a year ago

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.