DNS問題:沒有A記錄

DNS問題:沒有A記錄

十天前,我在 Kimsufi by OVH 安裝了 debian 9 版本。我收到一封來自支援人員的電子郵件,其中包含 A 記錄的問題,我的伺服器是 ns.xzave.net,我的伺服器上沒有記錄 A

https://www.whatsmydns.net/#A/ns.xzave.net我沒有 A 記錄

從Google工具箱中挖掘“creation-site-pro.fr”

https://www.toolbox.googleapps.com/apps/dig/#A/

id 5158
opcode QUERY
rcode SERVFAIL
flags QR RD RA
;QUESTION
creation-site-pro.fr. IN A
;ANSWER
;AUTHORITY
;ADDITIONAL

服務bind9狀態:

bind9.service - BIND Domain Name Server
   Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-06-09 15:48:15 UTC; 6min ago
     Docs: man:named(8)
 Main PID: 665 (named)
    Tasks: 7 (limit: 4915)
   CGroup: /system.slice/bind9.service
           └─665 /usr/sbin/named -f -u bind

Jun 09 15:48:18 ns named[665]: managed-keys-zone: journal file is out of date: removing journal file
Jun 09 15:48:18 ns named[665]: managed-keys-zone: loaded serial 415
Jun 09 15:48:18 ns named[665]: zone creation-site-pro.fr/IN: loaded serial 2019052810
Jun 09 15:48:18 ns named[665]: zone localhost/IN: loaded serial 2
Jun 09 15:48:18 ns named[665]: zone 0.in-addr.arpa/IN: loaded serial 1
Jun 09 15:48:18 ns named[665]: zone 255.in-addr.arpa/IN: loaded serial 1
Jun 09 15:48:18 ns named[665]: zone 127.in-addr.arpa/IN: loaded serial 1
Jun 09 15:48:18 ns named[665]: all zones loaded
Jun 09 15:48:18 ns named[665]: running
Jun 09 15:48:18 ns named[665]: zone creation-site-pro.fr/IN: sending notifies (serial 2019052810)

檔案名為.conf:

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

檔案名稱為.conf.local

zone "creation-site-pro.fr" {
        type master;
        allow-transfer {213.186.33.199;};
        file "/etc/bind/pri.creation-site-pro.fr";
        allow-query{any;};
        notify yes;
};

檔案名稱為.conf.options

options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

        // forwarders {
        //      0.0.0.0;
        // };

        //========================================================================
        // If BIND logs error messages about the root key being expired,
        // you will need to update your keys.  See https://www.isc.org/bind-keys
        //========================================================================
        dnssec-enable yes;
        dnssec-validation auto;
        dnssec-lookaside auto;

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};

主機名稱:

ns

主機名稱-f

ns.xzave.net

哪裡有問題?

答案1

根據fr.區域,creation-site-pro.fr有兩個名稱伺服器

creation-site-pro.fr.   172800  IN  NS  ns.xzave.net.
creation-site-pro.fr.   172800  IN  NS  ns.kimsufi.com.

這兩個中,ns.xzave.net.不存在(xzave.net.甚至不是註冊網域)並且ns.kimsufi.com.似乎拒絕查詢。

雖然您的 Debian 伺服器可能已正確配置為回答該區域上的查詢,但它無法訪問,因為它的主機名稱ns.xzave.net.未指向它。

您可能需要考慮使用註冊商提供的名稱服務(如果他們提供)或確保伺服器具有指向它的正確 FQDN。您還需要找出拒絕查詢的其他伺服器。

相關內容