Skip to content

Instantly share code, notes, and snippets.

@daniel-pedersen
Created September 1, 2015 09:15
Show Gist options
  • Select an option

  • Save daniel-pedersen/cba61a975aa3339a2318 to your computer and use it in GitHub Desktop.

Select an option

Save daniel-pedersen/cba61a975aa3339a2318 to your computer and use it in GitHub Desktop.
`myip` public IP lookup command
# Put line below in .bash_profile or equivalent
# Example:
# $ myip
# 111.222.333.444
alias myip = 'dig +short myip.opendns.com @resolver1.opendns.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment