-
Notifications
You must be signed in to change notification settings - Fork 121
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
radb.net not returning CIDR data anymore #259
Comments
Please try the dev branch. Here is what I am seeing returned from RADB: |
Dev-branch does work and returns valid data. The only minor thing is, that RADb returns only top-level network information. IPinfo.io will return all the /24 networks summing up to /19. What I typically do, is combine the networks to get what RADb will return directly. So, this is a non-issue to me. Ultimately, I can use this version in my application. Thank you! |
I work for IPinfo, but I am an outsider to the project. Feel free to let me know if you have any questions about our data. I understand that we do return ASN CIDR data only in our paid tier API services, but to address this, we do have one of our free databases to assist. The IP to ASN free database does provide range-level information. The IP to ASN database is created with a combination of WHOIS and peering records from BGP, so it is as accurate as it can get. The challenge, however, is that ranges are aggregated to reduce the file size, so you will not get parent CIDR data if the CIDR ranges are neighboring. I would recommend playing with the database for a bit to see if it resolves the issues you are facing. Thanks! |
IPinfo.io has changed their policy. This change tightens web-UI usage, especially from library calls and removes ASN-queries from non-paid accounts. However, at same time they do publish ASN database as a CSV-file. I have implemented support for this in my own fork: https://github.com/HQJaTu/ipwhois/blob/ipinfo.io/ipwhois/asn.py#L84 |
I personally would not say "tighten," but we are looking for alternative solutions to some of the challenges we face. The idea is to provide a good set of free and high-quality data to the open-source community in the easiest way possible. If you look at the licensing terms for the free database, it is CC-BY-SA 4.0, which permits commercial usage and distribution with attribution to IPinfo. It is the most lenient licensing term for a free database, regardless of the superior accuracy you are getting. We are happy to support the open-source community and developers unconditionally, ensuring the data they receive is free and is unparallel in its quality. We do not actually have a monetization plan for open-source projects. Considering our free API has a rate limit and we charge for increasing rate limits, we launched a database that essentially now provides an infinite number of queries. |
I'll take a look at the DB and see if it is something I can add support for without distributing it. |
Feel free to incorporate a repo specific access token that downloads the database on the user's machine periodically. |
This is related to #239.
I created a version which would support optional data sources for AS-information, but the change was not approved.
Example of a data query:
My version, querying with chosen data source of ipinfo.io. When calling python3, I force to use my own modified ipwhois-library. Also there is change in 1 line of code, the one where I choose
asn_methods
as my version prefers to know against which source the HTTP-query is done:I still urge this multi-source option to be considered. When this worked last time against radb.net, it returned one (1) net for the above query. In above example, I'm omitting most of the reqonse, but reality is, for that query there are 64 CIDRs in response. Not 0. Not 1. Obviously, you can make 5 ASN-queries / day / IP-address on non-paid ipinfo.io API. This known limitation can be lifted by creating a paid account.
Please, reconsider my PR.
The text was updated successfully, but these errors were encountered: