Skip to content

Instantly share code, notes, and snippets.

@zubinmehta
Created January 1, 2013 13:54
Show Gist options
  • Select an option

  • Save zubinmehta/4427689 to your computer and use it in GitHub Desktop.

Select an option

Save zubinmehta/4427689 to your computer and use it in GitHub Desktop.
#On an ec2 machine find it's public dns host name
curl -s http://169.254.169.254/latest/meta-data/public-hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment