Skip to content
LIVCKPublic

About

Open catalog of internet providers and the signals that identify them: ASNs, host names, name servers, MX, SPF includes, HTTP headers and registrar IDs.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

providers

An open catalog of internet providers and the signals that identify them.

Who runs this IP address? Which CDN sits in front of this site? Who hosts the name servers and the mail of this domain, and where is it registered? The catalog answers these questions for more than 240 cloud and hosting companies, CDNs, DNS and mail providers, registrars and ISPs, from signals anyone can observe:

  • AS numbers and the registered holders of address blocks
  • host name suffixes (CNAME targets, platform subdomains) and reverse DNS names
  • name server and MX suffixes, SPF includes
  • HTTP response headers
  • IANA registrar IDs and registrar names

It is maintained by LIVCK, who use it in their monitoring product to show which provider a monitored service runs on. Additions and corrections are welcome, see CONTRIBUTING.md.

One file per provider

Every provider is one file in providers/, named after its id:

{
  "$schema": "../schema/provider.schema.json",
  "id": "hetzner",
  "name": "Hetzner",
  "company": "Hetzner Online GmbH",
  "country": "DE",
  "eu_operated": true,
  "categories": [
    "cloud",
    "hosting",
    "dns"
  ],
  "logo": "si:hetzner",
  "asns": [
    24940,
    212317,
    213230,
    215859
  ],
  "hosting": {
    "hostname_suffixes": [
      "your-server.de"
    ],
    "ptr_suffixes": [
      "static.hetzner.cloud",
      "your-server.de"
    ]
  },
  "dns": {
    "nameserver_suffixes": [
      "first-ns.de",
      "hetzner.com",
      "hetzner.de",
      "second-ns.com",
      "second-ns.de",
      "your-server.de"
    ]
  }
}
Field Meaning
id Stable slug, equal to the file name. Never renamed.
name, company Display name and legal name of the operating company.
country ISO 3166-1 alpha-2 code of the operating company.
eu_operated The operating company is domiciled in the EU, the EEA or Switzerland and runs the service from there. Left out when unknown. An EU region of a US cloud is not EU operated.
categories What the provider does. The first entry is the primary category.
logo si:<slug> (Simple Icons), logos:<id> (Iconify logos) or file:<name> in logos/.
asns Autonomous systems that announce the provider's address space.
holders Registered holders of address blocks that another network announces, such as a platform on AWS space.
hosting, cdn hostname_suffixes, ptr_suffixes, http_headers: where a site runs, and the CDN or reverse proxy in front of it.
dns nameserver_suffixes of the provider's name servers.
mail mx_suffixes and spf_includes.
registrar iana_ids and names as RDAP and WHOIS spell them.

A facet may carry a label when its product has a name of its own: the dns facet of AWS is labelled "Amazon Route 53", its cdn facet "Amazon CloudFront". schema/provider.schema.json describes every field for editors.

How matching works

  • Every signal belongs to exactly one provider. An AS, a holder, a suffix, a header test or a registrar ID that two entries claim fails the check, and a registrable domain belongs to one provider across all kinds of signals. Names and labels are unique, so that no entry can pass for another.
  • Suffixes match at a label boundary, and the longest wins. ns1.p201.dns.oraclecloud.net matches dns.oraclecloud.net, never cloud.net. No suffix may lie below another provider's suffix, and none may be a public suffix such as co.uk.
  • A name server suffix may carry one * in its first label, standing for letters, digits and hyphens: awsdns-*.com matches ns-1.awsdns-57.com.
  • Host name suffixes are names customers point at, never a provider's own corporate domain. status.example-hoster.com often runs on someone else's CDN, and the hoster's domain would name the wrong provider.
  • For a chain of names (the host, then its CNAME targets) the first name that matches wins: a shop on a platform stays with the platform when the platform's own CDN appears further down the chain.
  • Holders and registrar names match after folding case and punctuation (Vercel, Inc and VERCEL INC. are the same), SPF includes match exactly, and header values compare case-insensitively.

Use it

Go

go get github.com/livck/providers
cat := providers.Default() // the catalog embedded in the module

if p, ok := cat.ByASN(24940); ok {
	fmt.Println(p.Name) // Hetzner
}
if m, ok := cat.ByNameserver("ns-1997.awsdns-57.co.uk"); ok {
	fmt.Println(m.Name()) // Amazon Route 53
}
if m, ok := cat.ByHostnames("www.example.org", "example.netlify.app"); ok {
	fmt.Println(m.Provider.ID, m.Facet) // netlify hosting
}

JavaScript and TypeScript

npm install @livck/providers
import { byAsn, byNameserver } from '@livck/providers';
import { logo } from '@livck/providers/logos';

byNameserver('ns-1997.awsdns-57.co.uk')?.name; // "Amazon Route 53"
logo(byAsn(24940)); // { type: 'svg', viewBox: '0 0 24 24', body: '<path d="…"/>', monochrome: true, color: '#D50C2D' }

The npm package carries the same lookups as the Go package, tested against its answers, with TypeScript types and every logo resolved, Simple Icons and Iconify ones included, so a page can inline them without loading anything from elsewhere.

Any other language

Every release attaches providers.json, the whole catalog in one file. You can also read providers/*.json directly. PHP projects can install the repository with Composer: add {"type": "vcs", "url": "https://github.com/LIVCK/providers"} to repositories and require livck/providers.

Logos

file: logos live in logos/. SVG logos follow a strict allowlist (no scripts, styles, comments or external references), so they can be inlined into a page. si: and logos: refer to icons of Simple Icons and Iconify, whose npm packages sources.json pins by version and integrity. Logos are trademarks of their owners, see TRADEMARKS.md.

Checks

go run ./cmd/providers check    # every rule, offline
go run ./cmd/providers fmt      # rewrite files in canonical form
go run ./cmd/providers sources  # verify the pinned icon packages and every icon reference
go run ./cmd/providers asn providers/hetzner.json  # RDAP holder of every ASN, as Markdown
go test ./...

CI runs all of them on every pull request.

License

  • The code is licensed under the MIT License.
  • The data in providers/, schema/ and sources.json is licensed under CC BY 4.0. Please credit it as "Provider data: LIVCK providers catalog, https://github.com/LIVCK/providers, CC BY 4.0".
  • Names and logos of providers are trademarks of their owners and are not covered by either license, see TRADEMARKS.md.

About

Open catalog of internet providers and the signals that identify them: ASNs, host names, name servers, MX, SPF includes, HTTP headers and registrar IDs.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages