aboutsummaryrefslogtreecommitdiffstats
path: root/bin/checkip
diff options
context:
space:
mode:
authorDavid Runge <david.runge@frqrec.com>2014-11-28 14:41:52 +0100
committerDavid Runge <david.runge@frqrec.com>2014-11-28 14:41:52 +0100
commit79ebdca9afa76692dbb44a54aff5374d54d35db1 (patch)
treee45ba37c60e6acc57f9248b144dcf7cae800cbf1 /bin/checkip
parent4041549aafb64057629e8f13d1876c44ae5fe9c8 (diff)
downloaddotfiles-79ebdca9afa76692dbb44a54aff5374d54d35db1.tar.gz
dotfiles-79ebdca9afa76692dbb44a54aff5374d54d35db1.tar.bz2
dotfiles-79ebdca9afa76692dbb44a54aff5374d54d35db1.tar.xz
dotfiles-79ebdca9afa76692dbb44a54aff5374d54d35db1.zip
checkip: Adding two more possible versions for checking global IP behind NAT. Version using dig now default.
Diffstat (limited to 'bin/checkip')
-rwxr-xr-xbin/checkip5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/checkip b/bin/checkip
index f7f2f4c..0e9d345 100755
--- a/bin/checkip
+++ b/bin/checkip
@@ -1,3 +1,4 @@
#!/bin/bash
-ip=`curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'`
-echo "$ip"
+#echo "$(curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g')
+#wget -qO- http://ipecho.net/plain ; echo
+dig +short myip.opendns.com @resolver1.opendns.com