Created
August 3, 2016 17:33
-
-
Save mrinalwadhwa/8528dbb6aac637ee941aadc497926abe to your computer and use it in GitHub Desktop.
Display external IP using OpenDNS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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