summaryrefslogtreecommitdiff
path: root/whatismyip
diff options
context:
space:
mode:
Diffstat (limited to 'whatismyip')
-rwxr-xr-xwhatismyip4
1 files changed, 4 insertions, 0 deletions
diff --git a/whatismyip b/whatismyip
new file mode 100755
index 0000000..c9ee00c
--- /dev/null
+++ b/whatismyip
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+set -eu
+dig +short myip.opendns.com @resolver1.opendns.com