Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Counter
V2EX  ›  Linux

为什么 Dnsmasq 不缓存部分查询结果?

  •  
  •   Counter · Feb 25, 2016 · 3640 views
    This topic created in 3765 days ago, the information mentioned may be changed or developed.
    比如说连续执行 2 遍 dig s.ftimg.net
    第 2 遍的 Query time 不为 0,查询结果的 TTL 也都不为 0

    但连续执行 2 遍 dig google.com
    第 2 遍的 Query time 却是为 0 ,一般其它域名也是这样
    4 replies    2016-02-25 22:09:00 +08:00
    BOYPT
        1
    BOYPT  
       Feb 25, 2016
    Query time 为 0 不就说明缓存了么?楼主在做什么?
    Counter
        2
    Counter  
    OP
       Feb 25, 2016
    @BOYPT 前 2 行是异常的,不缓存,后 2 行是正常的,一般情况是有缓存的。这里想问的是为什么异常?
    styx
        3
    styx  
       Feb 25, 2016   ❤️ 1
    我测下来 dig s.ftimg.net , Query time ,第一次 1192msec ,第二次 1msec ,后面都是 1ms 。的确换别的域名一般都是 0 。我觉得这点好像跟 s.ftimg.net 的记录是个 CNAME 相关,因为 alias 了 3 次,每个都要查询一下,即使缓存了也会耗时一点
    bazingaterry
        4
    bazingaterry  
       Feb 25, 2016
    遇到同样的问题,关注!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3103 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:19 · PVG 20:19 · LAX 05:19 · JFK 08:19
    ♥ Do have faith in what you're doing.