How can I get DNS queries to reach my AWS EC2 instance?

0
1
Asked By CuriousCoder42 On

I set up an EC2 instance with Windows Server 2022 and assigned it a public IP (let's call it x.y.a.b). I enabled the DNS server and configured the security group to allow all traffic from my public IP. I can RDP into the instance with no issues, and I've set my laptop's DNS to use the EC2 instance's public IP. While DNS queries for public domains work fine, my internal domain queries aren't resolving. After checking with Wireshark, I found out that the DNS queries aren't reaching my Windows Server, suggesting that AWS may be resolving these requests instead. How can I redirect DNS queries to my EC2 instance instead of having AWS handle them?

2 Answers

Answered By NetNerd88 On

What tool are you using to test your DNS queries? If you're using a web browser, it might automatically redirect those queries to public DNS servers and ignore your system settings. As far as I know, AWS typically doesn't intercept DNS traffic itself.

Answered By TechieTribe On

Have you checked if TCP and UDP on port 53 are open? You might want to run nslookup or dig to see what's happening.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.