Domains and infrastructure · Overview

IP addresses and ASNs: who an address belongs to, where it is and what it hosts

How to investigate an IP address with open sources: IPv4 and IPv6, regional registries and the RIPE NCC, autonomous systems and BGP, reverse lookup of hosted domains, geolocation and its limits, reputation, shared NAT and VPNs, personal data and obtaining subscriber data, tools, an example and documentation.

Every device communicating on the Internet uses an IP address, and every address belongs to a network: a telephone operator, a hosting provider, a university, a company. Those networks announce themselves to the rest of the Internet as autonomous systems, identified by a number, the ASN. Public registries say to whom a block of addresses was assigned, who announces it, and whom to write to when reporting abuse.

For an analyst the IP address is a bridge: from a phishing site to the provider hosting it, from a server to the other domains on it, from an email header to the network the message left from. But it is a bridge to cross with care: geolocation is often approximate, many users share the same address, VPNs and proxies hide the real origin, and tracing the person behind an address is possible only through the judicial authority.

5regional registries assigning IP addresses and autonomous system numbers worldwide
25 Nov 2019date the RIPE NCC ran out of free IPv4 addresses to assign in Europe and the Middle East
2016year the Court of Justice recognised that even a dynamic IP address can be personal data

What an address tells you

Block holder
The organisation to which the registry assigned the addresses.
Autonomous system
The network announcing the address on the Internet, with its number and name.
Network type
Home access, mobile network, hosting, CDN, university, company.
Abuse contact
The address for reporting attacks, spam and phishing.
Hosted domains
Other sites resolving to the same address.
Reputation
Presence on lists of spam, attacks or malware.

The address is usually obtained from DNS records, explained in DNS and subdomains, and links to domain registration data; for the basic entries see IP address and ASN.

IP addresses and ASNs

The pages of this topic

01 How it works

IP addresses and ASNs: how it works

How IP address allocation works: IPv4 and IPv6, IANA and regional registries, operators and assignees, autonomous systems and BGP announcements, dynamic addresses and shared NAT.

02 Technique

IP addresses and ASNs: technique

The technique for analysing an IP address: identification, querying the regional registry, ASN and prefix, reverse resolution and hosted domains, cautious geolocation, reputation, history, links.

03 Sources

IP addresses and ASNs: sources

The sources for IP address research: regional registry databases, BGP announcements, reverse resolution and passive DNS, geolocation databases, reputation lists, device search engines.

04 Tools

IP addresses and ASNs: tools

The tools for analysing IP addresses and autonomous systems: the whois command and RDAP, RIPEstat, BGP tools, IP information services, reverse domain lookup, reputation lists, graph tools.

05 Worked example

IP addresses and ASNs: guided example

A guided example on a bank phishing site: IP address, provider and autonomous system, other domains on the same server, reputation, abuse contact and reports.

06 Legal and ethical limits

IP addresses and ASNs: limits

The limits of IP address research: approximate geolocation, shared NAT, VPNs, proxies and Tor, CDNs, addresses reassigned over time, outdated registry data; personal data and obtaining subscriber data.

07 How to document

IP addresses and ASNs: how to document

How to document IP address research: registry responses with date, ASN and prefix, hosted domains with observation date, geolocation source, distinction between facts and clues.

08 FAQ

IP addresses and ASNs: frequently asked questions

Short answers to the most common questions about IP addresses and autonomous systems in open-source investigations.

↑