Offline command line utility for IP address look-up through CSV databases from ip-location-db project.
This is my personal text file parsing optimization sandbox, don't use for critical things.
Only -num files are supported.
ip_range_start,ip_range_end,(VALUE)
Usage: ip-location-db-lookup [-w <workers>] [DATABASE] [IPv4]
Offline IP address lookup tool.
Options:
-w, --workers amount of workers (default: 1)
--help display usage informationalias country="ip-location-db-lookup ${HOME}/databases/dbip-country-ipv4-num.csv ${1}"
alias city="ip-location-db-lookup ${HOME}/databases/dbip-city-ipv4-num.csv ${1}"To build this little thing, you'll need some Rust.
git clone --depth 1 https://github.com/Elvyria/ip-location-db-lookup
cd ip-location-db-lookup
cargo build --locked --releaseor
RUSTFLAGS="-C target-cpu=native" cargo build --locked --release
or
make