无法启动 Berkeley Internet Name Domain...S)。Centos7

无法启动 Berkeley Internet Name Domain...S)。Centos7

我是 Linux 环境的新手,正在尝试为我的几个网站构建一个网络托管服务器。但我的名称服务器没有指向我的服务器。我在许多论坛上阅读了许多文章并使用了这个命令,它显示了这个错误!

我的服务器公共 IP 是:103.159.66.155 名称服务器如下:

ns98.planetserver.cloud
ns49.planetserver.cloud




systemctl status named.service

● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/named.service.d
           └─cpanel.conf
   Active: failed (Result: exit-code) since Sun 2022-05-15 02:31:38 EDT; 23s ago
  Process: 20185 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)
 Main PID: 18326 (code=exited, status=0/SUCCESS)

May 15 02:31:37 103-159-66-155.cprapid.com bash[20185]: zone planetserver.cloud/IN: loading from mast...er
May 15 02:31:37 103-159-66-155.cprapid.com bash[20185]: zone planetserver.cloud/IN: not loaded due to...s.
May 15 02:31:37 103-159-66-155.cprapid.com bash[20185]: _default/planetserver.cloud/IN: not a valid number
May 15 02:31:37 103-159-66-155.cprapid.com bash[20185]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.... 0
May 15 02:31:37 103-159-66-155.cprapid.com bash[20185]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
May 15 02:31:37 103-159-66-155.cprapid.com bash[20185]: zone 0.in-addr.arpa/IN: loaded serial 0
May 15 02:31:38 103-159-66-155.cprapid.com systemd[1]: named.service: control process exited, code=e...s=1
May 15 02:31:38 103-159-66-155.cprapid.com systemd[1]: **Failed to start Berkeley Internet Name Domain...S).**
May 15 02:31:38 103-159-66-155.cprapid.com systemd[1]: Unit named.service entered failed state.
May 15 02:31:38 103-159-66-155.cprapid.com systemd[1]: named.service failed.
Hint: Some lines were ellipsized, use -l to show in full   

配置文件:named.conf ---

options {
    listen-on port 53 { any; };
    listen-on-v6 port 53 { any; };
    directory       "/var/named";
    dump-file       "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    memstatistics-file "/var/named/data/named_mem_stats.txt";
    allow-query     { any; };
    allow-transfer  { none; };
    recursion no;

    dnssec-enable yes;
    dnssec-validation yes;

    /* Path to ISC DLV key */
    bindkeys-file "/etc/named.iscdlv.key";

    managed-keys-directory "/var/named/dynamic";
};

logging {
    channel default_debug {
        file "data/named.run";
        severity dynamic;
    };
};

zone "." IN {
    type hint;
    file "named.ca";
};

include "/etc/named.rfc1912.zones";

相关内容