Search code examples
amazon-web-servicesamazon-ec2fqdn

FQDN of EC2 instance from AWS console


How Can I determine the FQDN of my Ec2 instance from AWS Ec2 console?

Regards, Sakshi


Solution

  • The breakdown of FQDN os as follows [hostname].[domain].[tld]..

    there are 2 ways to find this.

    • using console under instance summary.
    • using ec2 metadata. run the following command to from within your ec2 instance.

    curl http://169.254.169.254/latest/meta-data/public-hostname

    list of metadata