|
发表于 2003-7-28 10:01:31
|
显示全部楼层
回复: DNS找不到server,大家看看我的配置哪里错了
最初由 tomeee 发表
/etc/named.conf的配置
options {
directory "/var/named";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "127.0.0";
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "192.168.0";
};
zone "young.com" IN {
type master;
file "young.com";
};
/etc/resolv.conf的配置
search young.com
nameserver 192.168.0.21
/var/named/127.0.0的配置
@ IN SOA wilson.young.com. root.wilson.young.com.( 中间略 )
IN NS wilson.young.com.
1 IN PTR localhost.
/var/named/192.168.0的配置
@ IN SOA wilson.young.com. root.wilson.young.com.( 中间略 )
IN NS wilson.young.com.
21 IN PTR wilson.young.com.
/var/named/young.com的配置
@ IN SOA wilson.young.com. root.wilson.young.com.( 中间略 )
IN NS wilson.young.com.
wilson.young.com. IN A 192.168.0.21
运行host wilson.young.com 提示connection timed out; no servers could be reached IN NS IN NS wilson.young.com. IN NS wilson.young.com.
错在红色的那三句!
IN 前要有主机名 |
|