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 31st of August 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-08-31 prefix ipnetdb_prefix_2025-08-31.mmdb
SHA256:18543168c541379b445eb1d91d49f0a8afc9f8f03eaa40ac9a2b35e0c770f76e
2025-08-31 asn ipnetdb_asn_2025-08-31.mmdb
SHA256:6ec518d943b326ac5cd55f04af015676c23ec4daa3c4c44e2c50a00db0753e0a
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
2025-08-23 prefix ipnetdb_prefix_2025-08-23.mmdb
SHA256:8c919df082d0d4d7d5e1a6f9396060e54c6bc249972b4d5859159f494952a1af
2025-08-23 asn ipnetdb_asn_2025-08-23.mmdb
SHA256:eaaba85f22e9ee701c39c7ff89c227c4149c88c2c4e3dc848f545862d8ec2da7
2025-08-22 prefix ipnetdb_prefix_2025-08-22.mmdb
SHA256:8bdff21e46b354489b09578a095b427621c09cf9195f2334e4b2783f09f33082
2025-08-22 asn ipnetdb_asn_2025-08-22.mmdb
SHA256:145e2df2d36882319adcca5b58db9e105c63da29c56d3259c73cfcf537789699
2025-08-21 asn ipnetdb_asn_2025-08-21.mmdb
SHA256:38abd6b18d3c09bb23cbaf78e245044fc35cdb51144e352b6f63b0fba1ae9b80
2025-08-21 prefix ipnetdb_prefix_2025-08-21.mmdb
SHA256:51c91ef8abcd824339d4af4ea31d8aff4562c6e7b40660413a2083d19836af53
2025-08-20 asn ipnetdb_asn_2025-08-20.mmdb
SHA256:871ea8a3eba755588350165045d415ce6214b72df787c1fe61d0b0066122fb1b
2025-08-20 prefix ipnetdb_prefix_2025-08-20.mmdb
SHA256:45bf7f684a0ee2da07a09b90e47139b2cbae55f50d6d5902bb6d554276605ab5
2025-08-19 asn ipnetdb_asn_2025-08-19.mmdb
SHA256:68d908ba64a57d88bd5c286be9bf15622e78d5f199c4f155da2559aa83775b17
2025-08-19 prefix ipnetdb_prefix_2025-08-19.mmdb
SHA256:1b51b9be76534fcceb7a3c47f02c117b0994f3686b9662ee29171af3195d921f
2025-08-18 prefix ipnetdb_prefix_2025-08-18.mmdb
SHA256:972d5f4a47816422804b060eba9b349b72315e32d218e85b1667c38d32f16124
2025-08-18 asn ipnetdb_asn_2025-08-18.mmdb
SHA256:b3001461ca1c36217659b535c950df3a05e60a53f491f2881d87c440a5768dd0
2025-08-17 asn ipnetdb_asn_2025-08-17.mmdb
SHA256:4568e2f90392e8c387dc81e23ac59dedf53e46ff5dfd2e93766cf7607e27a076
2025-08-17 prefix ipnetdb_prefix_2025-08-17.mmdb
SHA256:64a5b96bf9a2f68800c9a7ed61abbbd344b9a7de1a62165fa6f2bb7f5abc1e29
2025-08-16 prefix ipnetdb_prefix_2025-08-16.mmdb
SHA256:877874e8c0a755fb4ce2d015dd19f6404d348b3450356a9da9f7a64f3a0b9cf8
2025-08-16 asn ipnetdb_asn_2025-08-16.mmdb
SHA256:a5b3e27000f131c999a00cbdf5fcb0c8bc532db403f71abb240d4628173fece2
2025-08-14 prefix ipnetdb_prefix_2025-08-14.mmdb
SHA256:cf8bbc9bac2c5bbc400919c339b77ecb5aa62c5751e2f6c47afcfd3f81219416
2025-08-14 asn ipnetdb_asn_2025-08-14.mmdb
SHA256:703f8909a418c36c3959ae18946f7c6b3e8e3dcd8b891743fe678a5fcf9f3756
2025-08-13 asn ipnetdb_asn_2025-08-13.mmdb
SHA256:06209b242bd25005796722007a972ac66b9a232d9d827624e3e2eff41cc5bbde
2025-08-13 prefix ipnetdb_prefix_2025-08-13.mmdb
SHA256:582c9030f027e8d02a91a73d5eecc6af193ce9c9717f07b4b15e7d750ac34cc2
2025-08-12 asn ipnetdb_asn_2025-08-12.mmdb
SHA256:d5c29c44afd8579bb237e6c01932547e32409b1f695da6fd7ca9cc056bb44337
2025-08-12 prefix ipnetdb_prefix_2025-08-12.mmdb
SHA256:717c1fa75544e4d351b99fdb39b8a446a5e82cd140fc0105868ba093176c0d18
2025-08-11 prefix ipnetdb_prefix_2025-08-11.mmdb
SHA256:56c22410b56e86714b8d71b368a82048629e5b651c18b75c8a88c7f31f5362df
2025-08-11 asn ipnetdb_asn_2025-08-11.mmdb
SHA256:eb521c0a29fe960f6473e3a3c48d483f99d5778c4fc9f8dc540729b770c1fe24
2025-08-10 prefix ipnetdb_prefix_2025-08-10.mmdb
SHA256:a092ca5c822b4f657592047144bc2efcaac9f7e253d15a04d6c220c18702437b
2025-08-10 asn ipnetdb_asn_2025-08-10.mmdb
SHA256:d48942c5072becd45c02b03cebb32bff3c90f61c1084f23afa251cff0e68803a
2025-08-09 prefix ipnetdb_prefix_2025-08-09.mmdb
SHA256:3c0447531d0c0f14d93779fd390a311cd6fa2e1ee6c470c163d896383d76dce2
2025-08-09 asn ipnetdb_asn_2025-08-09.mmdb
SHA256:f270bd315b61e4edb0971f6af5bbca9b13dfbffff26be2533b8fdbf362a8fa66
2025-08-08 prefix ipnetdb_prefix_2025-08-08.mmdb
SHA256:25add3e57e47f22157225f6c7307fa95e88d0dc9796f9dd6a8034a58b0d0e12e
2025-08-08 asn ipnetdb_asn_2025-08-08.mmdb
SHA256:3c89371fedfbf56cc093b79a02ff4c2bc7d8f9f13e3387cda9a1ac50061105ab
2025-08-07 asn ipnetdb_asn_2025-08-07.mmdb
SHA256:dae85fe917be0a0e1adcfbbd3c753215b72e7b8b8af3ea21eeeb260f2ad06923
2025-08-07 prefix ipnetdb_prefix_2025-08-07.mmdb
SHA256:b9b8c1f529b6dd26f8590e8d58bfc2e081427c1ad5ae56522ec9f48e44043aa1
2025-08-06 asn ipnetdb_asn_2025-08-06.mmdb
SHA256:112d7d3fc061a865df2a188a4429dc6d4c5dafaa675c813176b1c5ae1929d476
2025-08-06 prefix ipnetdb_prefix_2025-08-06.mmdb
SHA256:eddb49a657af44c011a2e15f6c1bc0798680adb18f6c77deac7d82df7d7e2684
2025-08-05 prefix ipnetdb_prefix_2025-08-05.mmdb
SHA256:7012ece7dc0cf7c6be478793bd223f9a1216659ceb5533beac973d8fc9fa44d7
2025-08-05 asn ipnetdb_asn_2025-08-05.mmdb
SHA256:c4c9228fca5feba2b07c36c8f1c86fb04ede30f8dd5f7ae73f9cfde6f561a62c
2025-08-04 prefix ipnetdb_prefix_2025-08-04.mmdb
SHA256:be6e65be4c1fdaa923e61a8e239d505e7487050947ffc7d55bec2e5a28f8a095
2025-08-04 asn ipnetdb_asn_2025-08-04.mmdb
SHA256:f38d02339d973aea0b90e6fc820a72f709f72ec21332f28e2ea0c36e12be1708
2025-08-03 prefix ipnetdb_prefix_2025-08-03.mmdb
SHA256:9258ef05d29ed4168075f1d71cc4cd58a618eb511cfcf83e01254d3f06b23ed9
2025-08-03 asn ipnetdb_asn_2025-08-03.mmdb
SHA256:f3c98657489edb35d1bcb1ec2003cca43faad26ea9ab6638ae377d5fb1fb53b4
2025-08-02 asn ipnetdb_asn_2025-08-02.mmdb
SHA256:275e110d400645cd497c9e7c0fb52e7aa3a903a8a0f8b53dcf76e2658d6c6787
2025-08-02 prefix ipnetdb_prefix_2025-08-02.mmdb
SHA256:d72e6312f240fdf90b2ae1d6e3a7530069cea93e0303d4111cc6f075ecb5239c

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.