How To Find My Public IP Address From Command Line:

To Find My Public IP Address From Command Line:


# host myip.opendns.com resolver1.opendns.com | grep ^myip | awk '{print $4}'

(or)

# dig myip.opendns.com @resolver1.opendns.com +short

(or)

# dig TXT o-o.myaddr.l.google.com @ns1.google.com +short

:-) !

Comments

Popular posts from this blog

Resolved: DOCKER: Error response from daemon: Could not attach to network / rpc error: code = 7 desc = network not manually attachable.

yum failed 6 times. Cannot continue!

unexpectedly shrunk window (repaired) in dmesg log - TCP Peer