aboutsummaryrefslogtreecommitdiffstats
path: root/bin/checkip
blob: 831ded7de3e9ce1e2758b75e17ebdbbfc30eb6f4 (plain)
1
2
3
4
5
6
#!/usr/bin/env sh

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