-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
README.DBIP2
41 lines (29 loc) · 1.3 KB
/
README.DBIP2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
GENERAL
-------
db-ip.com distributes since some time also binary loation file in MaxMindDB format
see also README.MaxMindDB
ENABLING SUPPORT
----------------
Install following RPMs (usually supported by distribution)
maxminddb maxminddb-devel
If you want to use the db-ip.com databases with ipv6calc, you will
have only to enable the support using configure:
--enable-maxminddb
In case, dynamic load of library should be enabled (conditional MaxMindDB support), add
--with-maxmindd-dynamic
In case db-ip.com MaxMindDB support should be explicitly *disabled*, use
--disable-dbip2
DATA UPDATE
-----------
For regular (monthls) updates of the free available databases a download tool is also provided:
DBIP-update.sh
Commercial databases need a subscription and must be downloaded, decompressed and softlinked
$ cd /var/local/share/DBIP
$ wget http://download.db-ip.com/key/<key>.mmdb -O dbip-location-isp-$(date +'%Y-%m').mmdb.gz
$ gunzip dbip-location-isp-$(date +'%Y-%m').mmdb.gz
$ ln -sf dbip-location-isp-$(date +'%Y-%m').mmdb.gz dbip-location-isp.mmdb
the tool can help you here:
$ DBIP-update.sh -U https://download.db-ip.com/key/<key>.mmdb
example (<key> is NOT working):
$ DBIP-update.sh -U https://download.db-ip.com/key/0123456789abcdef0123456789abcdef01234567.mmdb
$Id$