AWS: VPC DNS Server

From a running ec2, as long as the vpc has DNS support enabled, you can use the vpc dns server to resolve DNS names. It will resolve public AWS names to private IPs if within the VPC. DNS Server 169.254.169.253 References: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html