Closed edugas closed 3 years ago
Hi @edugas,
Sorry for the late answer, temporarily swamped. I have been looking a way to solve this in the meanwhile. As you said, it looks like a bug of arin rdap that doesn't report comments for reassigned addresses (didn't look yet on 2620:1F:4000::).
I will contact arin, I hope they will fix it soon. In the meanwhile I'm working on a flag to use whois instead of rdap for arin.
Thanks again for reporting
Hi @edugas,
I fixed the issue for 2620:1F:4000:: and released a new version, it was a -stupid- bug related to how I was doing equality check of ipv6 addresses.
Also, I contacted ARIN for addressing the other issue in rdap. I tried to implement a workaround, and use whois directly instead of rdap api, but it was absolutely not feasible. Whois takes forever to answer compared to the api, a 15 min data download becomes 4+ hours.
Thanks again for discovering these bugs.
Cause: When you have a NetRange and you reassign this NetRange, the arin portal automatically creates a new nested NetRange covering the same prefix range. This causes an ambiguity, since whois will retrive the first matching NetRange (the parent) and RDAP the deeper NetRange (the nested one). Keep in mind they both cover the same prefix range. Apparently there is no way to change this behavior or to ask RDAP to get all NetRanges for a specific range.
Solution: Be aware of this behavior of the arin portal and always add the link to the geofeed file in the more nested NetRange for the reassigned prefixes.
This comment is for future reference. This was tested with @edugas and the issue can be closed.
I ran the binary for ARIN to validate the NetRanges for both AS1403 (as1403.net) and AS14086 (qix.ca) and there's a few missing.
Missing NetRange:
Looking up the first NetRange 64.58.32.0/20 using whois version 5.5.6 shows the Comment field:
Looking with ARIN's RDAP, can't see anything.
The common denominator for these NetRanges is they're reassigned. This is probably not an issue with your tool, but I hope there's a workaround for it.
For AS14086's NetRange 2620:1F:4000::/48, I don't have an explanation so far: