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 30th of January 2026.
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
2026-01-30 prefix ipnetdb_prefix_2026-01-30.mmdb
SHA256:01a8c765dc08a635c950eb760bf85c4c49624b24cff5aabbf1974b3dd7aeb756
2026-01-30 asn ipnetdb_asn_2026-01-30.mmdb
SHA256:de80f160a129ad639b7c0c21fac0d7351ebfe47a6812f25f921f18d06555e5aa
2026-01-29 prefix ipnetdb_prefix_2026-01-29.mmdb
SHA256:58bcd2e74f19c09e4eed5f30145a2165a624cfeddbc7450a241fc51fc5748268
2026-01-29 asn ipnetdb_asn_2026-01-29.mmdb
SHA256:509fc982b0c6ea371602982970eead4a96b031d82f736ce0e9c865b9b194a333
2026-01-28 asn ipnetdb_asn_2026-01-28.mmdb
SHA256:8e3220b323efad51365e75aea243b08e4ab3aab1b426c6a738809ca3257134d3
2026-01-28 prefix ipnetdb_prefix_2026-01-28.mmdb
SHA256:10d05e848ab2c12881fc5209718ef16ae149c95f3a8b1b5f34c29b4ee9dcc256
2026-01-27 asn ipnetdb_asn_2026-01-27.mmdb
SHA256:2d25099870c4c9f60c215ea113bc794dadd8fb82b33e74ec25eeccd088848fe6
2026-01-27 prefix ipnetdb_prefix_2026-01-27.mmdb
SHA256:cf27fc4031479ba79c237b36f8e218e1cf318742a123c0bb23b20d532fdaf008
2026-01-25 asn ipnetdb_asn_2026-01-25.mmdb
SHA256:ada3e541e8fcfe1de72a285bbfad105fece3e4b679b5f45d9d81130d63149d90
2026-01-25 prefix ipnetdb_prefix_2026-01-25.mmdb
SHA256:d5bc5a59857f6267d6b6ef5c41c53533d4e405aa0629586e94db8872f209b694
2026-01-24 prefix ipnetdb_prefix_2026-01-24.mmdb
SHA256:a1328ec8fda640213e39412264ed3b7fc91610b00b3c228440b081a3bb088173
2026-01-24 asn ipnetdb_asn_2026-01-24.mmdb
SHA256:4aa7cf0bfe95cd61182dab31d2473662a476f3a86284fd6bbcd7c5b4ea00411c
2026-01-23 asn ipnetdb_asn_2026-01-23.mmdb
SHA256:20216ada00e2a50504a5a98e2f123ef0121e06347dcfab9b9ed0529850e5cdd8
2026-01-23 prefix ipnetdb_prefix_2026-01-23.mmdb
SHA256:2944b3b2e235ec1c1257fbfc8cb8310b900cdbbe5bfa1d87e5d2de39ba3bf07c
2026-01-22 asn ipnetdb_asn_2026-01-22.mmdb
SHA256:d39cc54440432e20ca5a7cb4a0e734cd3d073940aeb90e666a4df406fdfa9a6a
2026-01-22 prefix ipnetdb_prefix_2026-01-22.mmdb
SHA256:10b2ea299f739706522bd26d020a974e132626bbb3f74b656cc79e2fea9d828f
2026-01-21 prefix ipnetdb_prefix_2026-01-21.mmdb
SHA256:4f9d8b0386935f19ab1fa7da6ba87f23fd2a2e5f90c92a7047f2d38ea70fe5f5
2026-01-21 asn ipnetdb_asn_2026-01-21.mmdb
SHA256:60e2923d75bfda37c8e0dc3d177b1431882b6e4dd758ef6bf2616a1b52fdca26
2026-01-20 asn ipnetdb_asn_2026-01-20.mmdb
SHA256:0b9468cbd37cb1fc0fbbe611500530d360789850ae176cf39ec9194ab161ca13
2026-01-20 prefix ipnetdb_prefix_2026-01-20.mmdb
SHA256:3f3099dd1643a90ff817edcf5235f1fd8d1f6a6958cac20da09f44a16f06896d
2026-01-19 prefix ipnetdb_prefix_2026-01-19.mmdb
SHA256:4338c5958ddf83e023a5c15b5ad60ec675e125a74f085b0854309620eced4a4f
2026-01-19 asn ipnetdb_asn_2026-01-19.mmdb
SHA256:95096315a98482e5ae14be8d7f83e4481a364f18d8910918e5a498eb3730c8ee
2026-01-18 prefix ipnetdb_prefix_2026-01-18.mmdb
SHA256:90b17e7e17a5f66c6afc515f92313ea3480e846751e6a9cd1e80724617c95e64
2026-01-18 asn ipnetdb_asn_2026-01-18.mmdb
SHA256:e078d81d27dd1ade9ced7c57e112afd06534078e9a422d68657c9e79d76289e5
2026-01-17 prefix ipnetdb_prefix_2026-01-17.mmdb
SHA256:5016001e29f1a2fa66f30c62993c946d8c0c2beb94c4e3e4d7be3e7bdcfade2a
2026-01-17 asn ipnetdb_asn_2026-01-17.mmdb
SHA256:ec07dc9ee93599c5818cd2bf389e1e1cf9c3c22a4fe7d8e066b67dadfacba86e
2026-01-16 asn ipnetdb_asn_2026-01-16.mmdb
SHA256:b833f232ae03bbae446a14fbd20a9b92fe02380a4866529fbaf50fad59404346
2026-01-16 prefix ipnetdb_prefix_2026-01-16.mmdb
SHA256:801a41ff09fc74a835f1fd04f27be9e65b3ac25659772c3c98bbf5a0488257b2
2026-01-15 asn ipnetdb_asn_2026-01-15.mmdb
SHA256:30f3acf8dc7308545a4b03f5915eff4cb667bf18145ff226adb9241f6fa2b340
2026-01-15 prefix ipnetdb_prefix_2026-01-15.mmdb
SHA256:69ba1c5e3070b90bd79d0a17eadd532c7c728d02cdc3c8de7e7a712669977007
2026-01-14 asn ipnetdb_asn_2026-01-14.mmdb
SHA256:b4babcadb693c2a4aa2ab78871e34d24469d4494d0a6104861eb9ab00af89af4
2026-01-14 prefix ipnetdb_prefix_2026-01-14.mmdb
SHA256:1ea033a5455d33d338619245f9fbe4408bb076f056930d7b9a91984d84c49ff0
2026-01-13 prefix ipnetdb_prefix_2026-01-13.mmdb
SHA256:ee1c316b4d9a6371351323d74cfcd385ac41a68111cdb298f00134e81e8aef07
2026-01-13 asn ipnetdb_asn_2026-01-13.mmdb
SHA256:ef875b0e5993d591c08ec105f154986387f561097bf0c920bda94976c51f9d3b
2026-01-12 prefix ipnetdb_prefix_2026-01-12.mmdb
SHA256:7a434d158c0a66fa2a1d93510fa2e61eaf80243729973ca63209c931e26a2454
2026-01-12 asn ipnetdb_asn_2026-01-12.mmdb
SHA256:4e22d9ae4fad3955ce16626528725da245b48c9385bb92c5ec59b2c82a6b8da1
2026-01-10 prefix ipnetdb_prefix_2026-01-10.mmdb
SHA256:5d1e630d1784d261c35ca90292f59152980a39c7be6f8316eea676a71d177c0a
2026-01-10 asn ipnetdb_asn_2026-01-10.mmdb
SHA256:431392bcf24c26bfc4ca5dc036e166ce0a6bf61027bfb1b8cd44606eac6f0062
2026-01-09 asn ipnetdb_asn_2026-01-09.mmdb
SHA256:3cf929418cf5d70901edf6f153941e76dd1074ecf84cb8f0ae77f7fb54f49dd8
2026-01-09 prefix ipnetdb_prefix_2026-01-09.mmdb
SHA256:0621848455579d1fd493171bd4b0fc53b495c18b48e79ce904d9b17574668880
2026-01-08 prefix ipnetdb_prefix_2026-01-08.mmdb
SHA256:15211fdd4174f51ac10162db27d4ba6c025bfee6c2df124503aaf31834d95dc9
2026-01-08 asn ipnetdb_asn_2026-01-08.mmdb
SHA256:884ecef6c4448fdbbc61b1e721b465204d302b4435e6a7ba1b855dd8386fd8a3
2026-01-07 prefix ipnetdb_prefix_2026-01-07.mmdb
SHA256:aa498523f1538f6d08182e11ccd1b90977f619e93cc7e1b4b191855d6ce89efa
2026-01-07 asn ipnetdb_asn_2026-01-07.mmdb
SHA256:7b2deddf55fc5756e7db3c8c058743e43d03973f4e7c9669b4f2d1ed1f650134
2026-01-05 prefix ipnetdb_prefix_2026-01-05.mmdb
SHA256:f7daa5ddb56275836d6538fd1da7ef8e4664d5c17f9d043b6360773c4efbc13a
2026-01-05 asn ipnetdb_asn_2026-01-05.mmdb
SHA256:0bcd9a5525a32c94b76175a8b136248fb6e5f049cf451e52457357ddf572d685
2026-01-04 asn ipnetdb_asn_2026-01-04.mmdb
SHA256:25db2a75ca599176b85d065970297d96065a5bdacfa9961b9a32824c2ea58a5b
2026-01-04 prefix ipnetdb_prefix_2026-01-04.mmdb
SHA256:51ec32cfcbfbfd864646b2976043ee53217b248b57f82ad821c4d73f529c786d
2026-01-03 prefix ipnetdb_prefix_2026-01-03.mmdb
SHA256:a14c7598abae8ef51abe237f38b9609bd80e21b0d5eb2bc9a86bae6785b4365c
2026-01-03 asn ipnetdb_asn_2026-01-03.mmdb
SHA256:624415620260a579728ffb7e5491cf81953f2de2f0417f75f61b28fa61f29d55
2026-01-02 asn ipnetdb_asn_2026-01-02.mmdb
SHA256:d5ce88b810a0a07d9fc2618dffb8bdc0e8cb3a685436801cfc01aa6a2f297fbf
2026-01-02 prefix ipnetdb_prefix_2026-01-02.mmdb
SHA256:afd768d976f0a846c1717e292eb6e390eee16b6082f248347046b704e6c044ff
2026-01-01 prefix ipnetdb_prefix_2026-01-01.mmdb
SHA256:cdf9ebe958217c91488f4d2e874df2a8ded738cf7d20323a848c66f842a73454
2026-01-01 asn ipnetdb_asn_2026-01-01.mmdb
SHA256:485b7cbd4ca184cb8cfa95733aaee21b793635a74d87d3710e65b1a2c921fb72

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.