20 Change Domain Name Amazon Ec2 Update

I have setup a wordpress blog on the ec2 instance.
Change domain name amazon ec2. Your ec2 instance has a public ip address and dns name. Everything is fine except the ugly looking domain name. I am new to amazon aws ec2.
This post shows how to set up a custom domain to access your site. Using your normal domain provider you can create either an a record pointing to the public ip address or a cname record pointing to the dns name. The default way to access ec2 instances is by typing its ip address 192 168 0 1 in a browser.
However if you stop and restart your instance either intentionally or unintentionally both your public ip address and dns name will change.