X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/5523afa0e5f07667086270ac2e94d825582d1a7d..refs/heads/uh-backup:/bin/whatsmyip 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