commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Designed to access external IP from shell. Check the web page (ifconfig.me) to find many more options such as port, lang, mime, ...
There are 5 alternatives - vote for the best!
Instead of opening your browser, googling "whatismyip"...
Also useful for scripts.
dig can be found in the dnsutils package.
Faster than the curl/wget-approaches.
should be very consistent cause it's google :-)
If you can do better, submit your command here.
You must be signed in to comment.