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

weixin_38081679 2005-01-22 05:57:55

我的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服务器解析上网,希望有大侠能帮我解决
...全文
68 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

433

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