Looking Up IPv4 Blocks with WHOIS and RDAP
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
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.
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.
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.139Explicit 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.0Read 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
inetnumidentifies the address range;netnameanddescrhelp identify the listed network.- Resource type
Read
statusfirst to distinguish an allocation, end-network assignment, delegation or legacy registration.- Contacts and updates
admin-candtech-creference contacts;mnt-byidentifies the maintainer controlling record updates.
Status names are registry-specific. The following labels are RIPE examples:
| RIPE status | What it describes |
|---|---|
ALLOCATED PA | A member’s allocation, which can contain customer assignments |
ASSIGNED PA | An end-network assignment from provider-aggregatable space |
ASSIGNED PI | A provider-independent assignment; check its holder and agreement |
SUB-ALLOCATED PA | A delegation for further assignment |
LEGACY | A historical registration requiring its applicable service and transfer checks |
ARIN uses different names:
| ARIN NetType | What it describes |
|---|---|
Direct Allocation | Space issued to a provider for reassignment |
Direct Assignment | Space issued to an end user |
Reallocated | Space delegated to a downstream provider |
Reassigned | Space 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.
Provider allocation
/16
The covering record describes the block managed by the provider.
Downstream delegation
/22 inside the /16
A more specific record describes a delegated portion of the allocation.
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-cleading to anabuse-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
- How to get an ASN — request the identifier used for external routing