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 14th of October 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-10-14 asn ipnetdb_asn_2025-10-14.mmdb
SHA256:c03640840debefa0306b91ca55e0c329be6f354c5d32a89490f4191839482bcb
2025-10-14 prefix ipnetdb_prefix_2025-10-14.mmdb
SHA256:9f59e7988db3570e5fa98d850bd98990439b75da316f23a4ed4e2f204be67f9f
2025-10-13 asn ipnetdb_asn_2025-10-13.mmdb
SHA256:047b1454549190984d957b55fc3fd0bc1217479dd803040bc2ee9b64fa230af8
2025-10-13 prefix ipnetdb_prefix_2025-10-13.mmdb
SHA256:179d4ae5144973f2473a7bac96dfb2df01ff2e731779bfd9cab340ce3c44f91a
2025-10-12 prefix ipnetdb_prefix_2025-10-12.mmdb
SHA256:5c199b2c0926eb775f7d2d46708bd8d3be4cd8132e2a00ff1f1883a81f712883
2025-10-12 asn ipnetdb_asn_2025-10-12.mmdb
SHA256:c7a35bb69ab877efa2ba595fe6df0c271640d90614681ee0ffb8f122b7a322d8
2025-10-11 prefix ipnetdb_prefix_2025-10-11.mmdb
SHA256:94a216ac19bc405d0532273bff032391b69b0fe46495977ca1922f63847d09fa
2025-10-11 asn ipnetdb_asn_2025-10-11.mmdb
SHA256:9cd2541a207ae4b9a57a4debaf9af065cb0d57f8f97b17019550aa1e68651aff
2025-10-10 asn ipnetdb_asn_2025-10-10.mmdb
SHA256:ba520caf39627403ab89948fbcac5fe35cec762d452c977c7d8506ed48f82db9
2025-10-10 prefix ipnetdb_prefix_2025-10-10.mmdb
SHA256:5a130af457665fc61774062ef99cd05ded3a3a3ab87f7b9b1083c6ecc72a302b
2025-10-09 prefix ipnetdb_prefix_2025-10-09.mmdb
SHA256:ea66fffbac22fe25a897ac7fd0c6e949f2e8f61636ab1f7ef711ac2c9d458c28
2025-10-09 asn ipnetdb_asn_2025-10-09.mmdb
SHA256:eb0a1059d96092d8984498b830a66f6741d5990cac3d258c2146a4ef0883744e
2025-10-08 prefix ipnetdb_prefix_2025-10-08.mmdb
SHA256:f9b92b57b7ab1c7bd4871fafbf057fe0e305fca31a6a5b1f616d91156b0916ff
2025-10-08 asn ipnetdb_asn_2025-10-08.mmdb
SHA256:06a1f1a423e3a0988fa69ae977796e79923cb8742f47ed64bcf7488b96242db0
2025-10-07 prefix ipnetdb_prefix_2025-10-07.mmdb
SHA256:8e34cc6b45e8a4d73a28edade537f3f76335e06921368f6cab164ed0f20d4355
2025-10-07 asn ipnetdb_asn_2025-10-07.mmdb
SHA256:91738caaf40e3a5ebeab6675ec38113db0261ace7e5567e78367cf9aa1458097
2025-10-06 asn ipnetdb_asn_2025-10-06.mmdb
SHA256:2dc6d1bbf77b2f5aac2ed5a5066d0d6956e4e924ecbb3adc5341c05cbf43ff47
2025-10-06 prefix ipnetdb_prefix_2025-10-06.mmdb
SHA256:cc65caaa9d58d3ace41381c6fb5572488c16d697697500b786a07de43cd42d0d
2025-10-05 prefix ipnetdb_prefix_2025-10-05.mmdb
SHA256:fbb3b5a87821ba243780b86b01b0dc693c4c8d9ed229ee8ef1bd2accfd33ee00
2025-10-05 asn ipnetdb_asn_2025-10-05.mmdb
SHA256:606105d9f9603c9135cadb486788756b2f92470b5849336faa91c77dbe9dd5af
2025-10-04 prefix ipnetdb_prefix_2025-10-04.mmdb
SHA256:f566757e6a7ba7ce3dbc8ed13c3b9032fec7165cb8abd5325c461ee7a01b0f35
2025-10-04 asn ipnetdb_asn_2025-10-04.mmdb
SHA256:aa762db13abd20adb7070dbeb95577b4fce5fdf0104d6deb61b5dc93055d5fac
2025-09-30 asn ipnetdb_asn_2025-09-30.mmdb
SHA256:488d475d31a6e6ed56a4afe24ba641752733b61be342130892ce08321fc636b3
2025-09-30 prefix ipnetdb_prefix_2025-09-30.mmdb
SHA256:c817063581ff243ddf9340a64a0d9ec7d48ec5cb3bd1c32c9124585bed5ec12c
2025-09-29 prefix ipnetdb_prefix_2025-09-29.mmdb
SHA256:7c2a7ab3a8bd4f5ace473a560f03f14d8d74d98abd591ea5922187d4dbbef294
2025-09-29 asn ipnetdb_asn_2025-09-29.mmdb
SHA256:af0ed9311a47b1400b2e234e758a971196d88ed5ea2727eef087c93860fd0596
2025-09-28 prefix ipnetdb_prefix_2025-09-28.mmdb
SHA256:bfddc11e1b5922f8fd2291c91c2c5f3e452076654ac9236086dd12c784681987
2025-09-28 asn ipnetdb_asn_2025-09-28.mmdb
SHA256:2e5fcb8ed4c2b3492e8a8c31a1ab13e968924c513ddf73fd8cb0af96d191f4ff
2025-09-27 asn ipnetdb_asn_2025-09-27.mmdb
SHA256:4c87e8ecc05f60dd742a496349aa421597b22ae48293c5a3ff6e60af7cc18f60
2025-09-27 prefix ipnetdb_prefix_2025-09-27.mmdb
SHA256:0efe527a7a4198759da1bea8ae93216dce949f60a2b5a4b5348098eea3dcdddb
2025-09-26 prefix ipnetdb_prefix_2025-09-26.mmdb
SHA256:4b8655744d470f0ae53278d0fc03059aafcd3693694f550daff9854c1e0e81b7
2025-09-26 asn ipnetdb_asn_2025-09-26.mmdb
SHA256:2c518cdf8574969841f4110ff46b4df985c72a90a10246b595260a13e84be838
2025-09-25 prefix ipnetdb_prefix_2025-09-25.mmdb
SHA256:f15698ed66b54cbd03cb476b4b25108be549fcb39a024d5b9ca0822d14fdbd9a
2025-09-25 asn ipnetdb_asn_2025-09-25.mmdb
SHA256:7d5735038fa2f53b59adee7280ae48eaade3d5d1a915ddb4c9848ee84c716382
2025-09-24 asn ipnetdb_asn_2025-09-24.mmdb
SHA256:3a02b3bbd519d355fa5cab57226a595e233e2fddebdd132a3f2ba87a31b8488a
2025-09-24 prefix ipnetdb_prefix_2025-09-24.mmdb
SHA256:3714df3bd2751cf122336d67fa870c9869e35125d9b4855bdd5e483e730acc0f
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 prefix ipnetdb_prefix_2025-09-20.mmdb
SHA256:767bae0bf75a1c1bf1c8e2f2a169e6f11c00c46f4bd728a8527e55e372cc0bc5
2025-09-20 asn ipnetdb_asn_2025-09-20.mmdb
SHA256:168687717d1a6bc88ef71f6b008d3086d8fa27c38223bc3aef5713d3b361aaac
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 prefix ipnetdb_prefix_2025-09-16.mmdb
SHA256:2e231da9086028de4fa048d24ee5d791824389336294d55061586b1d898c023d
2025-09-16 asn ipnetdb_asn_2025-09-16.mmdb
SHA256:a2895118cc72808c927f1fd76ac92111e679a98e87b0b9ae7a3f6d6b40f3bd9e

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.