Skip to content

Instantly share code, notes, and snippets.

@dshipp
Created October 21, 2014 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dshipp/bf0cf49256b60eefb95a to your computer and use it in GitHub Desktop.
Save dshipp/bf0cf49256b60eefb95a to your computer and use it in GitHub Desktop.
Retrieve IP address for hostname. This will also take into account any entries in /etc/hosts
gethostip -d [hostname]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment