Mình start bind trong CentOS bị lỗi, không biết là lỗi gì?
Code:
[root@ns ~]#service named start
Starting named: [FAILED]
Đây là named.conf của mình, chủ yếu là 2 zone cuối cùng:
Code:
options{
directory "/var/named";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
zone "centos.net" IN {
type master;
file "centos.net.db";
allow-update {none;};
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.db";
allow-update {none;};
};
Đây là zone centos.net.db:
Code:
$TTL 86400
@ IN SOA ns.centos.net. root.centos.net. (
201005201 ;serial
3600 ;refresh
1800 ;retry
604800 ;expire
86400 ;minimum
)
IN NS ns.centos.net.
IN A 192.168.1.153
ns IN A 192.168.1.153
Đây là zone 1.168.192.db:
Code:
$TTL 86400
@ IN SOA ns.centos.net. root.centos.net. (
201005201 ;serial
3600 ;refresh
1800 ;retry
604800 ;expire
86400 ;minimum
)
IN NS ns.centos.net.
153 IN PTR ns.centos.net.
Đây là log messages:
Code:
[root@ns ~]# tail -10 /var/log/messages
May 22 17:26:18 ns named[5620]: found 1 CPU, using 1 worker thread
May 22 17:26:18 ns named[5620]: using up to 4096 sockets
May 22 17:26:18 ns named[5620]: loading configuration from '/etc/named.conf'
May 22 17:26:18 ns named[5620]: using default UDP/IPv4 port range: [1024, 65535]
May 22 17:26:18 ns named[5620]: using default UDP/IPv6 port range: [1024, 65535]
May 22 17:26:18 ns named[5620]: listening on IPv4 interface lo, 127.0.0.1#53
May 22 17:26:18 ns named[5620]: listening on IPv4 interface eth0, 192.168.1.153#53
May 22 17:26:18 ns named[5620]: command channel listening on 127.0.0.1#953
May 22 17:26:18 ns named[5620]: zone 1.168.192.in-addr.arpa/IN: loaded serial 201005201
May 22 17:26:18 ns named[5620]: zone centos.net/IN: loaded serial 201005201