How to change DNS in amazon ec2

I created an instance in Amazon ec2 and deployed my applications in it.

Now I can access my applications using public dns.

My default public dns is similar to ec2 * ** * compute-1.amazonaws.com.

How can I change this to some good name like srinivas.com?

+6
source share
2 answers
  • Register your domain (for example, go to the domain registrar and buy the srinivas.com domain before anyone else does this)
  • Get Elastic IP from Amazon
  • assign elastic IP to your instance via aws management interface
  • Point your domain to your resilient IP address using the DNS registrar tools.
+13
source

Forward DNS and Reverse DNS are two completely different things.

No matter what you do in your DNS, it resolves depending on what the owner of this IP segment says.

Think of it as DNS in the opposite direction. let's say for foo.stackoverflow.com you first request the .com root domain for the NS stack stream, and then request that NS for foo A. say 192.168.1.1

But there is no way to make this jump in the opposite direction. nothing will lead you from 192.168.1.1 to NS for the stackoverflow.com domain. You need a completely different search, but now look at IP ranges instead of domains.

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

They will modify it at their end to point to your A record, this is usually required for mail servers, so the request is for email restriction. just ignore this part and fill in the bottom of the form.

0
source

Source: https://habr.com/ru/post/927764/


All Articles