diff --git a/README.md b/README.md index faacb0b..c0097b1 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ However the C version has too few functions, and the js version of Sukka is too - Chunzhen qqip database - ZX ipv6 database - Geoip2 city database +- IPIP free database - Pipeline support - Interactive query - Offline query @@ -232,7 +233,7 @@ $ nali update 2020/07/17 12:54:05 已将最新的纯真 IP 库保存到本地 /root/.nali/qqwry.dat ``` -### Use Geoip2 database +### Use other database Set environment variables `NALI_DB` @@ -240,19 +241,36 @@ supported database: - Geoip2 `['geoip', 'geoip2', 'geo']` - Chunzhen `['chunzhen', 'qqip', 'qqwry']` +- IPIP `['ipip', 'ipipfree', 'ipip.net']` #### Windows +##### Use geoip db + ``` set NALI_DB=geoip ``` +##### Use ipip db + +``` +set NALI_DB=ipip +``` + #### Linux +##### Use geoip db + ``` export NALI_DB=geoip ``` +##### Use ipip db + +``` +export NALI_DB=ipip +``` + ## Thanks - [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml) @@ -262,6 +280,8 @@ export NALI_DB=geoip - [Geoip2 city数据库](https://www.maxmind.com/en/geoip2-precision-city-service) - [geoip2-golang解析器](https://github.com/oschwald/geoip2-golang) - [CDN provider数据库](https://github.com/SukkaLab/cdn) +- [IPIP数据库](https://www.ipip.net/product/ip.html) +- [IPIP数据库解析](https://github.com/ipipdotnet/ipdb-go) - [Cobra CLI库](https://github.com/spf13/cobra) - [Nali-cli](https://github.com/SukkaW/nali-cli) diff --git a/README_zh-CN.md b/README_zh-CN.md index 34efa4b..a78f5c0 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -30,6 +30,7 @@ - 纯真 IPv4 离线数据库 - ZX IPv6 离线数据库 - Geoip2 城市数据库 (可选) +- IPIP 数据库 (可选) - CDN 服务提供商查询 - 支持管道处理 - 支持交互式查询 @@ -248,16 +249,32 @@ $ nali update #### Windows平台 +##### 使用geoip数据库 + ``` set NALI_DB=geoip ``` +##### 使用ipip数据库 + +``` +set NALI_DB=ipip +``` + #### Linux平台 +##### 使用geoip数据库 + ``` export NALI_DB=geoip ``` +##### 使用ipip数据库 + +``` +export NALI_DB=ipip +``` + ## 感谢列表 - [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml) @@ -267,6 +284,8 @@ export NALI_DB=geoip - [Geoip2 city数据库](https://www.maxmind.com/en/geoip2-precision-city-service) - [geoip2-golang解析器](https://github.com/oschwald/geoip2-golang) - [CDN provider数据库](https://github.com/SukkaLab/cdn) +- [IPIP数据库](https://www.ipip.net/product/ip.html) +- [IPIP数据库解析](https://github.com/ipipdotnet/ipdb-go) - [Cobra CLI库](https://github.com/spf13/cobra) - [Nali-cli](https://github.com/SukkaW/nali-cli)