云解析服务 DNS-如何使用Serving Stale提高自建DNS的解析成功率?:bind9开启Serving Stale

时间:2024-09-10 18:56:49

bind9开启Serving Stale

bind9支持版本:9.16.3及以上

  • 配置文件:named.conf
  • 配置位置:options
  • 配置项说明

    配置项

    默认值

    建议值

    功能说明

    stale-cache-enable

    no

    yes

    启用缓存保持功能。

    stale-answer-enable

    stale-answer-enable

    yes

    启用stale-cache来应答。

    max-stale-ttl

    1day

    1day

    stale-cache缓存保持多长时间。

    stale-refresh-time

    30s

    30s

    bind刷新stale-cache的时间间隔,即多长时间向权威DNS请求一次,并刷新缓存。

    stale-answer-ttl

    30s

    30s

    使用stale-cache回复response时,报文中的TTL值。

  • 配置样例:
    options {
        stale-cache-enable yes;
        stale-answer-enable yes;
    };
support.huaweicloud.com/dns_faq/dns_faq_140321.html