@ip-location-db/asn-mmdb 2.3.2024082018 → 2.3.2024082118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -122
- package/asn-ipv4.mmdb +0 -0
- package/asn-ipv6.mmdb +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,82 +1,38 @@
|
|
|
1
|
-
# ip-location-db/asn-mmdb
|
|
1
|
+
# [ip-location-db](https://github.com/sapics/ip-location-db)/asn-mmdb
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
There are 3 types of IP database in this repository: `country`, `city` and `asn` files. All have their own standard format.
|
|
6
|
-
|
|
7
|
-
### Country
|
|
8
|
-
|
|
9
|
-
```CSV
|
|
10
|
-
ip_range_start, ip_range_end, country_code
|
|
11
|
-
```
|
|
3
|
+
## Download
|
|
12
4
|
|
|
13
5
|
| Database | Type | License | Updated | IPv4 | IPv6 | IPv4-num | IPv6-num |
|
|
14
6
|
|---|---|---|---|---|---|---|---|
|
|
15
|
-
| [ASN](https://github.com/sapics/ip-location-db/tree/main/asn
|
|
16
|
-
| [GeoFeed + ASN](https://github.com/sapics/ip-location-db/tree/main/geo-asn-country/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/geo-asn-country)<br>[](https://www.npmjs.com/package/@ip-location-db/geo-asn-country-mmdb) | Country | [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) | Daily | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country-mmdb/geo-asn-country-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country-mmdb/geo-asn-country-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-asn-country/geo-asn-country-ipv6-num.csv) |
|
|
17
|
-
| [GeoFeed + Whois + ASN](https://github.com/sapics/ip-location-db/tree/main/geo-whois-asn-country/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/geo-whois-asn-country)<br>[](https://www.npmjs.com/package/@ip-location-db/geo-whois-asn-country-mmdb) | Country | [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) | Daily | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country-mmdb/geo-whois-asn-country-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country-mmdb/geo-whois-asn-country-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country/geo-whois-asn-country-ipv6-num.csv) |
|
|
18
|
-
| [IPtoASN](https://github.com/sapics/ip-location-db/tree/main/iptoasn-country/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/iptoasn-country)<br>[](https://www.npmjs.com/package/@ip-location-db/iptoasn-country-mmdb) | Country | [PDDL](https://opendatacommons.org/licenses/pddl/1.0/) by [IPtoASN](https://iptoasn.com/) | Daily | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country-mmdb/iptoasn-country-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country-mmdb/iptoasn-country-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-country/iptoasn-country-ipv6-num.csv) |
|
|
19
|
-
| [DB-IP Lite](https://github.com/sapics/ip-location-db/tree/main/dbip-country/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/dbip-country)| Country | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) <br> by [DB-IP](https://db-ip.com/) | Monthly | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country-mmdb/dbip-country-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country-mmdb/dbip-country-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-country/dbip-country-ipv6-num.csv) |
|
|
20
|
-
| [GeoLite2](https://github.com/sapics/ip-location-db/tree/main/geolite2-country/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/geolite2-country)<br>[](https://www.npmjs.com/package/@ip-location-db/geolite2-country-mmdb) | Country | GeoLite2 License by [MaxMind](https://www.maxmind.com/) | Twice weekly | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country-mmdb/geolite2-country-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country-mmdb/geolite2-country-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-country/geolite2-country-ipv6-num.csv) |
|
|
21
|
-
|
|
22
|
-
### City
|
|
7
|
+
| [RouteViews + ASN + DB-IP](https://github.com/sapics/ip-location-db/tree/main/asn/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/asn)<br>[](https://www.npmjs.com/package/@ip-location-db/asn-mmdb) | ASN | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) by [RouteViews](https://www.routeviews.org/routeviews/) and [DB-IP](https://db-ip.com/) | Daily | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-mmdb/asn-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-mmdb/asn-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv6-num.csv) |
|
|
23
8
|
|
|
24
|
-
```CSV
|
|
25
|
-
ip_range_start, ip_range_end, country_code, city, state1, state2, latitude, longitude, postcode, timezone
|
|
26
|
-
```
|
|
27
9
|
|
|
28
|
-
|
|
29
|
-
|---|---|---|---|---|---|---|---|
|
|
30
|
-
| [DB-IP Lite](https://github.com/sapics/ip-location-db/tree/main/dbip-city/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/dbip-city)<br>[](https://www.npmjs.com/package/@ip-location-db/dbip-city-7z)<br>[](https://www.npmjs.com/package/@ip-location-db/dbip-city-mmdb) | City | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) <br> by [DB-IP](https://db-ip.com/) | Monthly | [CSV.gz](https://unpkg.com/@ip-location-db/dbip-city/dbip-city-ipv4.csv.gz)<br>[CSV.7z](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-city-7z/dbip-city-ipv4.csv.7z)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-city-mmdb/dbip-city-ipv4.mmdb) | [CSV.gz](https://unpkg.com/@ip-location-db/dbip-city/dbip-city-ipv6.csv.gz)<br>[CSV.7z](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-city-7z/dbip-city-ipv6.csv.7z)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-city-mmdb/dbip-city-ipv6.mmdb) | [CSV.gz](https://unpkg.com/@ip-location-db/dbip-city/dbip-city-ipv4-num.csv.gz)<br>[CSV.7z](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-city-7z/dbip-city-ipv4-num.csv.7z) | [CSV.gz](https://unpkg.com/@ip-location-db/dbip-city/dbip-city-ipv6-num.csv.gz)<br>[CSV.7z](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-city-7z/dbip-city-ipv6-num.csv.7z) |
|
|
31
|
-
| [GeoLite2](https://github.com/sapics/ip-location-db/tree/main/geolite2-city/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/geolite2-city)<br>[](https://www.npmjs.com/package/@ip-location-db/geolite2-city-7z)<br>[](https://www.npmjs.com/package/@ip-location-db/geolite2-city-mmdb) | City | GeoLite2 License by [MaxMind](https://www.maxmind.com/) | Twice weekly | [CSV.gz](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city/geolite2-city-ipv4.csv.gz)<br>[CSV.7z](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city-7z/geolite2-city-ipv4.csv.7z)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city-mmdb/geolite2-city-ipv4.mmdb) | [CSV.gz](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city/geolite2-city-ipv6.csv.gz)<br>[CSV.7z](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city-7z/geolite2-city-ipv6.csv.7z)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city-mmdb/geolite2-city-ipv6.mmdb) | [CSV.gz](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city/geolite2-city-ipv4-num.csv.gz)<br>[CSV.7z](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city-7z/geolite2-city-ipv4-num.csv.7z) | [CSV.gz](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city/geolite2-city-ipv6-num.csv.gz)<br>[CSV.7z](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-city-7z/geolite2-city-ipv6-num.csv.7z) |
|
|
10
|
+
## MMDB Format
|
|
32
11
|
|
|
12
|
+
```
|
|
13
|
+
autonomous_system_number, autonomous_system_organization
|
|
14
|
+
```
|
|
33
15
|
|
|
34
|
-
### ASN
|
|
35
16
|
|
|
36
|
-
|
|
37
|
-
ip_range_start, ip_range_end, autonomous_system_number, autonomous_system_organization
|
|
38
|
-
```
|
|
17
|
+
### autonomous_system_number
|
|
39
18
|
|
|
40
|
-
|
|
41
|
-
|---|---|---|---|---|---|---|---|
|
|
42
|
-
| [RouteViews + ASN + DB-IP](https://github.com/sapics/ip-location-db/tree/main/asn/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/asn)<br>[](https://www.npmjs.com/package/@ip-location-db/asn-mmdb) | ASN | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) by [RouteViews](https://www.routeviews.org/routeviews/) and [DB-IP](https://db-ip.com/) | Daily | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-mmdb/asn-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/asn-mmdb/asn-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/asn/asn-ipv6-num.csv) |
|
|
43
|
-
| [IPtoASN](https://github.com/sapics/ip-location-db/tree/main/iptoasn-asn/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/iptoasn-asn)<br>[](https://www.npmjs.com/package/@ip-location-db/iptoasn-asn-mmdb) | ASN | [PDDL](https://opendatacommons.org/licenses/pddl/1.0/) by [IPtoASN](https://iptoasn.com/) | Daily | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-asn/iptoasn-asn-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-asn-mmdb/iptoasn-asn-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-asn/iptoasn-asn-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-asn-mmdb/iptoasn-asn-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-asn/iptoasn-asn-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/iptoasn-asn/iptoasn-asn-ipv6-num.csv) |
|
|
44
|
-
| [DB-IP Lite](https://github.com/sapics/ip-location-db/tree/main/dbip-asn/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/dbip-asn)<br>[](https://www.npmjs.com/package/@ip-location-db/dbip-asn-mmdb) | ASN | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)<br> by [DB-IP](https://db-ip.com/) | Monthly | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-asn/dbip-asn-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-asn-mmdb/dbip-asn-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-asn/dbip-asn-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-asn-mmdb/dbip-asn-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-asn/dbip-asn-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/dbip-asn/dbip-asn-ipv6-num.csv) |
|
|
45
|
-
| [GeoLite2](https://github.com/sapics/ip-location-db/tree/main/geolite2-asn/)<br><br>[](https://www.npmjs.com/package/@ip-location-db/geolite2-asn)<br>[](https://www.npmjs.com/package/@ip-location-db/geolite2-asn-mmdb) | ASN | GeoLite2 License by [MaxMind](https://www.maxmind.com/) | Twice weekly | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-asn/geolite2-asn-ipv4.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-asn-mmdb/geolite2-asn-ipv4.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-asn/geolite2-asn-ipv6.csv)<br>[MMDB](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-asn-mmdb/geolite2-asn-ipv6.mmdb) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-asn/geolite2-asn-ipv4-num.csv) | [CSV](https://cdn.jsdelivr.net/npm/@ip-location-db/geolite2-asn/geolite2-asn-ipv6-num.csv) |
|
|
19
|
+
`autonomous_system_number` is a unique number assigned to an Autonomous System (AS) by the [IANA](https://www.iana.org/). [wiki](https://wikipedia.org/wiki/Autonomous_system_(Internet)).
|
|
46
20
|
|
|
47
21
|
|
|
48
|
-
##
|
|
22
|
+
## Referenced Database and License
|
|
49
23
|
|
|
50
|
-
An explanation of each file format is provided in its own directory.
|
|
51
24
|
|
|
52
|
-
|
|
25
|
+
### [RouteViews](https://www.routeviews.org/routeviews/) database [Update: every 2 hours]
|
|
53
26
|
|
|
27
|
+
We are using this database to get AS number from ipv4 address for [asn](https://www.npmjs.com/package/@ip-location-db/asn).
|
|
28
|
+
This is licensed under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), so, **you must create attribution to [RouteViews](https://www.routeviews.org/routeviews/) for using asn database**.
|
|
54
29
|
|
|
55
|
-
## Databases referenced in this project
|
|
56
30
|
|
|
57
31
|
### ASN database [Update: Daily]
|
|
58
32
|
|
|
59
33
|
Created by merging 5 RIP ([afrinic](https://afrinic.net), [apnic](https://www.apnic.net), [arin](https://www.arin.net), [lacnic](https://www.lacnic.net), [ripe ncc](https://www.ripe.net)) IP-ASN-Country database.
|
|
60
34
|
[ASN (Autonomous System Number)](https://wikipedia.org/wiki/Autonomous_system_(Internet)) is a unique number assigned to an Autonomous System (AS) by the [IANA](https://www.iana.org/).
|
|
61
35
|
|
|
62
|
-
### Whois dastabase [Update: Daily]
|
|
63
|
-
|
|
64
|
-
Created by merging 5 RIP ([afrinic](https://afrinic.net), [apnic](https://www.apnic.net), [arin](https://www.arin.net), [lacnic](https://www.lacnic.net), [ripe ncc](https://www.ripe.net)) provided [WHOIS](https://en.wikipedia.org/wiki/WHOIS) database.
|
|
65
|
-
|
|
66
|
-
### GeoFeed database [Update: Daily]
|
|
67
|
-
|
|
68
|
-
Created by merging GeoFeed database from [OpenGeoFeed](https://opengeofeed.org/).
|
|
69
|
-
|
|
70
|
-
### [RouteViews](https://www.routeviews.org/routeviews/) database [Update: every 2 hours]
|
|
71
|
-
|
|
72
|
-
We are using this database to get AS number from ipv4 address for [asn](https://www.npmjs.com/package/@ip-location-db/asn).
|
|
73
|
-
This is licensed under a [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), so, **you must create attribution to [RouteViews](https://www.routeviews.org/routeviews/) for using asn database**.
|
|
74
|
-
|
|
75
|
-
### [IPtoASN](https://iptoasn.com/) database [Update: Hourly]
|
|
76
|
-
|
|
77
|
-
You can download hourly updated database in tsv format from [original site](https://iptoasn.com/).
|
|
78
|
-
This is licensed under a [Public Domain Dedication and License v1.0](https://opendatacommons.org/licenses/pddl/1.0/).
|
|
79
|
-
There are some differences from above `ASN` database.
|
|
80
36
|
|
|
81
37
|
### [DB-IP](https://db-ip.com/) database [Update: Monthly]
|
|
82
38
|
|
|
@@ -88,69 +44,23 @@ These database are licensed under a [CC BY 4.0](https://creativecommons.org/lice
|
|
|
88
44
|
In the case of a web application, you must include a link back to DB-IP.com on pages that display or use results from the database. You may do it by pasting the HTML code snippet into your code: `<a href='https://db-ip.com/'>IP Geolocation by DB-IP</a>`.<br>
|
|
89
45
|
If you need better accuracy or no attribution or daily updates, please use the [Commercial Version of db-ip](https://db-ip.com/db/ip-to-country).
|
|
90
46
|
|
|
91
|
-
|
|
47
|
+
## Merge rule for multiple database
|
|
92
48
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
- If you need postcodes or timezones: `geolite2-city`
|
|
112
|
-
- If you need city data with a CC-BY Licence: `dbip-city`
|
|
113
|
-
- If you need a country database with a Public Domain Licence: `geo-whois-asn-country`
|
|
114
|
-
- If you need an ASN database: `asn`
|
|
115
|
-
|
|
116
|
-
## MMDB Libraries
|
|
117
|
-
|
|
118
|
-
If you would like to integrate MMDB files into an existing project there are several libraries that can help.
|
|
119
|
-
|
|
120
|
-
### Read MMDB files
|
|
121
|
-
|
|
122
|
-
Libraries exist in many languages when using the MMDB files. There are official, [Maxmind developed libraries](https://github.com/maxmind) for many popular languages: [.NET](https://github.com/maxmind/MaxMind-DB-Reader-dotnet), [C](https://github.com/maxmind/libmaxminddb), [Java](https://github.com/maxmind/GeoIP2-java), [Node.js](https://github.com/maxmind/GeoIP2-node), [Perl](https://github.com/maxmind/MaxMind-DB-Reader-perl), [PHP](https://github.com/maxmind/MaxMind-DB-Reader-php), [Python](https://github.com/maxmind/MaxMind-DB-Reader-python) and [Ruby](https://github.com/maxmind/MaxMind-DB-Reader-ruby), and third-party readers for others: [Erlang](https://github.com/g-andrade/locus), [Go](https://github.com/oschwald/maxminddb-golang), [Rust](https://github.com/oschwald/maxminddb-rust).
|
|
123
|
-
|
|
124
|
-
### Write MMDB files
|
|
125
|
-
|
|
126
|
-
If you wish to create your own MMDB files from the CSV files *(to customise their format)* there are a couple of official libraries: [Go](https://github.com/maxmind/mmdbwriter) and [Perl](https://github.com/maxmind/MaxMind-DB-Writer-perl) *(now archived)*. There are also some third-party options: [Python](https://github.com/VimT/MaxMind-DB-Writer-python) and [Rust](https://github.com/pierd/maxminddb-writer).
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
## Useful applications
|
|
130
|
-
|
|
131
|
-
| Application | Language | Description | Types | IPv4 | IPv6 | Auto<br>Updates |
|
|
132
|
-
|---|---|---|---|---|---|---|
|
|
133
|
-
|[`ip_location_server`](https://github.com/EP-u-NW/ip_location_server) | Java | An in-memory GRPC and HTTP server mapping IP addresses to locations *(requires at least 1.5GB RAM)* | `country`<br>`asn`<br>`city` | ✓ | ✓ | ✓ |
|
|
134
|
-
|[`ip-location-api`](https://github.com/paul-norman/ip-location-api) | Go | API server creating / supporting MMDB, PostgreSQL, MySQL / MariaDB and SQLite | `country`<br>`asn`<br>`city` | ✓ | ✓ | ✓ |
|
|
135
|
-
|[`Ip-geo-API`](https://github.com/realchandan/Ip-geo-API) | Go | In-memory API server | `country` | ✓ | ✓ | ✘ |
|
|
136
|
-
|[`IPInfoOffline`](https://www.nirsoft.net/utils/ip_country_info_offline.html) | Windows | Desktop tool showing information about IP addresses *(local data)* | `country`<br>`asn`<br>`city` | ✓ | ✓ | ✘ |
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
## Useful tools
|
|
140
|
-
|
|
141
|
-
| Tool | Description |
|
|
142
|
-
|---|---|
|
|
143
|
-
|[`ip-location-to-mmdb`](https://github.com/paul-norman/ip-location-to-mmdb) | Basic conversion from CSV files from this database into MMDB files |
|
|
144
|
-
|[`mmdbmeld`](https://github.com/safing/mmdbmeld) | Create and customise MMDB files from CSV files in this database |
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
## Licences
|
|
148
|
-
|
|
149
|
-
The required licence depends upon the database which you use. **Please carefully read each database licence before use.**
|
|
150
|
-
|
|
151
|
-
You can use [PDDL](https://opendatacommons.org/licenses/pddl/1.0/) (ODC Public Domain Dedication and Licence) or [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed) (Creative Commons Zero) licensed databases without attribution for any purpose.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
## Support
|
|
155
|
-
|
|
156
|
-
We'd be grateful if you could link back to [sapics/ip-location-db](https://github.com/sapics/ip-location-db), and star this project to help others find it.
|
|
49
|
+
When merging multiple database, set the front database above back one.
|
|
50
|
+
For example, geo-whois-asn-country is created by merging 3 database with GeoFeed > Whois > ASN.
|
|
51
|
+
In more detail, the geo-whois-asn database matches the GeoFeed results, for ip ranges not covered by GeoFeed it matches the Whois results, and for ip ranges not covered by either it matches the ASN results.
|
|
52
|
+
```
|
|
53
|
+
GeoFeed: 1.0.0.0, 2.0.0.0, AU
|
|
54
|
+
3.0.0.1, 4.0.0.0, US
|
|
55
|
+
Whois: 1.0.0.0, 2.2.0.0, FR
|
|
56
|
+
2.5.0.1, 4.0.0.0, IN
|
|
57
|
+
ASN: 1.0.0.0, 4.0.0.0, JP
|
|
58
|
+
```
|
|
59
|
+
is converted to
|
|
60
|
+
```
|
|
61
|
+
GeoFeed-Whois-ASN: 1.0.0.0, 2.0.0.0, AU
|
|
62
|
+
2.0.0.1, 2.2.0.0, FR
|
|
63
|
+
2.2.0.1, 2.5.0.0, JP
|
|
64
|
+
2.5.0.1, 3.0.0.0, IN
|
|
65
|
+
3.0.0.1, 4.0.0.0, US
|
|
66
|
+
```
|
package/asn-ipv4.mmdb
CHANGED
|
Binary file
|
package/asn-ipv6.mmdb
CHANGED
|
Binary file
|