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

Feature request: IP to ASNum #12

Open
sajal opened this issue May 22, 2012 · 8 comments
Open

Feature request: IP to ASNum #12

sajal opened this issue May 22, 2012 · 8 comments

Comments

@sajal
Copy link

sajal commented May 22, 2012

Would be nice to be able to use this library to get AS numbers as well.

http://www.maxmind.com/app/asnum
http://geolite.maxmind.com/download/geoip/database/asnum/

@msimerson
Copy link

+1

1 similar comment
@ravibhoraskar
Copy link

+1

@bluesmoon
Copy link
Collaborator

Patches welcome. I don't have a personal need for this feature, and don't have the time to implement it correctly. I can code review and merge a patch if someone submits one.

@mariokonschake
Copy link

+1

@echiu64
Copy link
Contributor

echiu64 commented Dec 4, 2014

I don't think this is in the realm of geoip...

If you want to get AS numbers, just do a dns lookup (http://www.team-cymru.org/Services/ip-to-asn.html#dns). Should be trivial to do in any programming language.

@msimerson
Copy link

@echiu64, I agree, writing a ASN lookup module is SMOP and it's one I've already done. But doing DNS lookups for every incoming mail connection is not viable for any but the smallest of email systems. The DNS lookup services (I know of 4 available for ASN) often have query limits, impose connection latency, and not unlike DNSBLs, higher traffic sites are expected to use rsync or other protocols to maintain the databases locally. I have switched to using the maxmind GeoIP module for this very reason.

@echiu64
Copy link
Contributor

echiu64 commented Dec 4, 2014

Got it, it's just a matter of implementing it then. I still question if this is something that should be part of "node-geoip" or is this more of a addon to something larger than just geolocation. Looking up the ASN seems more of an "IP intelligence" app to me

@echiu64
Copy link
Contributor

echiu64 commented Dec 4, 2014

While not part of node-geoip, this python service would probably satisfy your requirement and vendor-free to boot (https://github.com/CIRCL/IP-ASN-history)

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

6 participants