0

I'm writing a program which gathers basic CNAME information for given domains.
I'm currently using Google's DNS server as the one I'm questioning, but afraid that if I'll send couple of millions DNS lookups this will get me blocked (Don't worry, it's by no means any type of DDOS or anything in that area).

I'm wondering 2 things.
1. is it possible to use dnspython package to send requests through proxy servers? this way I can distribute my requests through several proxies.

2. I couldn't find a reference for a similar thing, but is it possible that I'll get blocked for so many DNS lookups?

Thanks,
Meny

4

1 回答 1

0

如果 Google 阻止了来自给定 IP 地址的该数量的请求,则必须假设发送如此数量的请求违​​反了他们的使用政策(无疑是一种“不公平使用”形式)。因此,将您的源 IP 隐藏在代理后面是不道德的。

您可以通过以下方式采取更合乎道德的方法:

  1. 将您的请求分发到多个公共 DNS 服务器(搜索“公共 DNS 服务器”,有 8 或 9 个提供商,每个提供商至少有 2 个服务器),从而减少每台服务器的请求数量。

  2. 在合理的时间段内传播您的请求,以限制查询可能对各个提供商的 DNS 服务器产生的影响。或者只是将您的查询率限制在合理的范围内。

  3. 如果您的请求涵盖多个不同的域,请执行您自己的递归解析,以便您的大部分请求针对权威服务器而不是公共递归服务器。这样,您将针对公共服务器(即 NS 查询)解析域的权威服务器,但针对权威服务器本身解析 CNAME 查询,从而进一步分散负载。

并且没有 DNS 代理之类的东西(除了接受它不具有权威性的递归查询的 DNS 服务器)。

于 2014-02-27T16:32:45.913 回答