Skip to content

Instantly share code, notes, and snippets.

@nbigot
Created May 10, 2016 08:11
Show Gist options
  • Save nbigot/af2461f1f799f56591b912c8da0d65d1 to your computer and use it in GitHub Desktop.
Save nbigot/af2461f1f799f56591b912c8da0d65d1 to your computer and use it in GitHub Desktop.
install & use geoip on linux
$ sudo yum install GeoIP GeoIP-data
$ geoiplookup 8.8.4.4
GeoIP Country Edition: US, United States
GeoIP City Edition, Rev 1: US, N/A, N/A, N/A, N/A, 38.000000, -97.000000, 0, 0
GeoIP ASNum Edition: AS15169 Google Inc.
# add update in cron
$ /usr/bin/geoipupdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment