X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/0c5b2d86ffacb5ca9a2b30798bb6d2393cba2c44..927332fef31e74d7c85b8904543e5ee618050392:/bin/whatsmyip diff --git a/bin/whatsmyip b/bin/whatsmyip index 288e3b3..c72ed04 100755 --- a/bin/whatsmyip +++ b/bin/whatsmyip @@ -1,9 +1,3 @@ #!/bin/bash -if hash drill 2>/dev/null; then - drill myip.opendns.com @resolver1.opendns.com | grep "^myip." | cut -f5 -elif hash dig 2>/dev/null; then - dig +short myip.opendns.com @resolver1.opendns.com -elif hash curl 2>/dev/null; then - curl -s ifconfig.me/ip -fi +curl -s ip.rmz.io