[ipv6calc] GeoIP support added

Peter Bieringer pb at bieringer.de
Sun Aug 6 17:10:27 CEST 2006


Hi,

I've added now support of GeoIP from MaxMind into ipv6calc (showinfo)
and ipv6calcweb.cgi.

So now IP2Location and GeoIP are supported, e.g.

./ipv6calc/ipv6calc -m -i 20.30.40.50 -g /path/to/GeoLiteCity.dat -p
/path/to/IP-COUNTRY-SAMPLE.BIN

IPV4=20.30.40.50
IPV4_REGISTRY=ARIN
IP2LOCATION_DATABASE_INFO=url=http://www.ip2location.com date=2005-07-17
entries=20470
IP2LOCATION_COUNTRY_SHORT=US
IP2LOCATION_COUNTRY_LONG=UNITED STATES
IP2LOCATION_REGION=This parameter is unavailable for selected data file.
Please upgrade the data file.
IP2LOCATION_CITY=This parameter is unavailable for selected data file.
Please upgrade the data file.
IP2LOCATION_ISP=This parameter is unavailable for selected data file.
Please upgrade the data file.
IP2LOCATION_LATITUDE=0.000000
IP2LOCATION_LONGITUDE=0.000000
IP2LOCATION_DOMAIN=This parameter is unavailable for selected data file.
Please upgrade the data file.
IP2LOCATION_ZIPCODE=This parameter is unavailable for selected data
file. Please upgrade the data file.
GEOIP_COUNTRY_SHORT=US
GEOIP_REGION=VA
GEOIP_CITY=Falls Church
GEOIP_LATITUDE=38.863998
GEOIP_LONGITUDE=-77.192200
GEOIP_DMACODE=511
GEOIP_AREACODE=703
GEOIP_DATABASE_INFO=GEO-533LITE 20060801 Build 1 Copyright (c) 2006
MaxMind LLC All Rights Reserved���
IPV6CALC_NAME=ipv6calc
IPV6CALC_VERSION=0.61.0cvs
IPV6CALC_COPYRIGHT="(P) & (C) 2001-2006 by Peter Bieringer <pb (at)
bieringer.de>"
IPV6CALC_OUTPUT_VERSION=3


Unfortunately GeoIP doesn't support IPv6 at the moment, IP2Location
does, but still the C-API is not IPv6-ready.

So this feature can be used for IPv4 only at the moment.


Would be great if one can test this new feature.

	Peter
-- 
Dr. Peter Bieringer                     http://www.bieringer.de/pb/
GPG/PGP Key 0x958F422D                       mailto:pb at bieringer.de
Deep Space 6 Co-Founder and Core Member  http://www.deepspace6.net/



More information about the ipv6calc mailing list