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 24th 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-24 asn ipnetdb_asn_2025-06-24.mmdb
SHA256:cb9b7c25741fe0315b50084f624dae4a2f4a22ffdb82ddced5df0ec94a28cd29
2025-06-24 prefix ipnetdb_prefix_2025-06-24.mmdb
SHA256:8732a11ea2aa5d1a98eff728472d8105a451a60726677bfe9f281c74f21cb481
2025-06-23 prefix ipnetdb_prefix_2025-06-23.mmdb
SHA256:a5cfd247d4d7f9f21b697b3088597dbf6f59b6187d65ccb7fb72ab3eaa3a5035
2025-06-23 asn ipnetdb_asn_2025-06-23.mmdb
SHA256:3523df5512e122503eda0de4dbb0b22468e005f56e4139e1685c03c87ff6f374
2025-06-22 asn ipnetdb_asn_2025-06-22.mmdb
SHA256:789443b2f1c1d95e6cb7d1ff3cf1785006e2541d467c3d14c08e058eecc7fa95
2025-06-22 prefix ipnetdb_prefix_2025-06-22.mmdb
SHA256:8498ecf9b24d25f9e3f69854e3eac0ff9a444cac7291141189c9c90cd8c919b1
2025-06-21 asn ipnetdb_asn_2025-06-21.mmdb
SHA256:e8c8b4389374dc59768ca53b0fb79bf4afbdfc002d610faeb7fa731eebd85211
2025-06-21 prefix ipnetdb_prefix_2025-06-21.mmdb
SHA256:fd06fc6d541272956cc22618998a123cbf23d880606ff1c67b4c6ae77d24ecff
2025-06-20 asn ipnetdb_asn_2025-06-20.mmdb
SHA256:785aa38d66a3d44e48d33a0cc968ad755ea7a0de6639fee22b5856ef0d16a3e8
2025-06-20 prefix ipnetdb_prefix_2025-06-20.mmdb
SHA256:da96c2cf7685f5a2684e0f1b352a474e249b2d23927117ffc04697f92ac41a1c
2025-06-18 asn ipnetdb_asn_2025-06-18.mmdb
SHA256:15fc052a44bf68aedc1596a7562a88b49091395ed52196ebdf8e9785805c6e40
2025-06-18 prefix ipnetdb_prefix_2025-06-18.mmdb
SHA256:e81aa8ce1c2d2ddbe78009ad55a6e12050e128754490325111966c516ee40809
2025-06-17 asn ipnetdb_asn_2025-06-17.mmdb
SHA256:9ab75f0ed7981f21419acd52113ddcf95e9ac7ed5dd01b9fcf93877508f1cd13
2025-06-17 prefix ipnetdb_prefix_2025-06-17.mmdb
SHA256:6f171284d8890225b9dba4b4a64f7d93e20c5462c2fc1d3e0b14e3038864f431
2025-06-16 prefix ipnetdb_prefix_2025-06-16.mmdb
SHA256:83cc854d5b26bf9dd922181b30495ee1bb1707aca98218fc55895aa41ae5286d
2025-06-16 asn ipnetdb_asn_2025-06-16.mmdb
SHA256:815c114e778d38bf4a9939f86087c26293ed459454bf79dda3d0eeb0e9bed759
2025-06-15 prefix ipnetdb_prefix_2025-06-15.mmdb
SHA256:0a8fc61b56d77cafda78eeba1f6fd7e2cd6b72b66b18b22cfe60dc023d7aa48a
2025-06-15 asn ipnetdb_asn_2025-06-15.mmdb
SHA256:c732e85d0c59a1f890379c96d4356aab7d092065d09d9f7990f565e7872ea763
2025-06-14 prefix ipnetdb_prefix_2025-06-14.mmdb
SHA256:e8066071c7845893f7dbc50568189817083bbfe3b4b4cf3e797504b0f53a6dc9
2025-06-14 asn ipnetdb_asn_2025-06-14.mmdb
SHA256:0e22140b64bfb19b422348fe7b99d5424bcf30529b1653f4fdf23e387cb2ce5a
2025-06-11 asn ipnetdb_asn_2025-06-11.mmdb
SHA256:f2a2bc459d00833f5603dadb41230378fceb63b3244f311ff0c865f62fb6b05b
2025-06-11 prefix ipnetdb_prefix_2025-06-11.mmdb
SHA256:95ad0aca0bff9dd3e33fa40fb3698495e0d0ef4f40e35848ef987489985fb62e
2025-06-10 prefix ipnetdb_prefix_2025-06-10.mmdb
SHA256:9bb4be29f0809731753b909ee23592bd62b9661d26b413c9548b9ba0c61a660b
2025-06-10 asn ipnetdb_asn_2025-06-10.mmdb
SHA256:725691a6b5d7e6e92bc304cc92ba7011ed837711f2df3532180514ff3bd63684
2025-06-09 asn ipnetdb_asn_2025-06-09.mmdb
SHA256:03578a548f1cfc78463baf3fd9cdae0ddf4dfc0ac61e31e59af71b32ef455688
2025-06-09 prefix ipnetdb_prefix_2025-06-09.mmdb
SHA256:3bca8518b2b10d7698afc200c66534ed23d8695b749e840c9c7eb29285ade8c6
2025-06-08 prefix ipnetdb_prefix_2025-06-08.mmdb
SHA256:4fee285bf2a234a98651ed19918363e8e5415fdd61e8f8bb5aab0c29b51aac88
2025-06-08 asn ipnetdb_asn_2025-06-08.mmdb
SHA256:535b9a39a712cc5764f9427200440ddb5081f7c4cc196514dac7894d59ff4095
2025-06-07 prefix ipnetdb_prefix_2025-06-07.mmdb
SHA256:19056974e2cc7b381e6f0b5574650944ed7418ea90137afb47e886b28dcf2222
2025-06-07 asn ipnetdb_asn_2025-06-07.mmdb
SHA256:7bed0654b2143c4a6db309067dd74a5f7e719b86afba6f9b1c49ca0566d69b8e
2025-06-06 prefix ipnetdb_prefix_2025-06-06.mmdb
SHA256:9d5639fb2d8680f367cf736cee4600a4bfeffb63180644f89d4be26c1df629a9
2025-06-06 asn ipnetdb_asn_2025-06-06.mmdb
SHA256:ec11ed77757683e5fe74678bfadd85aefebaf6a78b662b0ba9e6aaf9bf1d7f38
2025-06-05 asn ipnetdb_asn_2025-06-05.mmdb
SHA256:bfb0042a10851971dee7e6aa55bbd6c1ce6ca11ce00e4b80bb8cb127b609a846
2025-06-05 prefix ipnetdb_prefix_2025-06-05.mmdb
SHA256:44fec2392484a3f0846f7e6f5c922bf70cfcf65aaf01a600e5cdb9d9e09aa784
2025-06-04 asn ipnetdb_asn_2025-06-04.mmdb
SHA256:a5d84a95d6bbc5ee8a8b1cce324b9cf49a3c79aff1ea26e6b8a285bd4005953e
2025-06-04 prefix ipnetdb_prefix_2025-06-04.mmdb
SHA256:661c001b093c14a9b64fbe7107d0616c69f2e463400c6600ff14139a3b908f6d
2025-06-03 asn ipnetdb_asn_2025-06-03.mmdb
SHA256:d31fef02f798e666f1abfe148e1408c53e00a8a7d5d43af814ba29d6e9af68c8
2025-06-03 prefix ipnetdb_prefix_2025-06-03.mmdb
SHA256:ceb0a78c65e103ee0e0b5f9cfef9c7a75d623fdeb8a64cc8fae033c4131bc0a3
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 asn ipnetdb_asn_2025-05-28.mmdb
SHA256:b2e3c80fb979218d9815b3ab2afb3da309366d10e72b19205a9ecaccf46c33e4
2025-05-28 prefix ipnetdb_prefix_2025-05-28.mmdb
SHA256:c747166b0d54b9d4989e2bb03d9889b9dd97ef668ad4a15e31bf6491b46c9a02
2025-05-27 asn ipnetdb_asn_2025-05-27.mmdb
SHA256:067deabbae2aaff493e91859086b0c5fabf5d2bc6a94735ce2d960b5597c6827
2025-05-27 prefix ipnetdb_prefix_2025-05-27.mmdb
SHA256:d5cbdbd07c453bba1dccd5cb25b1caa3db7897a84d1c37eb60e9604f50ec6ed8
2025-05-26 prefix ipnetdb_prefix_2025-05-26.mmdb
SHA256:63e1db794ff04d5f78cf6e8f9766a2e58e6d797da41f01f07c8d885fee2c2d93
2025-05-26 asn ipnetdb_asn_2025-05-26.mmdb
SHA256:4ae24e9cb421b3470565350cb9d5bcbd3c28e3b049f9f7c533aa45063a221563

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.