IP到国家没有数据库
众所周知,有许多数据库可用于返回给定 IP 地址所在的国家/地区。我想知道那些数据库提供商如何获取这些信息?谁告诉他们这个 IP 地址位于该国家而不是另一个国家?是否有一个脚本可以解析这些 IP,或者他们是否从每个 ISP 获取许多数据库并将它们编译成一个?有人有主意吗?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这些数据库主要基于来自实际管理、分配和注册 IP 的五个 RIR 的信息地址空间。他们还管理指定区域内的自治系统 (AS) 号码。 RIR 包括:
此方法不适用完善并通过各种数据挖掘、数据库维护者之间的数据库合并以及其他方法(例如分析用户提交的数据)进行改进。
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.
我怀疑他们从 IANA 网站开始寻找地区编号机构,并在那里编译信息。
他们还有这个链接,其中包含 xml 格式的一些顶级信息: http://www.iana.org/assignments/ipv4-address-space/ipv4-address-space.xml
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