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 23rd of September 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-09-23 asn ipnetdb_asn_2025-09-23.mmdb
SHA256:6d7a1857c68bb01d6e09b58c9930783ac8df5ea14b260e89178d5bbeb81a926b
2025-09-23 prefix ipnetdb_prefix_2025-09-23.mmdb
SHA256:8bd49e1c05253daeef56f95a66b9b64aa289a655543aa41a40837edd2616f226
2025-09-22 asn ipnetdb_asn_2025-09-22.mmdb
SHA256:9223e53d95c9b8c8ba56b8f4174fb2ecfda73dff8b3bcf8f57cd293bdb273b10
2025-09-22 prefix ipnetdb_prefix_2025-09-22.mmdb
SHA256:1d9650bd86ca866c4eb2bd3340f4e9d0a03942d3ea05a8d8af8d1b0f259473a7
2025-09-20 asn ipnetdb_asn_2025-09-20.mmdb
SHA256:168687717d1a6bc88ef71f6b008d3086d8fa27c38223bc3aef5713d3b361aaac
2025-09-20 prefix ipnetdb_prefix_2025-09-20.mmdb
SHA256:767bae0bf75a1c1bf1c8e2f2a169e6f11c00c46f4bd728a8527e55e372cc0bc5
2025-09-19 prefix ipnetdb_prefix_2025-09-19.mmdb
SHA256:b96d74e4add83eea392946bfccf7a56a810e4139d7f1e6f3833ec7725ee43667
2025-09-19 asn ipnetdb_asn_2025-09-19.mmdb
SHA256:59a20505a537e48555251b60a32459e8842cc397487677e05710203b107653b8
2025-09-18 asn ipnetdb_asn_2025-09-18.mmdb
SHA256:a767465e08643337905b731a08e61bbe61eeeec8e8bd17f1aafc3352f9e5b36c
2025-09-18 prefix ipnetdb_prefix_2025-09-18.mmdb
SHA256:f4f4ff791c598e0b563eb7e04c29562e5ac77b20f39703f90c26657c45af663c
2025-09-17 prefix ipnetdb_prefix_2025-09-17.mmdb
SHA256:9f3c52b5ad732d00719957686f7907771cc7ba0c4f67ad7274082fdd1dcf91f2
2025-09-17 asn ipnetdb_asn_2025-09-17.mmdb
SHA256:f95958872fc77d83b6254942b265ecba244a56b31ebf9a0103a5ed68c0585178
2025-09-16 asn ipnetdb_asn_2025-09-16.mmdb
SHA256:a2895118cc72808c927f1fd76ac92111e679a98e87b0b9ae7a3f6d6b40f3bd9e
2025-09-16 prefix ipnetdb_prefix_2025-09-16.mmdb
SHA256:2e231da9086028de4fa048d24ee5d791824389336294d55061586b1d898c023d
2025-09-14 asn ipnetdb_asn_2025-09-14.mmdb
SHA256:5a31558936686fc3db5b339dc9a1e57309ff0b8af959931b14c9ab2bdec337d4
2025-09-14 prefix ipnetdb_prefix_2025-09-14.mmdb
SHA256:5bfa71263ff6d4c66aaddd864d424687d760d300584e5fdf706cd8135ac03169
2025-09-13 asn ipnetdb_asn_2025-09-13.mmdb
SHA256:7181f1f2f5e126c33ea6564c39884714be694d3b763ed843ced15f4da804b5d8
2025-09-13 prefix ipnetdb_prefix_2025-09-13.mmdb
SHA256:3886db0fef57cc1ad013d7ab7fad7890107e05ec8b5ebdc671abf10fe3497387
2025-09-12 asn ipnetdb_asn_2025-09-12.mmdb
SHA256:9cce47b39d063bb209fd4ca3697e3d0e3b3a5dd67b93323921df6b584e139910
2025-09-12 prefix ipnetdb_prefix_2025-09-12.mmdb
SHA256:542d6d6fce808f9ac33e6f35d33889d8f862b278ea2f094a35ec7c85ae411453
2025-09-11 asn ipnetdb_asn_2025-09-11.mmdb
SHA256:cce1da4bc785c9a80dcff752810b3e8e691ef1ab9143a815c5dc4db22a84a50e
2025-09-11 prefix ipnetdb_prefix_2025-09-11.mmdb
SHA256:3f9dc7b6f2d17de20daa89424935d0ba4b80664083b1561c5050c146c099e625
2025-09-10 asn ipnetdb_asn_2025-09-10.mmdb
SHA256:7c811e78fec6f0e411bddeb978039047bd1a4e95678f7e1025cc775ef89b5824
2025-09-10 prefix ipnetdb_prefix_2025-09-10.mmdb
SHA256:b492f712bfeda8832680157b9143f49236007529f5055e7c912c35aac341e4b7
2025-09-09 prefix ipnetdb_prefix_2025-09-09.mmdb
SHA256:8d844575c6956d93574ba2e6d75f78b9eb879887775beb6c66e06a0d1374adaf
2025-09-09 asn ipnetdb_asn_2025-09-09.mmdb
SHA256:3930f551d18b646be3394727f81dcd1ae0106d326aae6fc3d5d10f3edcd2662d
2025-09-06 prefix ipnetdb_prefix_2025-09-06.mmdb
SHA256:f49febfae4f83b79033ac815ee287b32b47aa9a61dc269b5ce144816405a7716
2025-09-06 asn ipnetdb_asn_2025-09-06.mmdb
SHA256:92cc24351e42e0a1cbdb8e36c8a20429cc567474e96a035f45b3f6541c085281
2025-09-05 asn ipnetdb_asn_2025-09-05.mmdb
SHA256:7edaaf787f18f9be971ab115259afba2f0efbc9770159af88fd21e3a014788ac
2025-09-05 prefix ipnetdb_prefix_2025-09-05.mmdb
SHA256:ce1963764c463e41c9d6188192a2491700f100243dc815145ce9c4a429496b80
2025-09-04 asn ipnetdb_asn_2025-09-04.mmdb
SHA256:3712aff42d8c3d68eb244115239f1b576435f241677aedc5cfb9da5f7c905ddb
2025-09-04 prefix ipnetdb_prefix_2025-09-04.mmdb
SHA256:8583a3d0c5be455d2b0dd8c832884ff3a1904e4d68f2edb8237eb862e9c77bb2
2025-09-03 prefix ipnetdb_prefix_2025-09-03.mmdb
SHA256:92b09d149797b5a6055df6902dfa23e79654607055db262f604cf7c1fe18fc3f
2025-09-03 asn ipnetdb_asn_2025-09-03.mmdb
SHA256:e20ca2e674778ecd5473154a22ddf6595a4cc2991db0b2bb51f454c135117725
2025-09-02 asn ipnetdb_asn_2025-09-02.mmdb
SHA256:9abc0c5aa275903a870455be5c183987be2985284ea3db2b88ce9655d9684db7
2025-09-02 prefix ipnetdb_prefix_2025-09-02.mmdb
SHA256:2a31316b7aff57dd60b996acc811ae9fb5aa2c4bceef8e0ea34af98a1ef2525b
2025-09-01 prefix ipnetdb_prefix_2025-09-01.mmdb
SHA256:2e993fb35de3ff1e33b01893032bc3e0a9bc084f64ead9db7c98c30f86aa928e
2025-09-01 asn ipnetdb_asn_2025-09-01.mmdb
SHA256:2ff4872aad6f0630fb6115464497eb7b20c143db480c4fdd4b40f12cfd79b9ed
2025-08-31 asn ipnetdb_asn_2025-08-31.mmdb
SHA256:6ec518d943b326ac5cd55f04af015676c23ec4daa3c4c44e2c50a00db0753e0a
2025-08-31 prefix ipnetdb_prefix_2025-08-31.mmdb
SHA256:18543168c541379b445eb1d91d49f0a8afc9f8f03eaa40ac9a2b35e0c770f76e
2025-08-30 asn ipnetdb_asn_2025-08-30.mmdb
SHA256:051d246014e0437fb6623a320566a364de0370e807711155e06b87eae5924426
2025-08-30 prefix ipnetdb_prefix_2025-08-30.mmdb
SHA256:266d419b9d3e591fff1ac822d0c84be59d95616d0b230864e38b26089807b37e
2025-08-29 prefix ipnetdb_prefix_2025-08-29.mmdb
SHA256:f7f5f35957a3bad71fe590d04e3917ab1c35d587f0fad7e3e8b2a8cfd360a6bd
2025-08-29 asn ipnetdb_asn_2025-08-29.mmdb
SHA256:72ff17d0aba58d23f0302575dab47c7116233369fc2904338c9ec6d862e4e9b1
2025-08-28 asn ipnetdb_asn_2025-08-28.mmdb
SHA256:4521c42a26403672c22791e5cef732103d8e0c33f305dc8f9be10e165c407356
2025-08-28 prefix ipnetdb_prefix_2025-08-28.mmdb
SHA256:ecb08193d723e1c2ae44df83cc198a1bf7e60c7d545f65de4786ee0e165b4b41
2025-08-27 asn ipnetdb_asn_2025-08-27.mmdb
SHA256:ae1ab27789fca374e263b0d7fe316462e277053af089ddbc420c3ce0c8601055
2025-08-27 prefix ipnetdb_prefix_2025-08-27.mmdb
SHA256:48f9628649eb1a86f72a1591867c3ed8a0fb7dfa8ac8ad1fcc739f7a9c098dce
2025-08-26 prefix ipnetdb_prefix_2025-08-26.mmdb
SHA256:9d71afe22584fa822b9e12a40ef0df1c7881890c5e0a7f64de5450853d84a9e4
2025-08-26 asn ipnetdb_asn_2025-08-26.mmdb
SHA256:4b78086cdb79ee8df54f4e35d1c932e685078ec5fa7181b79f13898ca64c9b80
2025-08-25 asn ipnetdb_asn_2025-08-25.mmdb
SHA256:01d0dfbbba6e6f090eddc2842e9b52468f36de4e2e4d829e94dd4dbd310b3c83
2025-08-25 prefix ipnetdb_prefix_2025-08-25.mmdb
SHA256:3ab3fc92e849d7d2f1404a8fe7a095e03307f1fb2ac4814e2803092cf9f20488

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.