[blog.rayfoo] Infosec, DFIR, tech geekery, thoughts and whatnot

8Jul/100

Doing geolocation lookups in command line

Did you know that it's possible to do your own geoip lookups from the linux command line?

You need to install the geoip-bin package in Ubuntu/Debian's APT system:

sudo apt-get install geoip-bin

Then after which, lookups can be done as simply as:

$ geoiplookup 8.8.8.8
GeoIP Country Edition: US, United States

Note that the lookups are based on the GeoLite Country database.  For more detailed geoip lookups you will need to buy the better databases.

[Related Posts]

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

Anti-Spam Protection by WP-SpamFree

No trackbacks yet.