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 21st of December 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-12-21 asn ipnetdb_asn_2025-12-21.mmdb
SHA256:8a7a2b7f80b61a8b0ddb49bb8549febbfe3cb9350abeb4adb33b7cb29196a1ab
2025-12-21 prefix ipnetdb_prefix_2025-12-21.mmdb
SHA256:74106593e06349fa6a967bae066c09ebd947bbb6b8b5ab48f3a314117be4592b
2025-12-20 asn ipnetdb_asn_2025-12-20.mmdb
SHA256:cc6a8c39aca7e7a698516ebeda8c23befc1fffd9306e3a5623387a25e2c770a6
2025-12-20 prefix ipnetdb_prefix_2025-12-20.mmdb
SHA256:50d52e93c12181d9afe2041a224623dcea2cf4ed2f30fca5d072226052d7d776
2025-12-19 asn ipnetdb_asn_2025-12-19.mmdb
SHA256:a6a33836fa1d550e33303ee5944e7bf4ddd70aae3edf6014a2de678602ddc861
2025-12-19 prefix ipnetdb_prefix_2025-12-19.mmdb
SHA256:a86d49dae32658d0f3babe3124842a498254036b78119f479fd575742cf28b47
2025-12-18 prefix ipnetdb_prefix_2025-12-18.mmdb
SHA256:de4d2a62f256d14031ee25ba6106533ff19dfb0ae9dc5fca421a00860467becd
2025-12-18 asn ipnetdb_asn_2025-12-18.mmdb
SHA256:d569953d7276d2afec0ceb0a0cecfcacd82b1f7678cbf29b40708a7e007ee96c
2025-12-17 prefix ipnetdb_prefix_2025-12-17.mmdb
SHA256:8eda7b46061848d5421029dc6f2e28ba460ebfe9b1a0a526f3c0fe81c0e96025
2025-12-17 asn ipnetdb_asn_2025-12-17.mmdb
SHA256:b805fa575c51045f6eca371826c347e95f4bb8c4b32f626529d90559486c61bd
2025-12-16 asn ipnetdb_asn_2025-12-16.mmdb
SHA256:cc367a513f241f01f26a3cdd226067a0d49077e21288e54f2e15c5407cadd75b
2025-12-16 prefix ipnetdb_prefix_2025-12-16.mmdb
SHA256:101f3df8eed7248961a9fc090077b41f8cc08e65e0e7cb5f2b40cedbec56beb4
2025-12-15 asn ipnetdb_asn_2025-12-15.mmdb
SHA256:873cac3fbb99cfea4ac845d629ad71f6907269b53dc97fef15403d01bc3eb529
2025-12-15 prefix ipnetdb_prefix_2025-12-15.mmdb
SHA256:d008d08181653d5ca8925deb045a8420088ad8d60ccf0b468e284800d5690f8a
2025-12-14 asn ipnetdb_asn_2025-12-14.mmdb
SHA256:a241a966f41edb22b7094a79ee7301b5ceb17ab3dad063b489a835a708bcf089
2025-12-14 prefix ipnetdb_prefix_2025-12-14.mmdb
SHA256:7648f98155bcb893c8211cc9d4b33327de6baf6d3cc14c12a2ec0415b78a78ba
2025-12-13 prefix ipnetdb_prefix_2025-12-13.mmdb
SHA256:eef301391076c6dd652fe245c194cf764ba4e7a57bdf52b905f07998efb63cfe
2025-12-13 asn ipnetdb_asn_2025-12-13.mmdb
SHA256:831c95206b980975397eab735db4d04db7b1d57733ecd334d4946b2584b57c83
2025-12-12 prefix ipnetdb_prefix_2025-12-12.mmdb
SHA256:17dd8d3db08f39f2ba4b4dd8b358e27c63cb83ca2deb3ac6adaa9df81506a03f
2025-12-12 asn ipnetdb_asn_2025-12-12.mmdb
SHA256:5a318e6e4a5bc61fba62ee280d9b37adb7567a327f462c51ef3d352d9180005f
2025-12-11 prefix ipnetdb_prefix_2025-12-11.mmdb
SHA256:aeb181b19a2ad58fdbf0f85f3a1a770e8b31ba1c8dc2c314236f0b013939c03b
2025-12-11 asn ipnetdb_asn_2025-12-11.mmdb
SHA256:a75574d5155490ab7d43ba8e7b8308cfe50535e57427cce02364283966700949
2025-12-10 asn ipnetdb_asn_2025-12-10.mmdb
SHA256:babc42e8deac8ad45b51c238908b58f0df8b1991d8b451e110c867e9e957beea
2025-12-10 prefix ipnetdb_prefix_2025-12-10.mmdb
SHA256:64daa45463d000d4e924ba006d262948c797353273ef457a6e9d243c35ed8104
2025-12-09 prefix ipnetdb_prefix_2025-12-09.mmdb
SHA256:d29474292335cf193c8c527eba6477d69909e5c697857c6ddceeafa0e81cb2de
2025-12-09 asn ipnetdb_asn_2025-12-09.mmdb
SHA256:f78ca948b70528dab3c386a40541093ef1f1d465c51ef4cfa18a26294b0a9108
2025-12-08 asn ipnetdb_asn_2025-12-08.mmdb
SHA256:3f5817213fc1cd0cd7b8d9a093fa5cfc47277b78a865cc2f72f347a1549d4ec4
2025-12-08 prefix ipnetdb_prefix_2025-12-08.mmdb
SHA256:3c276cf03f4122fdc92b20c0bee76e20bcfed548b0d9a572145030d40f899a71
2025-12-07 prefix ipnetdb_prefix_2025-12-07.mmdb
SHA256:467253d32848ecd66f827ce83be9fad9edf3c393c7d8d945c87f27e201e592ea
2025-12-07 asn ipnetdb_asn_2025-12-07.mmdb
SHA256:4e30a0c73ffad43b968d0f12ace7fb85fa8cd02734f4e69856a9def801f6394c
2025-12-06 asn ipnetdb_asn_2025-12-06.mmdb
SHA256:61df15f4d7ed69893a5b8af3a13838d8a68f4670a376f82d37a55fadf97076bd
2025-12-06 prefix ipnetdb_prefix_2025-12-06.mmdb
SHA256:8d383e17a1c7ac8dc69d0343084ff9b817c6f83c0182127b9b9fb96dd417418d
2025-12-05 prefix ipnetdb_prefix_2025-12-05.mmdb
SHA256:500f6afe4766b202d7eb43dc5122f35b8dc46bd958c7e0f7a262b7b6279a8421
2025-12-05 asn ipnetdb_asn_2025-12-05.mmdb
SHA256:3c10230e7289650bb3475bd85665c7aaffc56dce8af0c7f602afd15c2449d6de
2025-12-04 prefix ipnetdb_prefix_2025-12-04.mmdb
SHA256:2defcc3c5fc223c1cb7c87428cba0ddaf6697a3b50135ece6b93c0e647059ec8
2025-12-04 asn ipnetdb_asn_2025-12-04.mmdb
SHA256:8deea35376a65360c9f8fb6826e3120cec65f4bb69bab4bf7006182f8ab899d8
2025-12-03 asn ipnetdb_asn_2025-12-03.mmdb
SHA256:654cc1abbef0e3dbc116c77f7f3cfebbb407f207d13967fcb722fc40baa1f2e0
2025-12-03 prefix ipnetdb_prefix_2025-12-03.mmdb
SHA256:1f024b7fc3db6ed313de0fbd1264d06bb5124377cb67aea0346b8d6559167d3a
2025-12-02 prefix ipnetdb_prefix_2025-12-02.mmdb
SHA256:8e70600de821b074032050d411a02bfe32d21ceab26be26eb92fddb30aa67937
2025-12-02 asn ipnetdb_asn_2025-12-02.mmdb
SHA256:6c40a99b20fa0142aed45a531563f48e24ceaf65a99ac37f1851fcbedf98388f
2025-12-01 prefix ipnetdb_prefix_2025-12-01.mmdb
SHA256:99665f8ab2ee315b226c5e836aad67a21b3857ebf623c91b38c32e446b32d88f
2025-12-01 asn ipnetdb_asn_2025-12-01.mmdb
SHA256:3a30f4660ab80d93dd5e1bbe1fb60189cc6e7007bc12b56c152890e089912240
2025-11-30 asn ipnetdb_asn_2025-11-30.mmdb
SHA256:b76b04e3f64a0b9fb7fe333d72ef6e2dc5df09a5abd354605cbf58bb83f24589
2025-11-30 prefix ipnetdb_prefix_2025-11-30.mmdb
SHA256:576fc5076b6922b288d19e5bc6171a26c6a66423fef23310de737265328e926f
2025-11-29 asn ipnetdb_asn_2025-11-29.mmdb
SHA256:6254100736cab45644daada612f3083b7e547979e9193307f00d49cf64bee759
2025-11-29 prefix ipnetdb_prefix_2025-11-29.mmdb
SHA256:095a308a02c67ad2c0f797833ecd9b7becd24b766dd927ca0c033f92365b91db
2025-11-28 prefix ipnetdb_prefix_2025-11-28.mmdb
SHA256:aa540217a06a9067f8f1177006c0e2f7d34494264f420e51ea7106aeb217d39a
2025-11-28 asn ipnetdb_asn_2025-11-28.mmdb
SHA256:514b372bfb215df416449735c58dadefcd49d5ee65e8849ca04963e7822f4aa3
2025-11-27 asn ipnetdb_asn_2025-11-27.mmdb
SHA256:f9ae2e5683318a5c33100bc65d431836a2abf86b094b4e5ddb32beb635f793fb
2025-11-27 prefix ipnetdb_prefix_2025-11-27.mmdb
SHA256:781a59c3d601cf74b3ffea2675832c42c8446646f532bc56d777dec106db10a0
2025-11-26 asn ipnetdb_asn_2025-11-26.mmdb
SHA256:4f72d7b0f8bf113def74e240eb6af54d59d20fee6830e067f9ca7802556ed20b
2025-11-26 prefix ipnetdb_prefix_2025-11-26.mmdb
SHA256:592952e11b1a95de276f558a26a6b5de0e41cd78ba1ec672955c5869a222a616
2025-11-25 asn ipnetdb_asn_2025-11-25.mmdb
SHA256:01e0fd20a3f0565b98f7877c06ddfd640a591c2513b49b419ecd7309fb8ae453
2025-11-25 prefix ipnetdb_prefix_2025-11-25.mmdb
SHA256:acd4ca0cefc22ec6a658c99ea696537bdd00ad422ed841bff6d7b3a341a5b6cc
2025-11-24 prefix ipnetdb_prefix_2025-11-24.mmdb
SHA256:a65457f9601af5febf6486815fe24de49923287ee6385b98f0ddd11527a55eea
2025-11-24 asn ipnetdb_asn_2025-11-24.mmdb
SHA256:b333521cd00dc5f015c1501afc17d1d774e274f6e84b70796fc57f086e313b82
2025-11-23 asn ipnetdb_asn_2025-11-23.mmdb
SHA256:324df0f9497b3056c3682b9aab816e5137488023b0c60482e316f840405ceac3
2025-11-23 prefix ipnetdb_prefix_2025-11-23.mmdb
SHA256:08957c05cd9216cf292ad11bf4d98ee10d3371d48d301e7ab6f45ce7b40a30c5
2025-11-22 prefix ipnetdb_prefix_2025-11-22.mmdb
SHA256:afed9b54785b8a40e31f0ca09e73a789c3c2d90aad6611658d40662940d9c693
2025-11-22 asn ipnetdb_asn_2025-11-22.mmdb
SHA256:0a2578e381fc1fa429d6070a718576bfb04a2a98436051df7b7502c0ab709d0a

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.