Wednesday, 12 August 2015

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

:-) !

No comments:

Post a Comment