辅助 DNS 不是最新的

辅助 DNS 不是最新的

我的 FreeBSD 服务器 ns0.dddddd.eu 上有一个主 DNS,Xname.org 上有一个辅助 DNS。

但是 Xname.org 上的辅助 DNS 不是最新的!命令“#dig @ns0.xname.org dddddd.eu mx”和“#dig @ns0.dddddd.eu dddddd.eu mx”返回不同的答案!NS 服务器看不到我的 MX 记录 mail2.dddddd.eu。为什么?请帮帮我!

#dig @ns0.xname.org dddddd.eu mx

###############################################################################################
 #dig @ns0.dddddd.eu dddddd.eu mx

; <<>> DiG 9.6.2-P2 <<>> @ns0.dddddd.eu dddddd.eu mx
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10626
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 3

;; QUESTION SECTION:
;dddddd.eu.            IN    MX

;; ANSWER SECTION:
dddddd.eu.        3600    IN    MX    10 mail.dddddd.eu.
dddddd.eu.        3600    IN    MX    20 mail2.dddddd.eu.

;; AUTHORITY SECTION:
dddddd.eu.        3600    IN    NS    ns0.dddddd.eu.
dddddd.eu.        3600    IN    NS    ns1.xname.org.
dddddd.eu.        3600    IN    NS    ns0.xname.org.
dddddd.eu.        3600    IN    NS    ns2.xname.org.

;; ADDITIONAL SECTION:
mail.dddddd.eu.    3600    IN    A    11.111.111.111
mail2.dddddd.eu.    3600    IN    A    22.222.222.222
ns0.dddddd.eu.        3600    IN    A    11.111.111.111

################################################################################################

#dig @ns0.xname.org dddddd.eu mx

; <<>> DiG 9.6.2-P2 <<>> @ns0.xname.org dddddd.eu mx
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63585
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 4
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;dddddd.eu.            IN    MX

;; ANSWER SECTION:
dddddd.eu.        3600    IN    MX    10 mail.dddddd.eu.

;; AUTHORITY SECTION:
dddddd.eu.        3600    IN    NS    ns1.xname.org.
dddddd.eu.        3600    IN    NS    ns0.xname.org.
dddddd.eu.        3600    IN    NS    ns0.dddddd.eu.

;; ADDITIONAL SECTION:
mail.dddddd.eu.    3600    IN    A    11.111.111.11
ns0.xname.org.        600    IN    A    195.234.42.1
ns0.dddddd.eu.        3600    IN    A    11.111.111.111
ns1.xname.org.        600    IN    A    87.98.164.164

;; Query time: 53 msec
;; SERVER: 195.234.42.1#53(195.234.42.1)
;; WHEN: Sat Aug 21 22:43:46 2010
;; MSG SIZE  rcvd: 176
######################################################################################### 

我的named.conf:

include "/etc/namedb/rndc.key";
managed-keys {
    "." initial-key 257 3 8 "
    AwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQ
    bSEW0O8gcCjFFVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh
    /RStIoO8g0NfnfL2MTJRkxoXbfDaUeVPQuYEhg37NZWA
    JQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaDX6RS6CXp
    oY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3
    LQpzW5hOA2hzCTMjJPJ8LbqF6dsV6DoBQzgul0sGIcGO
    Yl7OyQdXfZ57relSQageu+ipAdTTJ25AsRTAoub8ONGc
    LmqrAmRLKBP1dfwhYB4N7knNnulqQxA+Uk1ihz0= ";
    };

options {
   directory   "/etc/namedb/working";
   pid-file   "/var/run/named/pid";
   dump-file   "/var/dump/named_dump.db";
   statistics-file   "/var/stats/named.stats";
   allow-query { any; };
   dnssec-lookaside   auto;

   listen-on   { any; };

   disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
   disable-empty-zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
   disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";

   forwarders {
      127.0.0.1;
   };
};
zone "." { type hint; file "/etc/namedb/named.root"; };

zone "dddddd.eu" {
   type master;
   file "/etc/namedb/master/dddddd.eu";
   allow-transfer { 92.243.14.172; 87.98.164.164; 195.234.42.1; 88.191.64.64; 89.252.22.138; 8.8.8.8; 8.8.4.4; localhost; 127.0.0.1; };
        allow-query { any; };
        }; 

文件 dddddd.eu:

$TTL   3600
@   IN   SOA   ns0.dddddd.eu. ns0.xname.org. (
      1;   Serial
      604800;   Refresh
      86400;   Retry
      2419200;   Expire
      86400 )   ;   Negative Cache TTL
;
dddddd.eu.   IN   NS   ns0.xname.org.
dddddd.eu.   IN   NS   ns1.xname.org.
dddddd.eu.   IN   NS   ns2.xname.org.
@   IN   NS   ns0.dddddd.eu.
@   IN   MX   10   mail.dddddd.eu.
@   IN   MX   20   mail2.dddddd.eu.
;
ns0   IN   A   11.111.111.111
mail2   IN   A   22.222.222.222
mail   IN   A   11.111.111.111
; 

答案1

您的区域序列号1看起来可疑。每次区域文件更改时,您都应该更新它,否则辅助服务器将不会更新。建议使用 2010082201 之类的序列号。

答案2

从历史上看,xname 与主服务器同步 DNS 数据的速度非常慢。

如果你正在寻找具有快速同步功能的产品,好友10 分钟内自动同步,或立即同步(如果您的主服务器支持 NOTIFY)。这是辅助 DNS 独有的,因此您需要主 DNS 才能使用它。

相关内容