whois-gateway
whois-gateway copied to clipboard
Can't handle ranges
The tool currently can't handle ranges like: 62.145.192.0/19. Usually looking up 62.145.192.0 will show the information needed about the range.
Whois in general cannot handle IP ranges as far as I know. whois 8.0.0.0/8
returns "No match found for n + 8.0.0.0/8" on my Linux machine.
We might want to look into http://pwhois.org/ .
What I do normally when using this tool (or passing data to it from my tools) is to just strip off the CIDR, it's always given me what I needed anyhow.
It would be awesome if the tool did this automagically.
What I do normally when using this tool (or passing data to it from my tools) is to just strip off the CIDR, it's always given me what I needed anyhow.
It would be awesome if the tool did this automagically.
That is not entirely accurate. You are assuming the CIDR belongs to a single ASN but if it does not, you will run into issues.
For instance, at the time of this writing, 148.0.0.0/16 is composed of multiple ASNs; 148.0.0.0/18 belongs to Dominican Republic tel. comp., 148.64.0.0/19 is a Hong Kong-based range owned by Google, etc. So if you somehow start with 148.0.0.0/16 and just strip the /16
from it and run a WHOIS on 148.0.0.0 you will get a result that is not representative of the entire /16
range.