首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >寻找快速缓存DNS解析器(服务器或库)

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

Stack Overflow用户
提问于 2018-06-05 02:21:22
回答 1查看 177关注 0票数 -1

我需要获得每日基础上的大量IP反向DNS。一些IP每天会来很多次。我想捕获24小时的rDNS值,包括“无记录”响应。

我正在寻找软件(或库),使我能够:

  • 忽略权威的TTL
  • 缓存‘无记录’响应(对于我指定的TTL)。

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-05 02:42:40

其中,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上会比这里更热门,因为它不是真正的编程问题(或者至少在你决定自己编写这样的软件之前)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50686589

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档