ip snippets

"What's my IP" bash script

Tagged bash, wanip, ip, dns  Languages bash

This bash alias displays your IP address:

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