由 li-jiahuan0 在 10-05-2004 11:53 发表:
rhel3 dns无法解析,大家帮忙看看,谢谢
[root@server root]# grep -v "*" /etc/named.conf
// generated by named-bootconf.pl
//
// a caching only nameserver config
//
options {
directory "/var/named";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." {
type hint;
file "named.ca";
};
zone "localhost" {
allow-update { none; };
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" {
allow-update { none; };
type master;
file "named.local";
};
zone "linux.net" IN {
allow-update { none; };
type master;
file "linux.net.zone";
};
zone "0.168.192.in-addr.arpa" IN {
allow-update { none;};
type master;
file "0.168.192.in-addr.arpa.zone";
};
include "/etc/rndc.key";
[root@server root]# cat /var/named/linux.net.zone
$TTL 86400
@ IN SOA server.linux.net. root.server.linux.net.
(
35 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
)
IN NS server.linux.net.
IN MX 5 server.linux.net.
chen IN A 192.168.0.2
zhu IN A 192.168.0.222
server IN A 192.168.0.1
[root@server root]# cat /var/named/0.168.192.in-addr.arpa.zone
$TTL 86400
@ IN SOA server.linux.net. root.server.linux.net.
(
35 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
)
IN NS server.linux.net.
1 IN PTR server.linux.net.
2 IN PTR chen.linux.net.
222 IN PTR zhu.linux.net.
[root@server root]# host 192.168.0.2
Host 2.0.168.192.in-addr.arpa not found: 2(SERVFAIL)
[root@server root]# host chen.linux.net
Host chen.linux.net not found: 2(SERVFAIL)
[root@server root]# service named restart
停止 named: [ 确定 ]
启动 named: [ 确定 ]
[root@server root]# host 192.168.0.1
Host 1.0.168.192.in-addr.arpa not found: 2(SERVFAIL)
[root@server root]# host 192.168.0.2
Host 2.0.168.192.in-addr.arpa not found: 2(SERVFAIL)
[root@server root]# host chen.linux.net
Host chen.linux.net not found: 2(SERVFAIL)
dns服务器为192.168.0.1
请问是哪里出的问题
谢谢
面包会有的,女人也会有的
由 Snoopy 在 10-05-2004 16:44 发表:
将日志贴出来
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 li-jiahuan0 在 10-06-2004 20:52 发表:
哪个文件
路径在哪
谢谢
面包会有的,女人也会有的
由 Snoopy 在 10-06-2004 21:46 发表:
cat /var/log/messages |grep named
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 txkss 在 10-06-2004 23:03 发表:
你的问题是不要把这些时间靠边放
35 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
像我上面这样缩进一下
你的就是这个问题
不用看日志了
由 Snoopy 在 10-07-2004 00:03 发表:
> quote:
>
> * * *
>
> 最初由 txkss 发表
>
> **你的问题是不要把这些时间靠边放
>
> 35 ; serial
>
> 28800 ; refresh
>
> 14400 ; retry<br **