Skip to content

Offline utility for looking up IP address location info with the help of ip-location-db.

License

Notifications You must be signed in to change notification settings

Elvyria/ip-location-db-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip-location-db-lookup

Toolchain: Stable License: MIT

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.

File Format

Only -num files are supported.

ip_range_start,ip_range_end,(VALUE)

Usage

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 information

Building

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 --release

or

RUSTFLAGS="-C target-cpu=native" cargo build --locked --release

Tested with:

About

Offline utility for looking up IP address location info with the help of ip-location-db.

Topics

Resources

License

Stars

Watchers

Forks

Languages