Tip: EC2 DNS Records

It is common after launching a new instance in EC2 to assign a domain name to it.  A useful practice I have found is to create a CNAME to the amazon provided public hostname.  This address will resolve to the internal address when inside EC2, and to the public address outside EC2.  By using this hostname, you can ensure the best performance and lowest cost by always hitting the server with the optimal address.

Leave a Reply

Your email address will not be published. Required fields are marked *