Introduction
MaxMind DB is a read-only binary database that maps IPv4 and IPv6 address ranges to
data records. MaxMind offers its GeoLite
geolocation databases as .mmdb files, and the format specification is
published with readers in several languages.
Structure
1Search tree a binary tree walked one address bit at a timevariable2Separator zero bytes16 bytes3Data section the typed values the tree points tovariable4Metadata after the markerAB CD EFfollowed byMaxMind.comup to 128 KiB
Not described
This page is a first outline. The details of the layout are not yet described here.
Known, not yet covered
- Reference: the node record sizes, data types and metadata keys, which the MaxMind DB specification gives.
- Viewer: the site has no viewer for this format.
Links
Reference
- MaxMind DB File Format Specification – includes the list of reader libraries
- GeoLite databases – MaxMind’s developer documentation