LinuxSir.cn,穿越时空的Linuxsir!

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

我哪里配置错误?

[复制链接]
发表于 2004-4-26 11:43:17 | 显示全部楼层 |阅读模式
以下是/etc/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
#
options {
directory "/var/named";
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone"."IN {
        type hint;
        file "named.ca";
};
zone"0.0.127.in-addr.arpa"IN {
        type master;
        file "named.local";
};
include "/etc/named.custom";

include "/etc/rndc.key";


以下是/var/named/my.wz.org的配置文件
$TTL 86400
@ IN SOA my.wz.org. root.my.wz.org. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS my.wz.org.
IN MX 10 my.wz.org.

my IN A 172.16.5.1
www IN CNAME my.wz.org.
ftp IN CNAME my.wz.org.
smtp IN CNAME my.wz.org.
pop3 IN CNAME my.wz.org.

以下是/var/named/my.wz.org.rev的配置文件
$TTL 86400
@ IN SOA  my.wz.org. root.ns.wz.org. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS my.wz.org.

50 IN PTR my.wz.org.

以下是/var/named/named.local的配置文件
TTL     86400
@       IN      SOA  my.wz.org. root.my.wz.org. (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      my.wz.com

1       IN      PTR     localhost.


以下是/etc/resolv.conf的配置文件
; generated by /sbin/dhclient-script
search cnc.com
nameserver 210.52.149.2
nameserver 210.53.31.2请教各位大侠,多谢!
发表于 2004-4-26 13:10:08 | 显示全部楼层
有关DNS配置可以参考
http://linux.ournb.net/index/article.php/161
 楼主| 发表于 2004-4-26 13:19:29 | 显示全部楼层
文章上要求两台机器,我在做linux服务器配置的论文,达不到条件啊
 楼主| 发表于 2004-4-26 15:01:07 | 显示全部楼层
不好意思,刚才看错了。你给我的文章我正在学习!多谢!
 楼主| 发表于 2004-4-26 21:02:23 | 显示全部楼层
我按照你的文章做了,出现server is up and running这句话!但是用ping监查的时候只出现
PING www.test.com (192.168.0.220) 56(84) bytes of data这句话.另外/var/named下面没有默认的0.0.127.in-addr.arpa.zone文件夹.
 楼主| 发表于 2004-4-26 21:42:15 | 显示全部楼层
检查错误如下:
Apr 26 21:31:41 my named[4336]: starting BIND 9.2.1 -u named
Apr 26 21:31:41 my named[4336]: using 1 CPU
Apr 26 21:31:41 my  4月 26 21:31:41 named: named 启动 succeeded
Apr 26 21:31:41 my named[4336]: loading configuration from '/etc/named.conf'
Apr 26 21:31:41 my named[4336]: no IPv6 interfaces found
Apr 26 21:31:41 my named[4336]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 26 21:31:41 my named[4336]: listening on IPv4 interface eth0, 10.0.12.220#53Apr 26 21:31:41 my named[4336]: command channel listening on 127.0.0.1#953
Apr 26 21:31:41 my named[4336]: zone 0.0.127.in-addr.arpa/IN: loading master file 0.0.127.in-addr.arpa.zone: file not found
Apr 26 21:31:41 my named[4336]: zone 5.16.172.in-addr.arpa/IN: loading master file 0.168.192.in-addr.arpa.zone: file not found
Apr 26 21:31:42 my named[4336]: zone localhost/IN: loaded serial 42
Apr 26 21:31:42 my named[4336]: wz.org.zone:1: no TTL specified; using SOA MINTTL instead
Apr 26 21:31:42 my named[4336]: zone wz.org/IN: loaded serial 2
Apr 26 21:31:42 my named[4336]: running
Apr 26 21:31:42 my named[4336]: zone wz.org/IN: sending notifies (serial 2)
发表于 2004-4-26 21:55:49 | 显示全部楼层
文件名错误
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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