From: Samir Benmendil Date: Sat, 14 Jan 2023 02:13:59 +0000 (+0000) Subject: bin: use own server for getting external ip X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/927332fef31e74d7c85b8904543e5ee618050392 bin: use own server for getting external ip --- 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