EC2 instance has no public DNS

user1456508 picture user1456508 · Jan 6, 2014 · Viewed 163.3k times · Source

A guy I work with gave me the EC2 credentials to log onto his EC2 console. I was not the one who set it up. Some of the instances show a public dns name and others have a blank public DNS. I want to be able to connect to the instances that have a blank public DNS. I have not been able to figure out why these show up as blank.

Answer

Mat picture Mat · Oct 16, 2014

I had the same problem an solved it. Have a look at the step-by-step instructions:

  • Go to console.aws.amazon.com
  • Go To Services -> VPC
  • Open Your VPCs
  • select your VPC connected to your EC2 and
  • select Actions => Edit DNS Hostnames ---> Change DNS hostnames: to YES

Hope this helps!

Cheers