Welcome, guest | Sign In | My Account | Store | Cart
alias geoloc='geoiplookup $(dig +short myip.opendns.com @resolver1.opendns.com)'

Diff to Previous Revision

--- revision 1 2014-11-30 00:37:30
+++ revision 2 2014-11-30 00:46:28
@@ -1,13 +1,1 @@
-dig is cool to obtain my external IP :
-
-    $ dig +short myip.opendns.com @resolver1.opendns.com
-    108.62.194.76
-
-and I use geoiplookup to convert IP to location :
-
-    $ geoiplookup 108.62.194.76
-    GeoIP City Edition, Rev 1: US, WA, Washington, Anacortes, 98221, 48.464802, -122.609200, 819, 360
-
-So now we can set a nice alias :
-
-    alias geoloc='geoiplookup $(dig +short myip.opendns.com @resolver1.opendns.com)'
+alias geoloc='geoiplookup $(dig +short myip.opendns.com @resolver1.opendns.com)'

History