DNS问题:没有A记录

DNS问题:没有A记录

十天前,我在 Kimsufi by OVH 安装了一个 Debian 9 版本。我收到一封来自支持人员的电子邮件,其中包含 A 记录的问题,我的服务器是 ns.xzave.net,并且我的服务器上没有记录 A

https://www.whatsmydns.net/#A/ns.xzave.net我没有 A 记录

从谷歌工具箱中挖掘“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。您还需要找出拒绝查询的其他服务器。

相关内容