mmdb-dump-networks - print every network in an MMDB to STDOUT
mmdb-dump-networks is a quick-and-dirty command line tool to output the list
of networks stored in an MMDB.
$ ./mmdb-dump-networks -h
Usage: ./mmdb-dump-networks [-h] [filepath1] [filepath2] ... [filepathN]$ ./mmdb-dump-networks GeoIP2-Anonymous-IP-Test.mmdb GeoIP2-Enterprise-Test.mmdb
::27d:a0d8/125
::432b:9c00/120
::4ad1:1000/116
...Precompiled releases are currently available on our Releases page for the following platforms and architectures:
- Linux (i386 and x86_64)
- macOS (x86_64 and arm64)
- Windows (i386 and x86_64)
Look for a release that ends in .tar.gz or .zip. Download the release archive
for your platform and architecture. Uncompress the archive and you'll see an
eponymous folder. In that folder, you'll find the mmdb-dump-networks program.
Copy that program to wherever you want it to live, and start using it.
Prebuilt packages are currently available on our Releases page in the following formats:
- .deb (Ubuntu or Debian)
- .rpm (RedHat or CentOS)
On Ubuntu or Debian, use dpkg -i /path/to/the.deb as root. On RedHat or
CentOS, rpm -i /path/to/the.rpm as root. mmdb-dump-networks will be
installed in to /usr/bin/mmdb-dump-networks.
mmdb-dump-networks is written in Golang, so you'll need a reasonably recent
version of Go (1.16+). This project aims to maintain support for the two most
recent major versions of the Go compiler.
With this in place, simply run:
$ go install github.com/PatrickCronin/mmdb-dump-networks/cmd/mmdb-dump-networks@latestwhich will install mmdb-dump-networks into the directory named by the GOBIN
environment variable, which defaults to $GOPATH/bin or $HOME/go/bin if the
GOPATH environment variable is not set.
Bugs and other issues can be reported by filing an issue on our GitHub issue tracker.
This software is Copyright (c) 2021 by Patrick Cronin.
This is free software, licensed under the terms of the MIT License.