免费注册 查看新帖 |

Chinaunix

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

[DNS] 我的DNS服务器设置的二级域名不能在外网访问? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-22 17:57 |只看该作者 |倒序浏览
我的DNS不能对外网IP反向解析啊,只能对内网进行反响解析,对外网也能进行正向解析。还 有一个情况就是,我自己生成的二级域名也不能通过外网访问,这是为什么呢,DNS是放在内网的,通过端口转发了一下,但是现在可以通过DNS正常的访问外网,谁能帮我解决一下啊谢谢!
我脚本为

named.conf
options {
        directory "/var/named";
            notify no;
        /*
         * 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;
            forwarders {61.134.1.9;};
};

//
// 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 "abc.com"  IN {
       type master;
       file "wbjd.com";
       allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
           type master;
           file "abc.1.168.192";
           allow-update { none; };
};



include "/etc/rndc.key";


abc.com

$TTL    86400
@       IN      SOA     server.abc.com.  root.server.abc.com.  (
                                      2005011900 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
                IN      NS      server.abc.com.
localhost.      IN  A  127.0.0.1
server          IN  A  192.168.1.238
csserver        IN  A  192.168.1.201
samba           IN  A  192.168.1.5
www             IN  CNAME server.wbjd.com.
ftp             IN  CNAME server.abc.com.
cs              IN  CNAME csserver.abc.com.
bbs             IN  CNAME server.abc.com.
smb             IN  CNAME samba.abc.com.



abc.1.168.192


$TTL    86400
@       IN      SOA     server.abc.com.  root.serve.abc.com.  (
                                      2005011900 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      server.abc.com.

238     IN      PTR     server.abc.com.
5         IN      PTR     samba.abc.com.
201     IN      PTR     csserver.abc.com.

我想问的是我的数据库文件还是named.conf设置的问题导致了不能对外网的IP进行反向解析,还有就我的named.conf从那里设置就可以让我的二级域名在外网也能访问呢,
我的服务器在放在内网的,已经做了端口转发,且局域网都使用这个DNS服务器解析上网,希望有大侠能帮我解决
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP