Created
May 10, 2016 08:11
-
-
Save nbigot/af2461f1f799f56591b912c8da0d65d1 to your computer and use it in GitHub Desktop.
install & use geoip on linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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