Show Public IP

Public IP Address using dig can be obtained using command:

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

Alternate using curl:

$ curl ifconfig.me

Last updated