Raspberry Pi – how to check your external ip using dig

  linux, raspberry-pi

Install:

sudo apt-get install dnsutils

and check:

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