Find My Public IP: Difference between revisions
Jump to navigation
Jump to search
(Created page with " Three CLI commands to find your public IP address. <pre> > echo $(curl -s https://api.ipify.org) 11.22.33.44 # echo is just to add \n to the end > dig +short myip.opendns.c...") |
No edit summary |
||
Line 12: | Line 12: | ||
> dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | > dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | ||
"11.22.33.44" | "11.22.33.44" | ||
# same as above, but nslookup for Windoze | |||
> nslookup myip.opendns.com resolver1.opendns.com | |||
Server: resolver1.opendns.com | |||
Address: 208.67.222.222 | |||
Non-authoritative answer: | |||
Name: myip.opendns.com | |||
Address: 11.22.33.44 | |||
</pre> | </pre> |
Revision as of 17:30, 5 October 2020
Three CLI commands to find your public IP address.
> echo $(curl -s https://api.ipify.org) 11.22.33.44 # echo is just to add \n to the end > dig +short myip.opendns.com @resolver1.opendns.com 11.22.33.44 > dig TXT +short o-o.myaddr.l.google.com @ns1.google.com "11.22.33.44" # same as above, but nslookup for Windoze > nslookup myip.opendns.com resolver1.opendns.com Server: resolver1.opendns.com Address: 208.67.222.222 Non-authoritative answer: Name: myip.opendns.com Address: 11.22.33.44