我在Mandrake linux8.0下配置DNS服务器下遇到的问题
我在Mandrake linux8.0下配置DNS服务器。我的主机名为gaofei,IP地址为
61.153.180.66。我想给这台机子配上www.love.com这样一个域名。配置完
成后我用nslookup来作测试,可是出现了如下情况:
Server:61.153.180.66
Address:61.153.180.66#53
**Server can't find http://www.love.com :SERVFAIL
我的几个配置文件是如下,请各位高手指点。谢谢!
------------------------------------------
named.conf文件:
options {
directory "/var/named";
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "love.com" in {
type master;
file "name2ip";
};
zone "180.153.61.in-addr.arpa" {
type master;
file "ip2name";
};
-------------------------------------------------
name2ip文件:
@ IN SOA gaofei.love.com. root.gaofei.love.com.
( 1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS gaofei.love.com
localhost IN A 127.0.0.1
gaofei IN A 61.153.180.66
www GNAME gaofei
-------------------------------------------
ip2name文件:
@ IN SOA gaofei.love.com. root.gaofei.love.com.
( 2000062900 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS gaofei.love.com.
1 IN PTR gaofei.love.com.
-------------------------------------------
resolv.conf文件:
domain
search love.com
nameserver 61.153.180.66
------------------------------------------
hosts文件:
127.0.0.1 localhost localhost.localdomain localhost
61.153.180.66 gaofei.love.com gaofei
--------------------------------------------
hosts.conf文件:
order hosts,bind
multi on