Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDAP IP Networks #250

Open
Skybound1 opened this issue Jan 15, 2020 · 1 comment
Open

RDAP IP Networks #250

Skybound1 opened this issue Jan 15, 2020 · 1 comment
Assignees
Milestone

Comments

@Skybound1
Copy link

When performing RDAP IP Whois, the library enforces the use of an IP address. However, there are cases where it is useful to also provide details of the range we are interested in. For example, querying RDAP for 8.8.8.8 would return information regarding the encompassing /24, however if we wanted information for the encompassing /9, we would need to provide a network size. This appears to be supported at least within ARIN:

IP Networks
Queries for information about IP networks are of the form:

<rdap-url>/ip/<search-term> or /ip/<address>/<prefix>

where the path segment following ip is either an IPv4 dotted decimal or IPv6 [RFC5952] address (i.e., 2001:500:11::) or an IPv4 or IPv6 Classless Inter-domain Routing (CIDR) [RFC4632] notation address block (i.e., 12.0.0.0/8).

Query Examples

https://rdap.arin.net/bootstrap/ip/2001:500:11:: https://rdap.arin.net/bootstrap/ip/12.0.0.0/8

Example queries:

https://rdap.arin.net/registry/ip/8.8.8.8/16
https://rdap.arin.net/registry/ip/8.8.8.8

Could we get a way to provide this extra bit of information, for example a flag into IPWhois.lookup_rdap

@secynic secynic self-assigned this Mar 4, 2020
@secynic
Copy link
Owner

secynic commented Mar 4, 2020

Requested changes in the PR. Still need to test this to make sure it doesn't cause errors in other parts of the lib.

@secynic secynic added this to the 1.3.0 milestone Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants