Chinaunix

标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿 [打印本页]

作者: ben_lu    时间: 2005-08-11 13:38
标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿
named.conf的内容为:
options {
       directory "/var/named";
};
zone "." IN {
       type hint;
       file "named.ca";
};

zone "localhost" IN {
       type master;
       file "localhost.zone";
       allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
       type master;
       file "named.local";
       allow-update { none; };
};
zone "test.com" IN {
    type master;
    file "test.host";
};
zone "6.168.192.in-addr.arpa" IN {
    type master;
    file "test.rev";
};

test.host的内容为:
$TTL 86400
@               IN       SOA   test.com.  root.test.com. (
                           20020930 ; serial
                           86400    ; refresh
                           1500     ; retry
                           360000   ; expire
                           86400)   ; minimum
               IN       NS             test.test.com.
test            IN       A              192.168.6.92
ly              IN       A              192.168.6.94
tesww           IN       A              192.168.6.27

test.rev的内容为:
$TTL 86400
@               IN           SOA       test.com.    root.test.com. (
                           20020930 ; serial
                           86400    ; refresh
                           1500     ; retry
                           360000   ; expire
                           86400)   ; minimum
@               IN           NS        test.test.com.
92              IN           PTR       test.
94              IN           PTR       ly.
27              IN           PTR       tseww.

大侠们 邦我看看 我哪里写的不对阿
message的内容为:
Aug 10 12:22:22 test named[22490]: exiting
Aug 10 12:22:24 test named[22515]: starting BIND 9.2.1 -u named
Aug 10 12:22:24 test named[22515]: using 1 CPU
Aug 10 12:22:24 test named[22515]: loading configuration from '/etc/named.conf'
Aug 10 12:22:24 test named: named startup succeeded
Aug 10 12:22:25 test named[22515]: no IPv6 interfaces found
Aug 10 12:22:25 test named[22515]: listening on IPv4 interface lo, 127.0.0.1#53
Aug 10 12:22:25 test named[22515]: listening on IPv4 interface eth0, 192.168.6.92#53
Aug 10 12:22:25 test named[22515]: command channel listening on 127.0.0.1#953
Aug 10 12:22:25 test named[22515]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Aug 10 12:22:25 test named[22515]: zone 6.168.192.in-addr.arpa/IN: loaded serial 20020930
Aug 10 12:22:25 test named[22515]: zone test.com/IN: loaded serial 20020930
Aug 10 12:22:25 test named[22515]: zone localhost/IN: loaded serial 42
Aug 10 12:22:25 test named[22515]: running
Aug 10 12:22:25 test named[22515]: zone 0.0.127.in-addr.arpa/IN: sending notifies (serial 1997022700)
Aug 10 12:22:25 test named[22515]: zone test.com/IN: sending notifies (serial 20020930)
Aug 10 12:22:25 test named[22515]: zone 6.168.192.in-addr.arpa/IN: sending notifies (serial 20020930)

我网卡的IP地址:192.168.6.92 在局域网中
有3台机器 ly 192.168.6.94
               tseww  192.168.6.27
              test        192.168.6.92
可我一个都解析不了!
作者: ben_lu    时间: 2005-08-11 13:43
标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿
郁闷阿 怎么没人帮我啊 高手还没来啊?
作者: ben_lu    时间: 2005-08-11 13:48
标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿
高手快来啊!
作者: ben_lu    时间: 2005-08-11 13:51
标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿
100多人 就没人愿意帮助我啊!
作者: ben_lu    时间: 2005-08-11 14:21
标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿
么高手?
作者: ben_lu    时间: 2005-08-11 14:22
标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿
么高手阿  帮帮阿
作者: 網中人    时间: 2005-08-11 16:40
标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿
client 端的 nameserver 設過來了嗎?
先在 server 本機端查吧. 通過了再查別的.
作者: zouyuan521    时间: 2005-08-15 00:48
标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿
你的SOA 上指定的好像不对啊,你的DNS服务器的名字是test吧,你在下面的NS记录中指定你的DNS服务器上test.test.com.上面也要一样!
作者: zouyuan521    时间: 2005-08-15 00:50
标题: 我做了个dns 可就是起不来 一个都不能解析 大虾们帮我看看阿
est.host的内容为:
$TTL 86400
@               IN       SOA   test.test.com.  root.test.com. (
                          20020930 ; serial
                          86400    ; refresh
                          1500     ; retry
                          360000   ; expire
                          86400)   ; minimum
              IN       NS             test.test.com.
test            IN       A              192.168.6.92
ly              IN       A              192.168.6.94
tesww           IN       A              192.168.6.27

test.rev的内容为:
$TTL 86400
@               IN           SOA       test.test.com.    root.test.com. (
                          20020930 ; serial
                          86400    ; refresh
                          1500     ; retry
                          360000   ; expire
                          86400)   ; minimum
@               IN           NS        test.test.com.
92              IN           PTR       test. test.com.
94              IN           PTR       ly. test.com.
27              IN           PTR       tseww.test.com.

最好写全了




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2