-
Notifications
You must be signed in to change notification settings - Fork 527
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
Provide CIDR block from whois? #40
Comments
Sure. Are there any freely available whois databases? Feel free to make a pull request. |
Hi, I'd like to help but I'm a bit confused by the question. A whois query gives contact and registrar information, status, dates, name servers, etc. I can get whois information from the whoapi if I know what I'm looking for. I ran a query there on google.com and found no mention of the word CIDR or an IP address or netmask. The same results on whois.net. Can you point to something specific I can pull? Here are the API results from whoapi: { |
If you request WHOIS for an IP address you get information about the the network the IP belongs to, e.g. subnet, AS, owner etc. I think that's what he meant by CIDR. |
I'm actually interested in this as well and might take a whack at doing this. Martin, I believe he meant IP to AS/ASN information as well. Although there is rDNS that people seem to forget about. The following links contain a crapload of ASN related data, with complete ASN databases available for free download: https://www.team-cymru.org/IP-ASN-mapping.html Another idea is a function to perform an rDNS lookup on the visitor IP address, if a record exists, if that record is not a generic ISP record, then perform regular WHOIS database lookup on the domain name returned. I run http://ipconfig.io/ so thanks, Martin. |
Yeah, I haven't had time since looking at it initially. See what you can do, I may not get time for another week or so. |
А могу я по номеру телефона вычислить владельца??? |
Thank you for this excellent service! What about adding whois info the discovered IP address? The use case is to create a AWS security groups dynamically based on where you're at. The CIDR field is what's needed ultimately.
The text was updated successfully, but these errors were encountered: