IPNetDB

The downloadable, embeddable internet network information database

IPNetDB is a downloadable database containing information on IP addresses and the internet in the mmdb format. The database is split into two files, one database of prefix information that can be queried by IP address and the other to look up networks by autonomous systems number.
IPNetDB databases are small enough to be deployed inside applications to provide advanced routing information to applications, such as identifying traffic from a particular network and providing additional information on client IP addresses.
The databases are updated daily and were last generated on the 3rd of June 2025.
By downloading or using IPNetDB databases you agree to our licence. You can automate deployments by downloading the databases every Monday using the JSON-encoded latest file list. The data contained in IPNetDB databases is as correct as we can make it but some information may not be perfectly accurate. Use in your application is at your own risk.

What's in the database?

The IPNetDB prefix database contains the following information. The database is queried by IP address.
Field Example Description
allocation 8.0.0.0/9 CIDR allocated by the registry that contains the IP address
allocation_cc US Two letter country code recorded at the registry for the allocation
allocation_registry arin Registry that has allocated the allocation
allocation_status allocated Allocation status at the registry
as 15169 ASN of the IP address, if multiple origins one is selected
as_cc US Two letter country code recorded at the registry for the ASN
as_entity Google LLC Name of the entity recorded as owning the ASN at the registry
as_name GOOGLE ASN name recorded at the registry
as_private False True if the ASN is not in a registry allocation and is a private ASN
as_registry arin Registry that has allocated the ASN
prefix 8.8.8.0/24 CIDR advertised the public routing table that contains the IP address
prefix_asset [] An array or list of ASNs if the prefix is advertised in an AS set
prefix_assignment allocation Prefix assignment status at the registry
prefix_bogon False True if the prefix is not in a registry allocation and is a bogon
prefix_cc NL Two letter country code recorded at the registry for the prefix
prefix_entity Google LLC Name of the entity recorded as owning the prefix at the registry
prefix_name LVLT-GOGL-8-8-8 Prefix name recorded at the registry
prefix_origins [15169] An array or list of all ASNs that have advertised the prefix
prefix_registry arin Registry that has allocated the prefix
rpki_status valid RPKI status of the advertisment, one of "unsigned", "valid" or "invalid"
ix {'organisation': 'Equinix, Inc.', 'exchange': 'Equinix Bogota', 'name': 'Amazon IVS / Twitch', 'speed': 10000} Internet exchange information known for this IP, including the exchange, peering name and port speed
The IPNetDB ASN database contains the following information. The database is queried by autonomous systems number.
Field Example Description
as 58682 AS number
cc BD Two letter country code recorded at the registry for the ASN
entity Level3 Carrier Ltd. Name of the entity recorded as owning the ASN at the registry
in_use True True if the ASN advertises routes or has peers
ipv4_prefixes ['103.15.40.0/24', '103.15.41.0/24'] Array or list of IPv4 prefixes the ASN advertises
ipv6_prefixes ['2404:c900:4::/48', '2404:c900:5::/48'] Array or list of IPv6 prefixes the ASN advertises
name LEVEL3-BD ASN name recorded at the registry
peers [6939, 137409, 2914] Array or list of ASNs this ASN has peering with
private False True if the ASN is not in a registry allocation and is a private ASN
registry arin Registry that has allocated the ASN
status allocated Allocation status at the registry
ix [{'exchange': 'Equinix London','ipv4': '103.15.40.2', 'ipv6': '', 'name': 'LEVEL3', 'speed': 10000},] Internet exchange locations known for this ASN including IPs and port speed in megabits

Usage

The mmdb file format, short for MaxMind Data Base, used by IPNetDB is compatible with all existing libraries that can read mmdb files. Any language or server that is uses libmaxminddb can read IPNetDB databases. Usage examples:

Python IP lookup for 208.115.128.62

