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 References:

SSL without DNS

A lot of times during development I need to make a “box” accessible to the internet using SSL (HTTPS). In order to use SSL you need a certificate. The free option to get a certificate is to use let’s encrypt. In order to get a certificate using let’s encrypt you Read more…