medk
medk

Reputation: 9529

IP to country without database

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

Answers (2)

Milan
Milan

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 :

  • African Network Information Centre (AfriNIC)
  • American Registry for Internet Numbers (ARIN)
  • Asia-Pacific Network Information Centre (APNIC)
  • Latin America and Caribbean Network Information Centre (LACNIC)
  • RIPE Network Coordination Centre (RIPE NCC)

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

Brad Mace
Brad Mace

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

Related Questions