Skip to content

iglov/mmdb-editor

Repository files navigation

Latest Release GitHub license Go Report Card GitHub go.mod Go version Build Status codecov

mmdb-editor

Make your own GeoIP database! The simple utility for editing MMDB databases.

How to start

  1. Download lastest mmdb-editor release
  2. Download GeoLite2-City.mmdb
  3. Create your dataset with networks you need to add/change (See example)

How to use

Usage of ./bin/mmdb-editor-linux-amd64:
  -d string
        Dataset file path. (default "./dataset.json")
  -i string
        Input GeoLite2-City.mmdb file path. (default "./GeoLite2-City.mmdb")
  -m string
        Merge strategy. It may be: toplevel, recurse or replace. (default "replace")
  -o string
        Output modified mmdb file path. (default "./GeoLite2-City-mod.mmdb")
  -v    Print current version and exit.

How to develop

  1. git clone https://github.com/iglov/mmdb-editor
  2. Change something you want and commit changes
  3. Build with make all