From 9af266f744f734701079737a880fcfd0ced5e930 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 31 Oct 2018 00:02:29 +0000 Subject: [PATCH] whatsmyip: use drill if available --- bin/whatsmyip | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/whatsmyip b/bin/whatsmyip index 2e6c6c3..5f0479f 100755 --- a/bin/whatsmyip +++ b/bin/whatsmyip @@ -1,5 +1,7 @@ #!/bin/bash +if hash drill 2>/dev/null; then + drill +short myip.opendns.com @resolver1.opendns.com if hash dig 2>/dev/null; then dig +short myip.opendns.com @resolver1.opendns.com elif hash curl 2>/dev/null; then -- 2.48.1