Skip to content

Instantly share code, notes, and snippets.

@mrinalwadhwa
Created August 3, 2016 17:33
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 mrinalwadhwa/8528dbb6aac637ee941aadc497926abe to your computer and use it in GitHub Desktop.
Save mrinalwadhwa/8528dbb6aac637ee941aadc497926abe to your computer and use it in GitHub Desktop.
Display external IP using OpenDNS.
#!/usr/bin/env bash
##
## Usage: ip
## Display external IP using OpenDNS.
##
dig +short myip.opendns.com @resolver1.opendns.com
# REFERENCES
# http://www.commandlinefu.com/commands/view/5253/get-your-outgoing-ip-address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment