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
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.
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
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures