Note: If you are filtering DNS for Proxy & Filter Avoidance or have configured you network to only allow connection to trusted DNS Servers the first two will fail so use the Web Request options
linux / wsl DNS Query
1 | dig +short myip.opendns.com @resolver1.opendns.com |
Windows DNS QUery
1 | nslookup myip.opendns.com resolver1.opendns.com |
Linux using Web Request
1 2 3 | echo $(curl -s ifconfig .me) # or curl -s https: //ifconfig .me; echo |
Powershell WEB rEQUEST
1 | ( Invoke-WebRequest ifconfig.me/ip).Content |
0 Comments