$ pip install maxminddb
$ python
Python 3.9.5
Type "help", "copyright", "credits" or "license" for more information.
>>> import maxminddb, pprint
>>> reader = maxminddb.open_database('ipnetdb_prefix_latest.mmdb')
>>> data = reader.get('208.115.128.62')
>>> pprint.pprint(data)
{'allocation': '208.115.128.0/20',
'allocation_cc': 'US',
'allocation_registry': 'arin',
'allocation_status': 'allocated',
'as': 264668,
'as_cc': 'EC',
'as_entity': 'NEGOCIOS Y TELEFONIA NEDETEL S.A.',
'as_name': '',
'as_private': False,
'as_registry': 'arin',
'ix': {'exchange': 'Equinix Bogota',
       'organisation': 'Equinix, Inc.',
       'name': 'Amazon IVS / Twitch',
       'speed': 10000},
'prefix': '208.115.128.0/24',
'prefix_asset': [],
'prefix_assignment': 'assignment',
'prefix_bogon': False,
'prefix_cc': 'EC',
'prefix_entity': 'NSI Hosting',
'prefix_name': 'EQUINIX-IX-BG',
'prefix_origins': [264668],
'prefix_registry': 'arin',
'rpki_status': 'unsigned'}

Python ASN lookup for AS58682

Some maxxminddb libraries, like the Python bindings, require the query to be in the format of an IP address. You can convert your ASN from a 32bit integer into a dotted quad format first if this is required as in the example below.

