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

Can't handle ranges #6

Open
mbch331 opened this issue May 1, 2016 · 3 comments
Open

Can't handle ranges #6

mbch331 opened this issue May 1, 2016 · 3 comments

Comments

@mbch331
Copy link

mbch331 commented May 1, 2016

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.

@whym
Copy link
Owner

whym commented Jun 27, 2016

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/ .

@SQL-enwiki
Copy link

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.

@Huji
Copy link

Huji commented Apr 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants