使用 WHOIS 批量验证域名
我在 C# 中创建了一个应用程序,它查找以 j .DE 结尾的虚拟域,然后应用程序的另一部分检查它们是否确实存在,虚拟域的数量约为 (40 ^ 63)。我可以成功地根据 WHOIS 检查它们,一切都很好。
问题是检查单个域需要一秒钟,而我的一生恐怕要花多长时间才能过滤所有(40^63)个域?
你有替代方案吗?
乌迈尔
I have created an application in C# that finds Dummy Domains that ends withj .DE and then another part of the application checks them whether they really exists, the dummy are about (40 ^ 63) in number. I can successfully check them against WHOIS and everything is fine.
The question is it is taking a second to check a single domain and I am afraid how longer it will take to filter all the (40 ^ 63) domains, my whole life?
Do you have alternative?
Umair
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是一个编程问题。如果您满足下载 whois 数据库的批量副本的要求,那么您可以简单地将整个数据库以某种快速查找格式加载到 RAM 中,也许是围绕缓存级别设计的 B+Tree,您将获得惊人的速度抬头。
whois 服务器会延迟查找,以防止像您这样的人运行大量自动查找。
这是通过为工作选择更好的算法来开始优化工作这一主题的变体。
This is not a programming question. If you meet the requirements to download a bulk copy of the whois databases, then you can simply load the entire database into RAM in a quick-lookup format of some sort, maybe B+Tree designed around caching levels, and you will have blazing fast lookup.
The whois servers impose delays on lookups to prevent people like you from running large numbers of automated lookups.
This is a variation on the theme of beginning your optimization effort by choosing a better algorithm for the job.