nslookup myip.opendns.com resolver1.opendns.com

curl -s ifconfig.me (Linux)