寻找快速缓存DNS解析器(服务器或库)

时间:2018-06-04 18:21:22

标签: dns

我需要在每日基础上获取大量IP的反向DNS。有些IP会在每天多次出现。我希望在24小时内获得rDNS值,包括“没有记录”和“#39;响应。

我正在寻找允许我的软件(或库):

  • 忽略权威TTL
  • 缓存'没有记录'响应(对于我指定的TTL)。

是的,我们可以自己编写这样的库,但我很难想象还没有人完成它。然而......找不到一个。

1 个答案:

答案 0 :(得分:1)

其中,unbound可以做到。

请参阅其手册(https://www.nlnetlabs.nl/documentation/unbound/unbound.conf/)以下内容:

   cache-max-ttl: <seconds>
          Time to live maximum for  RRsets  and  messages  in  the  cache.
          Default  is  86400  seconds  (1  day).  If the maximum kicks in,
          responses to clients still get decrementing TTLs  based  on  the
          original  (larger)  values.   When the internal TTL expires, the
          cache item has expired.  Can be set lower to force the  resolver
          to query for data often, and not trust (very large) TTL values.

   cache-min-ttl: <seconds>
          Time  to  live  minimum  for  RRsets  and messages in the cache.
          Default is 0.  If the minimum kicks in, the data is  cached  for
          longer than the domain owner intended, and thus less queries are
          made to look up the data.  Zero makes sure the data in the cache
          is  as the domain owner intended, higher values, especially more
          than an hour or so, can lead to trouble as the data in the cache
          does not match up with the actual data any more.

   cache-max-negative-ttl: <seconds>
          Time to live maximum for negative responses, these have a SOA in
          the authority section that is limited in time.  Default is 3600.
          This applies to nxdomain and nodata answers.

PS:你的问题将是关于SoftwareRecommandations的最重要的问题,因为它不是真正的编程问题(或者至少在你决定自己编写这样的软件之前)