How to change Public DNS in amazon ec2

amazon-ec2

Solution

- Register your domain (i.e. go to a domain registrar and purchase the domain srinivas.com before someone else does)

- Get an elastic IP address from amazon

- assign the elastic IP address to your instance through the aws management interface

- Point your domain to your elastic IP address using your registrar's DNS tools

Problem

I created an instance in Amazon ec2 and deployed my apps in that. Now I am able to access my applications using the public dns. My default public dns is like ec2****compute-1.amazonaws.com. How can I change this to some good name like srinivas.com?

Original source