Skip to content

Instantly share code, notes, and snippets.

@mrinalwadhwa

mrinalwadhwa/ip.sh

Created Aug 3, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.