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

内容来源于 Stack Overflow,并遵循CC BY-SA 3.0许可协议进行翻译与使用

  • 回答 (1)
  • 关注 (0)
  • 查看 (27)

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

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

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

是的,我们可以自己编写这样的库,但我很难想象还没有人完成它。

提问于
用户回答回答于

其中,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.

所属标签

可能回答问题的人

  • 西风

    renzha.net · 站长 (已认证)

    7 粉丝1 提问9 回答
  • 四无君

    0 粉丝0 提问3 回答
  • 拉布拉多拉不多

    1 粉丝0 提问2 回答
  • 小书虫

    0 粉丝1 提问2 回答

扫码关注云+社区

领取腾讯云代金券