That will return an IPv6 address, if you have IPv6 connectivity. That's normally be fine, but for occasions it isn't there is
dig +short -4 myip.opendns.com a @resolver1.opendns.com dig +short -4 myip.opendns.com a @resolver1.opendns.comNo comments yet.