Thanks very much for swiftly responding to my request for this tutorial and apologies for not responding sooner
My pleasure, Steve. The community is all about developers like you. I am happy to help
ASN data to determine the IP ranges for an AS until working with AS13238 which only returned 2 ipv4 ranges when I was expecting around 15
There is a reason for that. The IP database we have “aggregates” IP ranges to reduce the size the database file.
Here is another post, I just wrote for you: Understanding Range Aggregation in IPinfo's IP Databases
P.S.: The article is a bit rushed, so please let me know if you see any typos or if I am not explaining the issue well.
I also set up a cron job to run a script to download the databases daily which fails on the call to “/usr/local/bin/ipinfo download asn -f mmdb” with the error “err: gzip: invalid header”. It works fine when the script is called from the terminal but I couldn’t resolve when running via cron!
It could be a CLI-related issue. I have opened an internal ticket. For now, please use the storage URI directly, it should work well with cron.
curl -L https://ipinfo.io/data/free/asn.mmdb?token=$TOKEN -o asn.mmdb
Let me know if you have any more questions! I am always happy to help.