Private DNS EC2 Bash
curl http://169.254.169.254/latest/meta-data/public-hostname
Energetic Eagle
curl http://169.254.169.254/latest/meta-data/public-hostname