再问DNS,请回应!

再问DNS,请回应!

各位大虾,

请问RH7.1中的ndc在哪里??(每次修改了***.conf,没办法只能重新启动)

我用nslookup后出现一大串信息:
note:nslookup is a deprecated and maybe removed from feture released,consider using the 'dig' or 'host'..........
>
然后我输入www.bab.com.cn后出现
;; connection timed out; no servers could be reached 输入192.168.1.18后出现
;; connection timed out; no servers could be reached

出错在什么地方?是反向解析出错??

log中not at top of zone是什么意思?
===========
Aug 22 08:56:18 linux named[595]: dns_zone_load: zone linux.bab.com.cn/IN: load
ing master file db.linux.bab.com.cn: not at top of zone
Aug 22 08:56:18 linux named[595]: running
Aug 22 10:29:02 linux named[595]: shutting down
Aug 22 10:29:02 linux named[595]: no longer listening on 127.0.0.1#53
Aug 22 10:29:02 linux named[595]: no longer listening on 192.168.1.18#53
Aug 22 10:29:02 linux named[590]: exiting
Aug 22 10:29:03 linux named: named shutdown succeeded
Aug 22 10:30:30 linux named: named startup succeeded
Aug 22 10:30:30 linux named[590]: starting BIND 9.1.0 -u named
Aug 22 10:30:30 linux named[590]: using 1 CPU
Aug 22 10:30:31 linux named[595]: loading configuration from '/etc/named.conf'
Aug 22 10:30:31 linux named[595]: the default for the 'auth-nxdomain' option is
now 'no'
Aug 22 10:30:31 linux named[595]: no IPv6 interfaces found
Aug 22 10:30:31 linux named[595]: listening on IPv4 interface lo, 127.0.0.1#53
Aug 22 10:30:31 linux named[595]: listening on IPv4 interface eth0, 192.168.1.18
#53
Aug 22 10:30:31 linux named[595]: dns_master_load: db.linux.bab.com.cn:9: not a
t top of zone
Aug 22 10:30:31 linux named[595]: dns_zone_load: zone linux.bab.com.cn/IN: load
ing master file db.bab.com.cn: not at top of zone
Aug 22 10:30:31 linux named[595]: running

============
db.192.168.1
===========
$TTL 86400
@ IN SOA linux.bab.com.cn. root.linux.bab.com.cn. (
2001082201 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS linux.bab.com.cn.
;
; SERVER SECTION
;
1 IN PTR linux.bab.com.cn.
10 IN PTR mail.bab.com.cn.

=================
db.linux.bab.com.cn
=================
$TTL 86400
@IN SOA linux.bab.com.cn. root.linux.bab.com.cn. (
2001082101 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS linux.bab.com.cn.
@ IN MX 10 mail.bab.com.cn.
linux IN A 192.168.1.18
localhost IN A 127.0.0.1
mail CNAME mail.bab.com.cn       
ndc ??咿╋它是干?的。
      
可以用whereis ndc查一下,应该在/usr/sbin/ndc restart
你设置/etc/named.conf&/etc/resolv.conf&/var/named/named.local了吗?

      
感谢两位的回复!

重新启动NAMED服务已经搞定,如下:

进入cd /etc/rc.d/init.d
./named restart即可

>>log中not at top of zone是什么意思?

这个其实就是2001082201 ; serial
每次改动之后,必须我这个数字改一下.

>>我用nslookup后出现一大串信息:
note:nslookup is a deprecated and maybe removed from feture released,consider using the 'dig' or 'host'..........
>

这个我也通过大侠们搞定了,原来rh7.1使用了BIND9.XXX,所以和BIND8.XXX的命令有了改变,原来是把NSLOOKUP淘汰,改换成"DIG"或"HOST".

>>然后我输入www.bab.com.cn后出现
;; connection timed out; no servers could be reached 输入192.168.1.18后出现
;; connection timed out; no servers could be reached

这个还搞不清楚,请各位指教!