Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Public DNS in amazon ec2

Tags:

amazon-ec2

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?

like image 380
Srinivas Nallapati Avatar asked Oct 15 '12 16:10

Srinivas Nallapati


People also ask

Does EC2 public DNS change?

The public DNS name always matches the public IP address. The public IP address stays the same for an instance until it is terminated or stopped. A reboot does not change the public IP address. If an EC2 instance is in a VPC, then it will retain the same public IP address across a stop and start.

How do I change my DNS on AWS?

Sign in to the AWS Management Console and open the Route 53 console at https://console.aws.amazon.com/route53/ . In the navigation pane, choose Registered Domains. Choose the name of the domain for which you want to edit settings. Choose Add/Edit Name Servers.

Does AWS have public DNS?

amazon web services - EC2 instance has no public DNS - Stack Overflow.


1 Answers

  • 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
like image 163
digitaljoel Avatar answered Oct 09 '22 13:10

digitaljoel