rpm -Uvh

rpm -Uvh

Install EPEL repo first.

yum install geoip

Install geoip and try geoiplookup

wget wget wget gunzip GeoIP.dat.gz gunzip GeoIPASNum.dat.gz gunzip GeoLiteCity.dat.gz sudo cp GeoIP.dat GeoIPASNum.dat GeoLiteCity.dat /usr/share/GeoIP/

Install geoip databases from Maxmind website

geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat

Try again to locate city name from database file "GeoLiteCity.dat"

P.S. It is another online method to check : curl

cat /tmp/ip.txt | awk '{ system("echo `geoiplookup "$1" |grep Country |cut -d ':' -f2` `geoiplookup "$1" |grep City |cut -d ',' -f4,5` "); print }' eg result : US, United States US, United States MD, Moldova, Republic of

Use awk in file to find geoip and locate the city and country name

Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.