[ipv6calc] sneak preview - support for db-ip.com datafiles added
Peter Bieringer
pb at bieringer.de
Sun Aug 31 18:43:09 CEST 2014
Hi,
today I finished implementation of support of db-ip.com datafiles.
Now 3 location data providers are supported:
- IP2Location
- GeoIP
- db-ip.com
While first 2 supplies an API (library) and related datafiles, db-ip.com
only provide CSV files
ipv6calc contains a tool to generate local Berkeley DB files from that data.
check:
- README.BUILDING-DBIP
- tools/DBIP-update.sh
- tools/DBIP-generate-db.pl
if everything is working well, following should show up on capability
check (aka -vv)
$ ipv6calc -vv
ipv6calc: version 0.98.0alpha2 GeoIP GeoIPv6 IP2Location IP2Location6
DBIPv4 DBIPv6 DB_AS_REG DB_IPV4_REG DB_IPV6_REG DB_IPV4_AS DB_IPV6_AS
DB_IPV4_CC DB_IPV6_CC DB_CC_REG DB_IEEE ANON_ZEROISE ANON_ANONYMIZE
ANON_KEEP-TYPE-ASN-CC
Capabilities: IP2Location(dyn-load) GeoIP(dyn-load) DBIP
DB_AS_REG(BuiltIn) DB_CC_REG(BuiltIn) DB_IPV4_REG(BuiltIn)
DB_IPV6_REG(BuiltIn) DB_IEEE(BuiltIn)
...
DBIP: features: 0x03000f00
DBIP: info of available databases in directory: /usr/share/DBIP
DBIP: IPv4 Country :
/usr/share/DBIP/ipv6calc-dbip-country-ipv4.db (DBIP-Country 20140801
Copyright (c) 2014 db-ip.com All Rights Reserved)
DBIP: IPv6 Country :
/usr/share/DBIP/ipv6calc-dbip-country-ipv6.db (DBIP-Country 20140801
Copyright (c) 2014 db-ip.com All Rights Reserved)
DBIP: IPv4 City :
/usr/share/DBIP/ipv6calc-dbip-city-ipv4.db (DBIP-City 20140801 Copyright
(c) 2014 db-ip.com All Rights Reserved)
DBIP: IPv6 City :
/usr/share/DBIP/ipv6calc-dbip-city-ipv6.db (DBIP-City 20140801 Copyright
(c) 2014 db-ip.com All Rights Reserved)
...
Example: http://ip.bieringer.de/
BTW: this support introduced now a generic Berkeley DB support, so next
implementation task is the capability to optional replace BuiltIn
database contents with newer data from external file and related
download and generation tools.
Hope this helps,
Peter
More information about the ipv6calc
mailing list