$ pip install maxminddb
$ python
Python 3.9.5
Type "help", "copyright", "credits" or "license" for more information.
>>> import maxminddb, pprint, ipaddress
>>> reader = maxminddb.open_database('ipnetdb_asn_latest.mmdb')
>>> asn_in_ip_format = ipaddress.ip_address(58682)
>>> data = reader.get(asn_in_ip_format)
>>> pprint.pprint(data)
{'as': 58682,
'cc': 'BD',
'entity': 'Level3 Carrier Ltd.',
'in_use': True,
'ipv4_prefixes': ['103.15.40.0/24',
                  '103.15.41.0/24',
                  '103.15.42.0/24',
                  '103.15.43.0/24',
                  '103.124.226.0/24',
                  '103.124.225.0/24',
                  '103.124.227.0/24',
                  '43.228.208.0/24',
                  '43.228.209.0/24'],
'ipv6_prefixes': ['2404:c900:4::/48',
                  '2404:c900:5::/48',
                  '2404:c900:a::/48',
                  '2404:c900:1::/48',
                  '2404:c900:3::/48',
                  '2404:c900:6::/48',
                  '2404:c900:8::/48',
                  '2404:c900:9::/48',
                  '2404:c900:b::/48'],
'name': 'LEVEL3-BD',
'peers': [6939,
          137409,
          2914,
          1828,
          199524,
          58952,
          9498,
          58682,
          174,
          6453,
          18106,
          133210,
          14907],
'private': False,
'registry': 'apnic',
'status': 'allocated',
'ix': [{'exchange': 'Equinix Singapore',
        'ipv4': '27.111.228.13',
        'ipv6': '2001:de8:4::5:8682:1',
        'organisation': 'Eqinix Inc',
        'speed': 100000},
       {'exchange': 'SGIX',
        'ipv4': '103.16.102.228',
        'ipv6': '2001:de8:12:100::228',
        'organisation': 'Singapore Internet Exchange Limited',
        'speed': 100000},
       {'exchange': 'DE-CIX Mumbai',
        'ipv4': '103.27.171.184',
        'ipv6': '2401:7500:fff6::12d',
        'organisation': 'DE-CIX Interwire Internet Services Pvt Ltd',
        'speed': 100000}]
Note that IPNetDB is not a IP to geolocation tool. The country codes returned are from the IANA allocation information and are not accurate for use in geolocation. Country codes are accurate to determine the country that an IP address or ASN was originally allocated to, but not a specific location.
The format stored in IPNetDB databases is different to that stored by other mmdb databases so remember you will need to use the libmaxminddb based libraries directly and not any GeoIP libraries.
Language Package
Python maxminddb
PHP maxmind-db/reader
Ruby maxmind-db
Java com.maxmind.db:maxmind-db
Node maxmind
The above table is not exhaustive, native libmaxminddb implementations exist for many additional languages. The mmdb format as well as all of the maxmind libraries are developed by MaxMind. MaxMind and GeoIP are registered trademarks of MaxMind, Inc. IPNetDB does not use any existing MaxMind data and the databases are generated using the open source MaxMind database creation libraries.

Licencing

Free non-commercial use with attribution

You are free to use IPNetDB databases in your non-commercial applications providing you include attribution under the Creative Commons BY-NC-ND 4.0 licence.
  • Any method, view, page, results or similar output of displaying IPNetDB data must include the following HTML attribution where HTML is used:
    <a href="https://ipnetdb.com">Internet information provided by IPNetDB</a>
  • Or the following text attribution if HTML is unavailable:
    Internet information provided by IPNetDB.com
For all commercial applications a commercial licence for IPNetDB is required.

Paid for commercial use

You must pay for IPNetDB databases in:
  • Commercial applications
  • Internal applications for commercial entities
  • applications where IPNetDB increases the monetary value of the project

A commercial IPNetDB licence is available for a flat fee of $35 USD per month, payable in advance as a $420 USD payment per year. Please contact us at [email protected] for a licence. You do not require a paid licence for commercial software in active development. You do require a licence for use by commercial entities once your application is in production use. An attribution to IPNetDB is appreciated but not a requirement.

[email protected]
Please note that you are not permitted to redistribute the mmdb files without including the attribution link to https://ipnetdb.com/.

Historical releases

Up to 30 days of past releases are available on our CDN. These are:
Date Release File
2025-06-03 prefix ipnetdb_prefix_2025-06-03.mmdb
SHA256:ceb0a78c65e103ee0e0b5f9cfef9c7a75d623fdeb8a64cc8fae033c4131bc0a3
2025-06-03 asn ipnetdb_asn_2025-06-03.mmdb
SHA256:d31fef02f798e666f1abfe148e1408c53e00a8a7d5d43af814ba29d6e9af68c8
2025-05-31 prefix ipnetdb_prefix_2025-05-31.mmdb
SHA256:ebb3b0060e7a43cd68cab2d55a55b8cfd599a06018149bb04c13072423a6c756
2025-05-31 asn ipnetdb_asn_2025-05-31.mmdb
SHA256:7384867e1a65b9b82e7a300df0b0e0f85a727d211a2e38cd13d2268c1c6bc0ce
2025-05-30 asn ipnetdb_asn_2025-05-30.mmdb
SHA256:c65dd1d6f16823ddac03cfc4e9a07e41961bab846fba432d66f1951ab2843085
2025-05-30 prefix ipnetdb_prefix_2025-05-30.mmdb
SHA256:df16f2308e8c01ee137741aecabd7eb7520709f3e3790f05f9dde8f6bdb8b1e6
2025-05-29 asn ipnetdb_asn_2025-05-29.mmdb
SHA256:c20096635bc171f119abee17d784ae2e03828b909265585b1af704369225869d
2025-05-29 prefix ipnetdb_prefix_2025-05-29.mmdb
SHA256:5590810897ed9968b2ff16945736c817150b59cd15391aba703e3c61edbfead4
2025-05-28 prefix ipnetdb_prefix_2025-05-28.mmdb
SHA256:c747166b0d54b9d4989e2bb03d9889b9dd97ef668ad4a15e31bf6491b46c9a02
2025-05-28 asn ipnetdb_asn_2025-05-28.mmdb
SHA256:b2e3c80fb979218d9815b3ab2afb3da309366d10e72b19205a9ecaccf46c33e4
2025-05-27 prefix ipnetdb_prefix_2025-05-27.mmdb
SHA256:d5cbdbd07c453bba1dccd5cb25b1caa3db7897a84d1c37eb60e9604f50ec6ed8
2025-05-27 asn ipnetdb_asn_2025-05-27.mmdb
SHA256:067deabbae2aaff493e91859086b0c5fabf5d2bc6a94735ce2d960b5597c6827
2025-05-26 prefix ipnetdb_prefix_2025-05-26.mmdb
SHA256:63e1db794ff04d5f78cf6e8f9766a2e58e6d797da41f01f07c8d885fee2c2d93
2025-05-26 asn ipnetdb_asn_2025-05-26.mmdb
SHA256:4ae24e9cb421b3470565350cb9d5bcbd3c28e3b049f9f7c533aa45063a221563
2025-05-25 prefix ipnetdb_prefix_2025-05-25.mmdb
SHA256:90dd1b24a762573d08e0b2c6639116f1a4be0203f4db999329ac44e89aa91557
2025-05-25 asn ipnetdb_asn_2025-05-25.mmdb
SHA256:0e0aaaa02125ba6be724e0397bd6437c6077a7eb3b956a477f2572956d959f36
2025-05-24 asn ipnetdb_asn_2025-05-24.mmdb
SHA256:023ed7f7d24211a44fd8231c9947c320bc38d0e1143e130ba24f66a12354fd6a
2025-05-24 prefix ipnetdb_prefix_2025-05-24.mmdb
SHA256:d484264110de4f6cb86a2b6ac8063ca7dedc2a381abe46873457400a57783de9
2025-05-22 prefix ipnetdb_prefix_2025-05-22.mmdb
SHA256:560607849c40aab52c94041cc8dcde8854e0d03b7638206214c1e15610012d2c
2025-05-22 asn ipnetdb_asn_2025-05-22.mmdb
SHA256:95503864b44a1873100ea5c8148cb22662c6e2c937c350a0602b14a53058e451
2025-05-21 asn ipnetdb_asn_2025-05-21.mmdb
SHA256:3eb562d9e7210bc4a37f60a2bca01252df7caabf026197bf625f36c5beb29e3f
2025-05-21 prefix ipnetdb_prefix_2025-05-21.mmdb
SHA256:3546c0e6fd35df30073f7eb5092030423288788ce45313774f03563780ed9de9
2025-05-20 prefix ipnetdb_prefix_2025-05-20.mmdb
SHA256:37da2348ca8df5d3a99d14cfc7e12fa9cfe88814ac4b7bb6787452c69fad5298
2025-05-20 asn ipnetdb_asn_2025-05-20.mmdb
SHA256:03b90159b149d95f33054ec6022de0f376c7a5f2e6b645cd5ef1173477f71327
2025-05-18 prefix ipnetdb_prefix_2025-05-18.mmdb
SHA256:0374e78392892e48cdd752c961af8b54e46ee5d77a6c1ba051b4fa0183b36a17
2025-05-18 asn ipnetdb_asn_2025-05-18.mmdb
SHA256:ecc8d675cf189ec0045412823f198086856df637bd99ca17bda3acea07d1cba3
2025-05-17 prefix ipnetdb_prefix_2025-05-17.mmdb
SHA256:20c54ecff87ac99c1258a634f06a89f247d583a153dcbd517e82cad305beffe3
2025-05-17 asn ipnetdb_asn_2025-05-17.mmdb
SHA256:afe335ca74b3eeac1250cbe182dde3e07787c73e739c6892d3598d2aff755c70
2025-05-16 asn ipnetdb_asn_2025-05-16.mmdb
SHA256:61219f19f4ca5a8a8d43630edf3b5ad8bf4159ff9c107900fe09950dfe057483
2025-05-16 prefix ipnetdb_prefix_2025-05-16.mmdb
SHA256:8def2702a8dfd0ea9c0d4e3e2399cb8c011104073cef95fad298d9b328bb0061
2025-05-15 asn ipnetdb_asn_2025-05-15.mmdb
SHA256:f7fded5e31649077bcd1e7bb6c2e9dc93a07d9446468e8c93b1c63aeadd75377
2025-05-15 prefix ipnetdb_prefix_2025-05-15.mmdb
SHA256:88ed66b7bbecda16cf91ad60a2ca0460bb6fed827f3dd13028fb5c3e460b4e04
2025-05-14 asn ipnetdb_asn_2025-05-14.mmdb
SHA256:a1b80bd31cb853e36b04c161e43d8b57dcdcc59e196d0e2df70ec18999d89581
2025-05-14 prefix ipnetdb_prefix_2025-05-14.mmdb
SHA256:878ba66402202272febbcc3857017a37e5287f2a4ac3f06fa419f2e449e6203b
2025-05-13 prefix ipnetdb_prefix_2025-05-13.mmdb
SHA256:da7266d2d0b7b2e6a5cb4a138658d8e1c037a72dd89702abcc346b5c931bc039
2025-05-13 asn ipnetdb_asn_2025-05-13.mmdb
SHA256:07ba0e4e0b6872a510ac6ee9240b34874d2e2917cd5cc169cfb7508d846e3894
2025-05-12 prefix ipnetdb_prefix_2025-05-12.mmdb
SHA256:e392f1830e3cf12b27f1ad66cdddff5957a443d1a569977f1040b108ccaef0cd
2025-05-12 asn ipnetdb_asn_2025-05-12.mmdb
SHA256:97bef155874d1dcfbd3c5a36f7b2b05ee8373a833c1859ceeeb42362ff48e170
2025-05-11 prefix ipnetdb_prefix_2025-05-11.mmdb
SHA256:1de0a06e0393f80dc62fbebf8141c39b91180df0b2aab9bc9c6d71e7afe7b7af
2025-05-11 asn ipnetdb_asn_2025-05-11.mmdb
SHA256:d3f750e1e740b7b9235c89079d6d602eaaffa313cfba7abe883a570e551e1153
2025-05-10 asn ipnetdb_asn_2025-05-10.mmdb
SHA256:8e65bfc71685aa9739fed5d8dea4120e1d7fdc2b739cffea5668a850feee7214
2025-05-10 prefix ipnetdb_prefix_2025-05-10.mmdb
SHA256:150d9409ed9ed0a355af5a5d46988475500d601ab59f9470701b183e5b93bce4
2025-05-09 prefix ipnetdb_prefix_2025-05-09.mmdb
SHA256:8afb430d9eac9e33a2d6f6ecc90dc799a09c9fd3d59a2d0ba1ac289b5af60c6b
2025-05-09 asn ipnetdb_asn_2025-05-09.mmdb
SHA256:aaefb5985f33c997ddffee495243583827f027aa3ae8a4981fa2ef6edc3965dc
2025-05-08 prefix ipnetdb_prefix_2025-05-08.mmdb
SHA256:7245a8e713c7c12c93d56c4f920e4cf37f132754200466ee1af10cb6b48083e6
2025-05-08 asn ipnetdb_asn_2025-05-08.mmdb
SHA256:4c6e11fc2761f597cd869bc213983d929dd927f4ba96dac7106b9e7bcebf8413
2025-05-07 prefix ipnetdb_prefix_2025-05-07.mmdb
SHA256:26d4c69adb2c815be979e32eb621b9a2ef7c9af5e02cc0a10093cb77730e3aeb
2025-05-07 asn ipnetdb_asn_2025-05-07.mmdb
SHA256:d154e1a49e500d1c34a3bde62f2f6c0648230092dbd8ef4b7fc3b17c96e78cc4
2025-05-06 asn ipnetdb_asn_2025-05-06.mmdb
SHA256:407b776f09ae49a3941455a23595dbf94c959819cda50382d88f7834184ad2f9
2025-05-06 prefix ipnetdb_prefix_2025-05-06.mmdb
SHA256:2ce4f30e45b3c56eec196c5098f7f61a8ca1e788176d113dcbd6b1ccdbb30e24
2025-05-05 asn ipnetdb_asn_2025-05-05.mmdb
SHA256:b9addafd15e92e137f3b5362c16355a35f54a775acd7ba3cbe60e7e14ff10a1b
2025-05-05 prefix ipnetdb_prefix_2025-05-05.mmdb
SHA256:65b419025cc7128360e9aa44469c1a7ef28a26d8e1226854695fa15670cad1f4

Common questions

Where does the data in IPNetDB come from?

Allocation data for IP addresses and ASNs are obtained from the IANA. Internet routing information is obtained from live route views from multiple globally diverse sources. Entity and extended information is obtained from WHOIS or RDAP sources for each regional registry. This information is combined into a single, large tree and then flattened into the generated IPNetDB databases. All information used to generate the IPNetDB databases is from public sources.

How accurate is the data?

The IANA allocation information as well as the prefix and ASN information is accurate as of when database was last generated. As the databases are generated daily these files may be slightly out of date. The entity and extended information take several weeks to fully update so some entries may be out of date if there have been any changes to the ownership of prefixes or ASNs. The data can be used for most applications but do not use IPNetDB data for mission-critical or in systems that require absolute accuracy. Use of IPNetDB databases and data is entirely at your own risk.

How frequently are the databases updated?

The allocation and routing information is updated daily. The entity information is updated slowly, but constantly. The generated database exports are published daily.

Can update the databases automatically?

Yes, you can download the latest version of the databases each day. You can automate deployments by downloading the databases every Monday using the JSON-encoded latest file list.

Can I use IPNetDB with [language or framework]?

Almost certainly, but that is out of the scope of what we would assist with. You can search for "MaxMind database" support in any language, framework or server of your choice.

Can I query a prefix and not an IP?

You can just query the first IP in the prefix which will accomplish the same lookup. For example for 8.8.8.0/24 you can just query 8.8.8.0 in the prefix database.

What does a commercial licence pay for?

The data contained in the IPNetDB databases is freely available in various formats to anyone. Your commercial licence to IPNetDB pays for the significant data processing required (hundreds of millions of routes, for example), compression of the data and then hosting and ongoing maintenance. Your licence is for the service that processes the data and construction of the reliable database, not to the data itself.

Who makes IPNetDB?

IPNetDB is operated and run by Kovalent Systems, an Australian based software development and advisory company.