免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2395 | 回复: 1
打印 上一主题 下一主题

[DNS] 请帮忙分析一下新手的DNS出现的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-24 18:53 |只看该作者 |倒序浏览
/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

请帮忙大牛们分析一下,是哪里出现错误了?

论坛徽章:
0
2 [报告]
发表于 2007-11-26 15:53 |只看该作者
你启动的时候加个-g的参数看下启动信息  还要看看你的LOG  有什么错误提示
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP