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 25th of November 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-11-25 prefix ipnetdb_prefix_2025-11-25.mmdb
SHA256:acd4ca0cefc22ec6a658c99ea696537bdd00ad422ed841bff6d7b3a341a5b6cc
2025-11-25 asn ipnetdb_asn_2025-11-25.mmdb
SHA256:01e0fd20a3f0565b98f7877c06ddfd640a591c2513b49b419ecd7309fb8ae453
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 prefix ipnetdb_prefix_2025-11-23.mmdb
SHA256:08957c05cd9216cf292ad11bf4d98ee10d3371d48d301e7ab6f45ce7b40a30c5
2025-11-23 asn ipnetdb_asn_2025-11-23.mmdb
SHA256:324df0f9497b3056c3682b9aab816e5137488023b0c60482e316f840405ceac3
2025-11-22 asn ipnetdb_asn_2025-11-22.mmdb
SHA256:0a2578e381fc1fa429d6070a718576bfb04a2a98436051df7b7502c0ab709d0a
2025-11-22 prefix ipnetdb_prefix_2025-11-22.mmdb
SHA256:afed9b54785b8a40e31f0ca09e73a789c3c2d90aad6611658d40662940d9c693
2025-11-21 prefix ipnetdb_prefix_2025-11-21.mmdb
SHA256:0018244b8e83d4384acaa3e8ec6092e7796e9af2a7f33c7b133680f383e98a30
2025-11-21 asn ipnetdb_asn_2025-11-21.mmdb
SHA256:d7090bc6828591cd292686b7af3fa82d5f7beb2a490ad000479e1eb7c4327c75
2025-11-20 prefix ipnetdb_prefix_2025-11-20.mmdb
SHA256:dd215a366dc30017c76111aa3cf67069469d62e1d98bd38a462bc8576449438c
2025-11-20 asn ipnetdb_asn_2025-11-20.mmdb
SHA256:8a7871099a526ba8e355794caf6899647444e204c3d6cea416373352928e8203
2025-11-19 prefix ipnetdb_prefix_2025-11-19.mmdb
SHA256:04328c9924386a407afcc9243d4df2345ffa1af5f79eb5f04f5783f49b3534f2
2025-11-19 asn ipnetdb_asn_2025-11-19.mmdb
SHA256:62c99143574b2e8b88d31eaf386d088ec6eba6ec9136d50f0175aa43679ceae9
2025-11-18 asn ipnetdb_asn_2025-11-18.mmdb
SHA256:9be9ed3ff022d57674aa593dd45f787a71ee250f4b7f98396ea84073af9c49b2
2025-11-18 prefix ipnetdb_prefix_2025-11-18.mmdb
SHA256:9de7b7a86e64477cacfb945711ca17a9703815cb515b16bf53bd94b55f5a3a75
2025-11-17 prefix ipnetdb_prefix_2025-11-17.mmdb
SHA256:7ed2d4610c75791b210a5be2f4d84887f7d337c04cc7d97a8a626549eafab896
2025-11-17 asn ipnetdb_asn_2025-11-17.mmdb
SHA256:1fa53215787bca27d36627f86d5f2c5c2daacaca0ffff4abdb15e3de1ee174ec
2025-11-16 asn ipnetdb_asn_2025-11-16.mmdb
SHA256:700bd1d59431eb9af1b2b840c499d2e3bd82ea3c8027433fdb8e0981928ed054
2025-11-16 prefix ipnetdb_prefix_2025-11-16.mmdb
SHA256:f4ae21efd8d2f8cf8b0714dcf4fd4c36d3110a61e0f19bb3d05f029e1e4bb05a
2025-11-15 asn ipnetdb_asn_2025-11-15.mmdb
SHA256:5ee81f98f5b4ee66b0d4e8c806698f7d4f0ea8bf1f312d6977bfe4c4b4fa1130
2025-11-15 prefix ipnetdb_prefix_2025-11-15.mmdb
SHA256:f2b18306de85ae8c8d12b1b786bea4244514cc9356422d15a8d5ab2a8f3f5ef9
2025-11-14 asn ipnetdb_asn_2025-11-14.mmdb
SHA256:5b0354f391c6641915377611b9680edf6c9e0507c0b279e1366d73c617f64647
2025-11-14 prefix ipnetdb_prefix_2025-11-14.mmdb
SHA256:5bb10e6040ecbd843d594bdfc04ceeb36cc848989930a9651b72b7bfd4ff8907
2025-11-13 asn ipnetdb_asn_2025-11-13.mmdb
SHA256:845a0841e2ff7a7cc51d2ce02cfc75e3935d5591589a8139f3a1360de303bc2e
2025-11-13 prefix ipnetdb_prefix_2025-11-13.mmdb
SHA256:80fd5974bee91d83334803a0204b5188a6536c4ea01a8bfc9c9fb95cf15d625a
2025-11-12 asn ipnetdb_asn_2025-11-12.mmdb
SHA256:14baf0d67511b0f7a96557ec24f4541e85d317da20345337224df6d4cf7ea258
2025-11-12 prefix ipnetdb_prefix_2025-11-12.mmdb
SHA256:09020d49f58179832f922748c53af8e875e89b556d88214640c9bb18e8b9b74d
2025-11-11 prefix ipnetdb_prefix_2025-11-11.mmdb
SHA256:27a199074967ec8a13f7f15ace22390c78c031d70dd9dcbdf3f7b23de77b325b
2025-11-11 asn ipnetdb_asn_2025-11-11.mmdb
SHA256:376baf8a3db3c963bf60cc9d0fb17e3396ed8b9994b5a6a5ba4b9cb87f725d26
2025-11-10 prefix ipnetdb_prefix_2025-11-10.mmdb
SHA256:a6f307517ea0015ff5ec133ca56ce8ad143931d9b6c69c97cb622e79448a9cc5
2025-11-10 asn ipnetdb_asn_2025-11-10.mmdb
SHA256:56bc6c77f103ec92978b898e423c018a38ba40d408e78e7268910e29ff48c3b7
2025-11-09 asn ipnetdb_asn_2025-11-09.mmdb
SHA256:99512a51b852ca9ab8c4d8fbbc32ded5e81136b268a230fd293596d53c6fe4c0
2025-11-09 prefix ipnetdb_prefix_2025-11-09.mmdb
SHA256:99aa05e8b8d281325ed5f06a59e36b9a5f1a7d5a51f70f48154104a1d531be11
2025-11-08 prefix ipnetdb_prefix_2025-11-08.mmdb
SHA256:f32dac75c3e890647acb7808163159b7e0fe7a775f80f123fbfb0c0ffb7282b7
2025-11-08 asn ipnetdb_asn_2025-11-08.mmdb
SHA256:660e43217741f0147a8af2141ca220f3979865f8952897c4cfc9c405d3b17a47
2025-11-07 asn ipnetdb_asn_2025-11-07.mmdb
SHA256:37485240eaea5861bc0a0033c261475ec5b2269d90b34a982a784b4fd7652c69
2025-11-07 prefix ipnetdb_prefix_2025-11-07.mmdb
SHA256:2db134595608970942de37018395ea91f1fc72a680980689b15d73b565895da0
2025-11-06 prefix ipnetdb_prefix_2025-11-06.mmdb
SHA256:9c9a1755de607271eda0efdc432a52a38bcc3e7155eb4184ebefdb2682b7dcd2
2025-11-06 asn ipnetdb_asn_2025-11-06.mmdb
SHA256:9a499fe208a015d80bd7a0b4a61130ec148a46793bb43af4ab91422b89f074a5
2025-11-05 asn ipnetdb_asn_2025-11-05.mmdb
SHA256:355c36517038b6667e80a1ff5eef3d539fcee99b2200b2ae294383312c793320
2025-11-05 prefix ipnetdb_prefix_2025-11-05.mmdb
SHA256:60e6349bb94f936734eb0933ed11a281815aecef97c7f57d7c1f966e804726d3
2025-11-04 asn ipnetdb_asn_2025-11-04.mmdb
SHA256:c7e784bb44d73dcad66c382c80444867e6389a4e04084af5ca5ba515d624590f
2025-11-04 prefix ipnetdb_prefix_2025-11-04.mmdb
SHA256:2b4d44a233487b61200ff4b6893831c390ebefa79f652c9f3ed4b81eb8879df4
2025-11-03 prefix ipnetdb_prefix_2025-11-03.mmdb
SHA256:23babcd47ea647134eb261978ff0bf2c78ea2b5964b3bc55b4b947fbc3bfd729
2025-11-03 asn ipnetdb_asn_2025-11-03.mmdb
SHA256:332512237f4aa202199e9d64d3f21965025c8748cfa0cd1ddc1cedcbf73924d6
2025-11-02 asn ipnetdb_asn_2025-11-02.mmdb
SHA256:38b2541a353f44b9e67d1d480c8e3897b24153d844182331e05b30c6399f1c94
2025-11-02 prefix ipnetdb_prefix_2025-11-02.mmdb
SHA256:dc0e34ade6d15862740ae3cd1452f18c21b9db4221613a5203bc5bdf7f35b874
2025-11-01 prefix ipnetdb_prefix_2025-11-01.mmdb
SHA256:98eacca6dac634328f73bbe56b355605c1de8b7ea45764dbb23e593df86928cf
2025-11-01 asn ipnetdb_asn_2025-11-01.mmdb
SHA256:8002ca77326c302be45771bb82fe7818db9799ac1e7d750609864d2bc9a1ccaa
2025-10-31 asn ipnetdb_asn_2025-10-31.mmdb
SHA256:947c31143f50f01c7e9ee580b1a6a70a1126d6966ea68ccd329bddc9bb57fe9f
2025-10-31 prefix ipnetdb_prefix_2025-10-31.mmdb
SHA256:cb4c52c7027989a6b3fc15524ff063a4c236edd77b36a639204ef222ccb0c260
2025-10-30 prefix ipnetdb_prefix_2025-10-30.mmdb
SHA256:9188c87d52fd6d5cb1419c6701769cae3f04bcc251d6ac76ea043d218d1b6502
2025-10-30 asn ipnetdb_asn_2025-10-30.mmdb
SHA256:3422fb40c1b3e9e72be4ac55084ddf8e1aa3d0d6fd5fb0ba81cf1fa9ead91f01
2025-10-29 prefix ipnetdb_prefix_2025-10-29.mmdb
SHA256:8c331c2fc826f254008ca13d5f9c7b2d4779f20ca6978b8609d75bdcfbae0522
2025-10-29 asn ipnetdb_asn_2025-10-29.mmdb
SHA256:79895df1b0b50895cf855e8e9d40e39191913b8c64594da7cffb83f38ef25fcc
2025-10-28 asn ipnetdb_asn_2025-10-28.mmdb
SHA256:8e23aaa495a879ed91ea6e523339573c421db6c073fc071a0b15a1ee9747b578
2025-10-28 prefix ipnetdb_prefix_2025-10-28.mmdb
SHA256:8b6f0a8b164f92350d4be56d30295705be2dac6510d27be5454f5b068275e9c8

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.