首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >DNS问题:没有记录

DNS问题:没有记录
EN

Unix & Linux用户
提问于 2019-06-09 16:39:46
回答 1查看 135关注 0票数 -1

十天前,我在OVH公司的Kimsufi安装了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/

代码语言:javascript
复制
id 5158
opcode QUERY
rcode SERVFAIL
flags QR RD RA
;QUESTION
creation-site-pro.fr. IN A
;ANSWER
;AUTHORITY
;ADDITIONAL

服务bind9状态:

代码语言:javascript
复制
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)

文件named.conf:

代码语言:javascript
复制
// 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";

文件named.conf.local

代码语言:javascript
复制
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;
};

文件named.conf.options

代码语言:javascript
复制
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; };
};

主机名:

代码语言:javascript
复制
ns

主机名-f

代码语言:javascript
复制
ns.xzave.net

问题出在哪里?

EN

回答 1

Unix & Linux用户

发布于 2019-06-09 16:53:18

根据fr.区域,creation-site-pro.fr有两个名称服务器

代码语言:javascript
复制
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。您还需要整理另一个拒绝查询的服务器。

票数 2
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/523859

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档