de2be2d2c256

external-ip
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 02 Feb 2020 12:43:12 -0500
parents 417477f4186b
children a17191abd5e9
branches/tags (none)
files bin/external-ip

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/external-ip	Sun Feb 02 12:43:12 2020 -0500
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+dig @resolver1.opendns.com ANY myip.opendns.com +short
+