7
votes

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?

2

2 Answers

15
votes
  • 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
0
votes

Forward DNS and Reverse DNS are two completely different things.

No matter what you do in your DNS it resolves to whatever the owner of that ip segment says it does.

Think about it as DNS in Reverse. so say for foo.stackoverflow.com you first query the root .com domain for the stackoverflow NS, then query that NS for the foo A. say 192.168.1.1

But there is no way to make that jump in reverse. nothing will take you from 192.168.1.1 to the NS for the stackoverflow.com domain. You need a completely different lookup, but now looking at IP ranges instead of domains.

in AWS case you need to fill out this form, here: https://aws.amazon.com/forms/ec2-email-limit-rdns-request

They will change it on their end to point to your A record, this is normally needed for mail servers, therefore the email limit request. just ignore that part and complete the bottom portion of the form.