Skip to content

Instantly share code, notes, and snippets.

@cblecker
Created August 28, 2022 15:03
Show Gist options
  • Save cblecker/7aafa66d76d7f47fe7b8d35bcc459693 to your computer and use it in GitHub Desktop.
Save cblecker/7aafa66d76d7f47fe7b8d35bcc459693 to your computer and use it in GitHub Desktop.
small script to check your external IP
#!/usr/bin/env bash
echo -n "OpenDNS: "
dig +short +time=3 +tries=1 myip.opendns.com @208.67.222.222
echo -n "Amazon: "
curl -s -m3 checkip.amazonaws.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment