|
|
参考本站一些贴子操作后提示信息如下:请帮忙,怎么解决
[root@cunix cunoo]# /etc/rc.d/init.d/named start
启动 named:
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
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: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
db.cunix.coo:1: no current owner name
db.cunix.coo:2: no current owner name
db.cunix.coo:8: no current owner name
db.cunix.coo:9: no current owner name
db.cunix.coo:11: no current owner name
db.cunix.coo:12: no current owner name
db.cunix.coo:13: no current owner name
db.cunix.coo:14: no current owner name
db.cunix.coo:15: no current owner name
zone cunix.coo/IN: loading master file db.cunix.coo: no owner
_default/cunix.coo/IN: no owner
db.192.168.0:1: no current owner name
db.192.168.0:2: no current owner name
db.192.168.0:8: no current owner name
db.192.168.0:9: no current owner name
db.192.168.0:10: no current owner name
zone 0.168.192.in-addr.arpa/IN: loading master file db.192.168.0: no owner
_default/0.168.192.in-addr.arpa/IN: no owner
[失败]
[root@cunix cunoo]# ndc start
bash: ndc: command not found
[root@cunix cunoo]#
----------------------------
#name.conf如下:
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
forwarders { 202.103.0.117;202.103.24.68;};
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
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 "cunix.coo" IN {
type master;
file "db.cunix.coo";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "db.192.168.0";
};
//////////////////////////////////////////
include "/etc/rndc.key";
-----------------------
#正向解析文件db.cunix.coo如下:
$TTL 86400
@ IN SOA my.cunix.coo. root.my.cunix.coo. (
199511301 ; serial
28800 ; refresh
7200 ; retry
3600000 ; expire
86400 ) ; minimum
IN NS my.cunix.coo.
IN MX 10 cunix
my IN A 192.168.0.78
station IN A 192.168.0.1
www IN A 192.168.0.78
ftp IN A 192.168.0.78
pop IN A 192.168.0.78
--------------------
#反向解析文件db.192.168.0如下:
$TTL 86400
@ IN SOA my.cunix.coo. root.my.cunix.coo. (
199511301 ; serial
28800 ; refresh
7200 ; retry
3600000 ; expire
86400 ) ; minimum
IN NS my.cunix.coo.
78.0.168.192.in-addr.arpa IN PTR my.cunix.coo.
1.0.168.192.in-addr.arpa IN PTR station.cunix.coo. |
|