Joe*_*edy 1 domain-name-system bind centos
自从我更新了 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;
};
};
Run Code Online (Sandbox Code Playgroud)
/var/named/coalfired.net.hosts:
$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
Run Code Online (Sandbox Code Playgroud)
对此的任何帮助将不胜感激。
好像你错过了 NS 记录末尾的点。这个
coalfired.net IN NS ns2.thirteen.pm
Run Code Online (Sandbox Code Playgroud)
应该
coalfired.net. IN NS ns2.thirteen.pm.
Run Code Online (Sandbox Code Playgroud)