LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 583|回复: 1

dns的问题

[复制链接]
发表于 2004-12-14 10:14:10 | 显示全部楼层 |阅读模式
各位老大:
      看了这么多dns 架设的文章,采用了他们的 方法.但是自己就是没有成功.各位给我看 看:   计算机名darkmanfyb  IP:192.168.1.20
named.conf文件
     

  ## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/named.custom";

include "/etc/rndc.key";


zone  "0.0.127.in-addr.arpa" {
        type master;
        file  "0.0.127.in-addr.arpa.zone";
};
zone  "1.168.192.in-addr.arpa" {
        type master;
        file  "1.168.192.in-addr.arpa.zone";
};
zone  "localhost" {
        type master;
        file  "localhost.zone";
};


zone  "fengxue123.com" {
        type master;
        file  "fengxue123.com.zone";
};
   



fengxue123.com.zone文件
$TTL 86400
@        IN        SOA        darkmanfyb.  root.localhost (
                        3 ; serial
                        28800 ; refresh
                        7200 ; retry
                        604800 ; expire       
                        86400 ; ttl
                        )


        IN        NS        192.168.1.20
        IN        NS        www.fengxue123.com.


www.fengxue123.com        IN        A        192.168.1.20



1.168.192.in-addr.arpa.zone 文件
$TTL 86400
@        IN        SOA        darkmanfyb.        root.localhost (
                        4 ; serial
                        28800 ; refresh
                        7200 ; retry
                        604800 ; expire       
                        86400 ; ttk
                        )


@        IN        NS        www.fengxue123.com.

20        IN        PTR        www.fengxue123.com.


用nsllooukp www.fengxue123.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:         202.96.209.5
Address:        202.96.209.5#53

** server can't find www.fengxue123.com: NXDOMAIN


大家给看看,谢谢
发表于 2004-12-14 16:25:23 | 显示全部楼层
日志怎么说
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表