Giter Site home page Giter Site logo

Comments (7)

secynic avatar secynic commented on May 22, 2024
  1. What do you mean retrieved? Each IP address in that range?

  2. Yes. Each inetnum/inet6num/NetRange starts a new section for parsing. Each one should be in the nets dict.

  3. Updated is calculated from changed/Updated/etc. You can see what it is looking for in the NIC_WHOIS dictionary. It seems from your report that there may be a bug. I will look in to this.

  4. This should be the case. I will check this.

I am working on the next update, and will include updates for any bugs i find from your input. Thanks.

from ipwhois.

chorsley avatar chorsley commented on May 22, 2024

Regarding point 1), I think @wal1ybot is referring to the fact that there are 3 AS CIDRs announced for this IP, but ipwhois returns only one of those back. e.g.:

>>> ipwhois.IPWhois("202.173.92.56").lookup()
{'asn': '23695',
 'asn_cidr': '202.173.92.0/22',
 'asn_country_code': 'ID',
...

It would be very useful to get all three AS CIDRs back here, in much the same way as we do for net_cidr. If Cymru's whois service is being used, which only seems to return a single AS CIDR, perhaps a new source of this data would be required?

Additionally, it seems that the asn_cidr that gets returned may occasionally change from query to query, in my experience (not often, but just enough to make comparisons difficult).

from ipwhois.

secynic avatar secynic commented on May 22, 2024

Understood. I do not know of a good/reliable Team Cymru alternative currently. Please tell me if you know of one.

If you can, please provide an example of the asn_cidr changing (screenshots preferably).

from ipwhois.

wallyw1 avatar wallyw1 commented on May 22, 2024

Sorry for my late reply.

Thanks @chorsley a lot to explain for me. So, @secynic, I didn't know any good alternative at this moment. If it is impossible to 'fix' it without an alternative, maybe I move (1) to another issue for later exploration?

from ipwhois.

secynic avatar secynic commented on May 22, 2024

I will fix whatever needs to be fixed per my above comments on questions 1-4. Since a more detailed alternative to Cymru may be a long term issue, please open a new issue for tracking that.

from ipwhois.

secynic avatar secynic commented on May 22, 2024

Ok, 3 & 4 were both related to the same issue. I updated the CIDR regex parsing for the NICs (except ARIN). That was a bug, and will be pushing fix soon.

from ipwhois.

secynic avatar secynic commented on May 22, 2024

Fixed in #52

from ipwhois.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.