Skip to content
Fresh IPv4 news just dropped — 🎉 see what you’re missing

Looking Up IPv4 Blocks with WHOIS and RDAP

Reviewed by Philippe Girard, RIR policy & compliance lead

WHOIS and the Registration Data Access Protocol (RDAP) expose IP registration records: the listed holder, resource type and contacts. Use them to find the responsible registry, then read the most specific relevant record. Registration and current network routing answer different questions.

Query the right registry

  1. Start with an address

    Query WHOIS or an RDAP bootstrap service. A first response may direct you to another registry.

    Result: You have a starting record or referral.

  2. Follow the registry referral

    Query the registry currently responsible for the block. A transfer can change where its record is held.

    Result: You are reading the authoritative registry’s response.

  3. Find the relevant range

    Read the record’s address range and look for a more specific assignment covering the address.

    Result: You know which record to investigate.

For service regions, see the regional registry references. A block’s original region does not necessarily identify its current registry.

A basic query:

whois 193.0.6.139

Explicit registry queries:

whois -h whois.ripe.net 193.0.6.139
whois -h whois.arin.net 199.71.0.1
whois -h whois.apnic.net 202.12.29.0

Read the record

This RIPE-style example highlights the fields to inspect; use the live response for the current values:

inetnum:        193.0.6.0 - 193.0.6.255
netname:        RIPE-NCC
descr:          RIPE Network Coordination Centre
country:        NL
admin-c:        BRD-RIPE
tech-c:         OPS4-RIPE
status:         ASSIGNED PA
mnt-by:         RIPE-NCC-MNT
Range and name

inetnum identifies the address range; netname and descr help identify the listed network.

Resource type

Read status first to distinguish an allocation, end-network assignment, delegation or legacy registration.

Contacts and updates

admin-c and tech-c reference contacts; mnt-by identifies the maintainer controlling record updates.

Status names are registry-specific. The following labels are RIPE examples:

RIPE statusWhat it describes
ALLOCATED PAA member’s allocation, which can contain customer assignments
ASSIGNED PAAn end-network assignment from provider-aggregatable space
ASSIGNED PIA provider-independent assignment; check its holder and agreement
SUB-ALLOCATED PAA delegation for further assignment
LEGACYA historical registration requiring its applicable service and transfer checks

ARIN uses different names:

ARIN NetTypeWhat it describes
Direct AllocationSpace issued to a provider for reassignment
Direct AssignmentSpace issued to an end user
ReallocatedSpace delegated to a downstream provider
ReassignedSpace assigned to an end customer

A covering provider allocation can be valid while a more specific object identifies the downstream assignment. Keep both when tracing the chain.

Query over RDAP

RDAP returns structured JSON over HTTPS. WHOIS is plain text and varies by registry; RDAP uses consistent structures and explicit entity roles.

curl -s https://rdap.arin.net/registry/ip/199.71.0.1 | jq .
curl -s https://rdap.db.ripe.net/ip/193.0.6.139 | jq .

If you do not know the registry, a bootstrap service can follow the referral:

curl -sL https://rdap.org/ip/193.0.6.139 | jq '.handle, .name, .country'

The official machine-readable bootstrap data is at https://data.iana.org/rdap/ipv4.json. Use that data when building your own resolver.

To inspect entities with the abuse role:

curl -sL https://rdap.org/ip/193.0.6.139 |
  jq -r '.. | objects | select(.roles? and (.roles | index("abuse"))) | .vcardArray'

Both protocols can be rate-limited. For large jobs, check the registry’s bulk-data service rather than issuing an unrestricted stream of queries.

Resolve answers that look contradictory

One address can match several records. This is an illustrative hierarchy, not three conflicting claims:

Smaller ranges can sit inside larger registered blocks.

  1. Provider allocation

    /16

    The covering record describes the block managed by the provider.

  2. Downstream delegation

    /22 inside the /16

    A more specific record describes a delegated portion of the allocation.

  3. End-network assignment

    /24 inside the /22

    Start the contact search at this most specific relevant record, then verify the listed contact and responsibility.

  • The registry is different from an old record

    Transfers and historical early-registration changes can move administration. Follow the current authoritative referral.

  • The holder name is historical

    Trace predecessor names and agreements using legacy-resource checks. A long-lived registration can still have stale contacts.

  • Registration and routing disagree

    The holder and announcing network can differ through delegation or leasing. Check the intended route origin, routing-registry records and route-origin authorizations; an announcement alone does not prove authority.

Find the contact that will respond

Report malicious traffic
Abuse

Look for the abuse role: for example abuse-c leading to an abuse-mailbox, or an ARIN abuse Point of Contact.

Investigate routing or filtering
Technical

Use the technical contact, such as tech-c, and verify that its mailbox is current.

Resolve a registration question
Administrative

Use the administrative contact, such as admin-c, for the organization or record concerned.

Start with the most specific relevant object; use the covering allocation when an appropriate downstream contact is unavailable. Maintain your own contacts using IPAM audit records.

Verify a block before a transfer

  • Match the holder and proposed source

    Explain a mismatch in legal names before relying on the offered block.

  • Check resource status and authority

    A legacy registration, independent assignment and provider assignment have different requirements. A provider’s end-user assignment does not itself authorize a holder transfer.

  • Review record history

    Question unexplained recent maintainer or holder changes and resolve any succession gap.

  • Check reserved space and routing separately

    Compare reserved and bogon ranges, route authorization and reputation. Registration is only one part of the check.

For IPv4 transaction support, preserve the lookup results alongside the legal evidence and registry decision.

Related

Frequently asked questions

What is the difference between WHOIS and RDAP?
WHOIS returns plain text on port 43, with formats that vary by registry. RDAP returns structured JSON over HTTPS with explicit entity roles. Both expose registry registration data; available fields and refresh times can differ.
Why do WHOIS lookups return different answers for the same address?
A response may refer you to another registry, or several covering and more-specific records may match the address. Follow the authoritative referral, then inspect the most specific relevant assignment and its listed contacts.
How do I find who to contact about abuse from an IP address?
Start with the abuse contact on the most specific relevant record. Depending on the registry, this may be an abuse-c reference to an abuse-mailbox or an abuse Point of Contact. Verify that it is current; use the covering allocation as a fallback when needed.
What does ALLOCATED PA mean in a RIPE record?
Provider Aggregatable space allocated by RIPE NCC to a member for onward assignment to its customers. Assignments from it appear as separate ASSIGNED PA objects, and the space cannot be taken to a different provider by the end user.
Can WHOIS data be trusted?
As a record of registration, mostly — registries maintain it and audit it. As a record of who operates the network today, less so. Records go stale, legacy blocks carry decades-old contacts, and current routing is a better indicator of who is using a block than registration is.
Last updated on