由 navy 在 11-28-2002 10:51 发表:
已经十天了我快要疯了,是不是系统有问题
redhat 8.0 ip 192.168.1.12 bind-9.2.1
[root@localhost etc]# cat named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
// query-source address * port 53;
};
zone "." IN {
type hint;
file "named.ca";
};
zone "cx.com" IN {
type master;
file "named.hosts";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "named.1.168.192";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
};
// include "/etc/rndc.key";
[
root@localhost named]# cat named.local
$TTL 86400
@ IN SOA ns.cx.com. root.ns.cx.com. (
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
IN NS ns.cx.com.
1 IN PTR localhost.
[root@localhost named]# cat named.1.168.192
@ IN SOA ns.cx.com. root.ns.cx.com. (
2002042302; serial
28800; refresh
14400; retry
3600000; expire
86400); minimu
IN NS ns.cx.com.
1 IN PTR ns.cx.com.
2 IN PTR ns1.cx.com.
[root@localhost named]# cat named.hosts
@ IN SOA ns.cx.com. root.ns.cx.com. (
2002042302; serial
28800; refresh
14400; retry
3600000; expire
86400 ) ; minimu
IN NS ns.cx.com.
cx IN A 192.168.1.12
cx1 IN A 192.168.1.223
www IN CNAME ns.cx.com.
ftp IN CNAME cx
[root@localhost named]# cd /etc
[root@localhost etc]# cat resolv.conf
search localdomain
domain cx.com
nameserver 192.168.1.12
[root@localhost etc]# /etc/rc.d/init.d/named restart
停运 named:
启动 named: [ 确定 ]
[root@localhost etc]# ping www.cx.com
ping: unknown host www.cx.com
[root@localhost etc]# nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the dig' or host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.