# Domain IP Ranges: a company's IP ranges, looked up by domain

Domain IP Ranges lists every IP range an organization owns or uses, keyed by its domain: 8,388,431 ranges over 442,592 domains in its November 13 build.

[Domain IP Ranges](https://internetdata.io/databases/domain-ip-ranges) is out, under Ownership: every IPv4 and IPv6 range an organization owns or uses, one CIDR per row, keyed by the organization's own domain, with the name and country registered for each range. Its November 13 build held 8,388,431 ranges over 442,592 domains, covering 3,563,603,347 IPv4 addresses. A second file, Domain IP Ranges Alias, leads a company's other domains to the one its ranges are listed under.

## One range per row

Five rows of the sample on its database page, as the file has them:

```
range,domain,name,country
56.155.0.0/16,amazon.com,Amazon Data Services Osaka,JP
2001:1890:1c12:9600::/55,apple.com,APPLE INC,US
139.15.0.0/16,bosch.com,Robert Bosch Gesellschaft mit Beschraenkter Haftung,DE
170.149.0.0/17,nytimes.com,The New York Times Company,US
97.67.74.80/29,nytimes.com,The New York Times Inc,US
```

`domain` is the same on every row of an organization's ranges. `name` and `country` are what's registered for that one range: the company, or a subsidiary or office under its own name, as with amazon.com's Osaka range. No address is in two rows.

It works the other way from [IP Company](https://internetdata.io/databases/ip-company), which gives the organization behind each range.

## nytimes.com: 25 ranges, nine spellings

nytimes.com had 25 ranges, all IPv4, 61,638 addresses. Eight are The New York Times Company's own allocation, 61,440 addresses: seven ranges in 170.149, from a `/17` down to `/23`s, and `199.181.172.0/22`. The other 17 are blocks of 2 to 32 addresses, `/27` to `/31`, that its ISPs assigned to it, 198 addresses in all. Each carries the name as it was registered, so the one domain gathers nine spellings, from `The New York Times Company` to `NEW YORK TIMES COMPANY, THE` and `New York Times The`.

The domain pages on internetdata.io show a domain's largest 100 ranges, as on [nytimes.com](https://internetdata.io/nytimes.com).

## From one range to 854,640

| Ranges | Domains |
|---|---:|
| 1 | 168,701 (38.1%) |
| 2 to 10 | 238,756 (53.9%) |
| 11 to 100 | 30,938 (7.0%) |
| 101 to 1,000 | 3,630 (0.8%) |
| More than 1,000 | 567 (0.1%) |

ISPs hold the longest lists. A block an ISP assigned to a customer is that customer's row, so the ISP's own space comes in pieces: att.com had 854,640 ranges and 108,834,737 IPv4 addresses. amazon.com had 178,441,972 IPv4 addresses in 16,808 ranges.

## Aliases: times.com to nytimes.com

Domain IP Ranges Alias lists domains whose home page redirects to the home page of a domain in Domain IP Ranges, with that domain beside it. The November 13 build had 69,759, pointing to 17,414 domains. `times.com` points to nytimes.com, and so do 38 more, among them `nyti.ms`, `nytcooking.com` and `thenewyorktimes.com`. To find a company's ranges from any of its domains, read the alias file first, then Domain IP Ranges under the domain it gives.

## In the lookup API

On a paid plan, the [lookup API](https://internetdata.io/api)'s domain lookup answers with the organization's ranges under `ip_ranges`, up to 1,000, IPv4 first and the largest first, with `total` counting every range and `ipv4` every IPv4 address in them. It reads the alias file for you, and a subdomain gets its domain's: `www.nytimes.com` answers with nytimes.com's ranges. `GET https://api.internetdata.io/domain/times.com`, trimmed to the first two of its 25 ranges:

```json
{
  "domain": "times.com",
  "ip_ranges": {
    "domain": "nytimes.com",
    "redirects_to": "nytimes.com",
    "total": 25,
    "ipv4": 61638,
    "ranges": [
      {
        "range": "170.149.0.0/17",
        "name": "The New York Times Company",
        "country": "US"
      },
      {
        "range": "170.149.128.0/18",
        "name": "The New York Times Company",
        "country": "US"
      }
    ]
  }
}
```

## Getting access

Domain IP Ranges ships as gzipped CSV, rebuilt daily, and its [docs](https://docs.internetdata.io/database/domain-ip-ranges/domain-ip-ranges) have both files' schemas. [Sign up](https://app.internetdata.io/auth/signup) to evaluate it from its sample. A license is per database and never metered: see [licensing](https://internetdata.io/pricing), or [talk to us](https://internetdata.io/contact) about what you need.

