- Newest
- Most votes
- Most comments
The public DNS name is the FQDN for an EC2 instance.
You can use describe-instances API to get the public DNS name of an EC2 instance:
https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html
Hi fengaws,
Do you refer to public dns? This would not help at all since it contains the ip inside - so every time the ip changes, also the dns name will change. The public DNS name has the format: ec2-ip.region.compute.amazonaws.com.
Do you have the FQDN of EC2? So the possible ip list for the EC2 machines? I am interested to know when an Ec2 machine starts that this is the ip list where the machine can chooses its ip from.
Thank you,
Cristina
Hi Cristina,
As this question concerns best practices for EC2 specifically, you will be able to get the best support on the AWS EC2 forums here: https://forums.aws.amazon.com/forum.jspa?forumID=30
I would recommend opening this thread over there and they can help you out.
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 7 months ago