下面是我的name.conf(只写关键部分)
------------------------
zone "pdscnc.com" IN {
type master;
file "pdscnc.com.db";
};
----------------------
pdscnc.com.db内容
-----------------------
$ TTL 86400
$ ORLGIN pdscnc.com.
@ IN SOA pdscnc.com. root.pdscnc.com. (
20040309001;serial
28800;refresh
14400;retry
3600000;expire
86400; )
IN NS pdscnc.com.
IN MX 10 pdscnc.com.cn.
www IN A 10.57.36.96
mail IN A 10.57.36.96
-----------------------------------
nslookup命令结果:
----------------------------
[root@www named]# nslookup www.pdscnc.com
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.
Server: 10.57.36.97
Address: 10.57.36.97#53
** server can't find www.pdscnc.com: SERVFAIL
--------------------------------------
等了几天也没有朋友回,呵。。。看的人还挺多。。还好找了个朋友把他的配置文件拷了一份过来,终于搞定DNS服务器了,不过问题出在哪儿我还是不太清楚。呵。。把配置文件放上来,请大家比较一下,看看我的问题出在哪儿。
pdscnc.com.db
---------------------------
@ IN SOA ns.pdscnc.com. root.pdscnc.com. (
2003092604 ; serial
7200 ; refresh
3600 ; retry
3600000 ; expire
7200 ; default_ttl
)
IN NS ns.pdscnc.com.
IN MX 10 mail.pdscnc.com.
www IN A 10.57.36.97
mail IN A 10.57.36.97
---------------------------------------------
[root@sbzy-server 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.
w>www.google.com
Server: 10.57.36.97
Address: 10.57.36.97#53