Reputation: 9529
As we all know, there are many databases that can be used to return the country from a given IP address. I'm wondering about how do those database providers get these info from? who tells them that this IP address is located in that country and not another? is there a script that resolves these IPs or do they get many databases from every ISP and compile them into one? anyone has an idea?
Thanks
Upvotes: 5
Views: 849
Reputation: 15849
Those databases are based primary on the information from the five RIRs that actually manage, allocate and register the ip addresses space. They also manage Autonomous System (AS) numbers within a defined region. The RIRs are :
This method is not perfect and is improved by various datamining, database merging between database maintainers and other methods such as analysis of user submitted data.
Upvotes: 6
Reputation: 27886
I suspect they start at the IANA site to find the regional numbering authorities and work there way down to compile the info.
They also have this link which contains some top level info in xml format: http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xml
Upvotes: 1