Skip to content

Instantly share code, notes, and snippets.

@mskf3000
Forked from m1el/how-to-get-external-ip.txt
Created October 8, 2020 20:09
Show Gist options
  • Select an option

  • Save mskf3000/f4e8a3e6f69224280ba9f0da8d012028 to your computer and use it in GitHub Desktop.

Select an option

Save mskf3000/f4e8a3e6f69224280ba9f0da8d012028 to your computer and use it in GitHub Desktop.
nslookup -q=TXT o-o.myaddr.l.google.com. ns1.google.com.
dig -4 TXT +short o-o.myaddr.l.google.com. @ns1.google.com.
nslookup myip.opendns.com. resolver1.opendns.com.
dig -4 A +short myip.opendns.com. @resolver1.opendns.com.
nslookup whoami.akamai.net. ns1-1.akamaitech.net.
dig -4 A +short whoami.akamai.net. @ns1-1.akamaitech.net.
curl -s https://api.ipify.org
curl -s https://ifconfig.me/ip
curl -s https://icanhazip.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment