BIND DNS 区域 coalfired.net/IN: coalfired.net.coalfired.net/NS 'ns2.thirteen.pm.coalfired.net' 没有地址记录 (A 或 AAAA)

BIND DNS 区域 coalfired.net/IN: coalfired.net.coalfired.net/NS 'ns2.thirteen.pm.coalfired.net' 没有地址记录 (A 或 AAAA)

自从我更新了 BIND DNS 服务器后,我似乎遇到了一些问题。出于某种原因,当我尝试启动服务器时,出现了如下错误:

区域 coalfired.net/IN: coalfired.net.coalfired.net/NS 'ns2.thirteen.pm.coalfired.net' 没有地址记录 (A 或 AAAA)

出于某种原因,它似乎将我的记录命名为“coalfired.net.coalfired.net/NS” - 因此格式为 domain.domain。我猜应该是“coalfired.net/NS”。

在我的服务器上,每个运行 CentOS 6.5 和 Virtualmin 的域都发生了这种情况。我的配置文件如下。

/etc/named.conf的相关部分:

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
    listen-on port 53 { 127.0.0.1; };
    listen-on-v6 port 53 { ::1; };
    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     { localhost; };
    recursion yes;

    dnssec-enable yes;
    dnssec-validation yes;
    dnssec-lookaside auto;

    /* 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";
include "/etc/named.root.key";

zone "coalfired.net" {
    type master;
    file "/var/named/coalfired.net.hosts";
    allow-transfer {
        127.0.0.1;
        localnets;
        };
    };

/var/named/coalfired.net.主机:

$ttl 38400
@   IN  SOA ns1.thirteen.pm. root.ns1.thirteen.pm. (
            1397293687
            10800
            3600
            604800
            38400 )
@   IN  NS  ns1.thirteen.pm.
coalfired.net.  IN  A   5.9.35.30
www.coalfired.net.  IN  A   5.9.35.30
ftp.coalfired.net.  IN  A   5.9.35.30
m.coalfired.net.    IN  A   5.9.35.30
localhost.coalfired.net.    IN  A   127.0.0.1
webmail.coalfired.net.  IN  A   5.9.35.30
admin.coalfired.net.    IN  A   5.9.35.30
mail.coalfired.net. IN  A   5.9.35.30
coalfired.net.  IN  MX  5 mail.coalfired.net.
coalfired.net.  IN  TXT "v=spf1 a mx a:coalfired.net ip4:5.9.35.30 ?all"
coalfired.net IN NS ns2.thirteen.pm
autoconfig.coalfired.net.   IN  A   5.9.35.30

任何帮助都将非常感激。

答案1

看起来你漏掉了 NS 记录末尾的点。这

coalfired.net IN NS ns2.thirteen.pm

应该

coalfired.net. IN NS ns2.thirteen.pm.

区域文件中的 DOT

相关内容