EC2 instance has no public DNS

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.


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


    There is a actually a setting in the VPC called "DNS Hostnames". You can modify the VPC in which the EC2 instance exists, and change this to "Yes". That should do the trick.

    I ran into this issue yesterday and tried the above answer from Manny, which did not work. The VPC setting, however, did work for me.

    Ultimately I added an EIP and I use that to connect.


    Sounds like the instance was launched in VPC and while doing so, the check-box for Automatically assign a public IP address to your instances was not checked. Hence the instance does not have a public IP

    You can assign an Elastic IP to this instance and then log in using that IP.

    链接地址: http://www.djcxy.com/p/32442.html

    上一篇: 无法连接到在公共IP上运行在EC2上的Rails服务器

    下一篇: EC2实例没有公共DNS