Edited at

EC2でpublic DNS名取得

More than 1 year has passed since last update.

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