Microsoft 2003 DNS有时在其TTL过期时无法查询某些A指针

警告长问题:)

我们有一台带有DNS服务器的Win 2003服务器,有时它不能为我们提供特定域的一些A指针。

我正在运行一个小脚本,该脚本要求相关域的SOA,NS和A记录,有时TTL过期时,DNS无法再次获取A记录,因此清除缓存可解决此问题。

看一看

TTL过期后,它在这里起作用

Thu Apr 29 15:24:20 METDST 2010
dig basefarm.net soa
    basefarm.net.           64908   IN      SOA     ns01.osl.basefarm.net. hostmaster.basefarm.net. 2010042613 86400 3600 2419200 600
    ns01.osl.basefarm.net.  299     IN      A       81.93.160.4
dig basefarm.net ns
    basefarm.net.           64908   IN      NS      ns01.sth.basefarm.net.
    basefarm.net.           64908   IN      NS      ns01.osl.basefarm.net.
    ns01.sth.basefarm.net.  299     IN      A       80.76.149.76
    ns01.osl.basefarm.net.  299     IN      A       81.93.160.4
dig ns01.sth.basefarm.net a
    ns01.sth.basefarm.net.  299     IN      A       80.76.149.76

ns01.sth.basefarm.net和ns01.osl.basefarm.net的TTL过期,但DNS设法获得了新值(TTL 3600)

Thu Apr 29 15:29:20 METDST 2010
dig basefarm.net soa
    basefarm.net.           64608   IN      SOA     ns01.osl.basefarm.net. hostmaster.basefarm.net. 2010042613 86400 3600 2419200 600
    ns01.osl.basefarm.net.  3600    IN      A       81.93.160.4
dig basefarm.net ns
    basefarm.net.           64608   IN      NS      ns01.sth.basefarm.net.
    basefarm.net.           64608   IN      NS      ns01.osl.basefarm.net.
    ns01.sth.basefarm.net.  3600    IN      A       80.76.149.76
    ns01.osl.basefarm.net.  3600    IN      A       81.93.160.4
dig ns01.sth.basefarm.net a
    ns01.sth.basefarm.net.  3600    IN      A       80.76.149.76

但是又一次失败了,我们需要清除dns缓存以使其重新开始工作...

Thu Apr 29 17:24:23 METDST 2010
dig basefarm.net soa
    basefarm.net.           57705   IN      SOA     ns01.osl.basefarm.net. hostmaster.basefarm.net. 2010042613 86400 3600 2419200 600
    ns01.osl.basefarm.net.  299     IN      A       81.93.160.4
dig basefarm.net ns
    basefarm.net.           57705   IN      NS      ns01.sth.basefarm.net.
    basefarm.net.           57705   IN      NS      ns01.osl.basefarm.net.
    ns01.sth.basefarm.net.  299     IN      A       80.76.149.76
    ns01.osl.basefarm.net.  299     IN      A       81.93.160.4
dig ns01.sth.basefarm.net a
    ns01.sth.basefarm.net.  299     IN      A       80.76.149.76

TTL到期,但DNS无法获取ns01.sth.basefarm.net和ns01.osl.basefarm.net的IP地址。

Thu Apr 29 17:29:23 METDST 2010
dig basefarm.net soa
    basefarm.net.           57405   IN      SOA     ns01.osl.basefarm.net. hostmaster.basefarm.net. 2010042613 86400 3600 2419200 600
    ns01.osl.basefarm.net.  3600    IN      A       81.93.160.4
dig basefarm.net ns
    basefarm.net.           57405   IN      NS      ns01.sth.basefarm.net.
    basefarm.net.           57405   IN      NS      ns01.osl.basefarm.net.
dig ns01.sth.basefarm.net a
    Lookup failed

我真的迷失了这一点,并尝试询问Google但无济于事。