I often need to check my WAN IP address – so this little command will do it for you in a terminal window

dig +short myip.opendns.com @resolver1.opendns.com

If you alias it, you can have a one word command (whatismyip)

alias whatismyip='dig +short myip.opendns.com @resolver1.opendns.com'

Lovely

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.