#!/usr/bin/env sh if [ -x /usr/bin/dig ]; then dig +short myip.opendns.com @resolver1.opendns.com fi exit 0