Chinaunix

标题: 请帮忙分析一下新手的DNS出现的问题 [打印本页]

作者: kala_fly    时间: 2007-11-24 18:53
标题: 请帮忙分析一下新手的DNS出现的问题
/etc/named.conf

配置情况:
// named.conf for Red Hat caching-nameserver
//

options {
        directory "/var/named/";#named区文件目录;
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
         // query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

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 "eload.cn" IN {
        type master;
        file "eload.cn.zone";
        allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
        type master;
        file "named.eload.cn";
        allow-update { none; };
};


include "/etc/rndc.key";


/var/named/chroot/var/named/
eload.cn.zone   正向解析设置
$TTL    86400
@               IN SOA  eload.cn.   admin.eload.cn. (
                                        20071120                ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           ns.eload.cn.
        IN A            192.168.1.88
ns      IN A            192.168.1.88
www     IN CNAME        ns.eload.cn.
mail    IN CNAME        ns.eload.cn.
ftp     IN CNAME        ns.eload.cn.

named.eload.cn 反向解析设置

$TTL    86400
@               IN SOA  eload.cn. root.eload.cn. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
        IN      NS      ns.eload.cn.
88      IN      PTR     ns.eload.cn.
88      IN      PTR     www.eload.cn.
88      IN      PTR     mail.eload.cn.
88      IN      PTR     ftp.eloadcn.

OS:Linux RHAS4 bind 9.2
出现问题无法解析 1.
[root@eload named]# nslookup ns.eload.cn
Server:         192.168.1.88
Address:        192.168.1.88#53

** server can't find ns.eload.cn: NXDOMAIN

2.
[root@eload named]# nslookup 192.168.1.88
Server:         192.168.1.1
Address:        192.168.1.1#53

** server can't find 88.1.168.192.in-addr.arpa: NXDOMAIN

请帮忙大牛们分析一下,是哪里出现错误了?
作者: 飞长人类    时间: 2007-11-26 15:53
你启动的时候加个-g的参数看下启动信息  还要看看你的LOG  有什么错误提示




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