dotfiles/bin/myip
Fernando Schauenburg a6f51c9be3 bin: remove comma from my scripts
The leading comma seemed like a good idea to namespace my commands but
in practice in turned out to just be annoying and not provide any real
benefits. So down with the comma...
2021-08-08 23:56:17 +02:00

9 lines
399 B
Bash
Executable file

#!/bin/sh
# A few options to get public IP address on command line. The dig solution
# below using the OpenDNS resolver doesn't work when connected to
# ExpressVPN because all DNS requests are handled by the ExpressVPN DNS
# servers and the OpenDNS DNS resolver is blocked.
exec curl -s https://ifconfig.co
#exec curl -s https://ifconfig.me
#exec dig +short myip.opendns.com @resolver1.opendns.com