ASN & IP lookup.

Who is behind an IP address. Reverse DNS, the autonomous system announcing it, the prefix it sits in, the country it is registered to, and the registry's own RDAP record for the block. Works for IPv4, IPv6 and hostnames.

My IP

Results for 20.26.156.215 (resolved from github.com) JSON · text

20.26.156.215

VersionIPv4no reverse DNS
Origin ASAS8075MICROSOFT-CORP-MSN-AS-BLOCK - Microsoft Corporation, US
Prefix20.0.0.0/11as announced in BGP
CountryUSARIN · allocated 2017-10-18

Registry record ARIN via RDAP

Network
MSFT
Handle
NET-20-0-0-0-1
Range
20.0.0.0 → 20.31.255.255
Type
DIRECT ALLOCATION
registrant
Microsoft Corporation
One Microsoft Way, Redmond, WA, 98052, United States
administrative, technical
IPHostmaster IPHostmaster
One Microsoft Way, Redmond, WA, 20147, United States
technical
Microsoft Routing, Peering, and DNS
One Microsoft Way, Redmond, WA, 98052, United States
technical
Prachi Singh
1 Microsoft Way, Redmond, WA, 98052, United States
technical
Dawn Bedard
1 Redmond Way, Redmond, WA, 98052, United States
abuse
Microsoft Abuse Contact
One Microsoft Way, Redmond, WA, 98052, United States

Source: https://rdap.arin.net/registry/ip/20.26.156.215

About this tool

Three independent lookups run in parallel. Reverse DNS asks for the PTR record. Routing data (origin ASN, AS name, announced prefix, country and registry) comes from Team Cymru's DNS-based IP-to-ASN service, which reflects the live BGP table. The registry record is fetched over RDAP, the structured successor to WHOIS, and shows the network name, address range and the organisation and contacts on file at ARIN, RIPE, APNIC, LACNIC or AFRINIC. Hostnames are resolved first and the first address is used.

What is an ASN?

An autonomous system number identifies one network on the internet that runs its own routing policy: an ISP, a cloud provider, a large company, a university. Every public IP address is announced from some AS, and the AS is a far better answer to "who is this?" than the address alone. AS13335 is Cloudflare, AS15169 is Google, AS16509 is Amazon. The prefix is the block (such as 1.1.1.0/24) that the AS announces; the address you looked up is somewhere inside it.

What the lookup returns

FieldMeaning
Reverse DNSThe PTR record for the address. Mail servers and many services expect it to match the forward name.
Origin ASThe autonomous system currently announcing the prefix in BGP, and its registered name.
PrefixThe announced route containing the address. Useful for allow-listing a whole provider range rather than one address.
Country and registryThe country the block is registered to and which regional registry holds it. Registration country, not geolocation.
RDAP recordThe registry's network object: name, handle, exact range, type (allocated, assigned) and the organisation, abuse and technical contacts.

About the country

Country here is the registration country of the block, not a street-level geolocation. It is accurate for "which network and country does this belong to" and deliberately does not guess at cities. Private, loopback and reserved addresses are identified but have no public data.

Uses

Examples

From the command line

curl "kirkdiamond.com/tools/ipinfo?q=1.1.1.1" or add &format=json. To look up the records a name points to rather than who owns an address, use the DNS lookup.

Every parameter, the JSON field names, rate limits and ready-made CI checks are in the API and curl reference.