日期:2014-05-16  浏览次数:20767 次

DNS转发特殊问题,请帮忙!
问题是这样的     我本地有一个二级域和公网上的二级域一样,我配好之后能解析的了我的域名,但是就不能解析公网上的了!我觉得他在我的DNS服务器上解析不了,就不转到公网上的DNS服务器上去解析,直接就报错了   !

例如:我内部的域名是oa.qq.com,我建了一个qq.com的域配制文件,按照下面的配制完,能解析我的oa.qq.com到指定的IP,但是就解析不了腾讯的
www.qq.com域名了!
named.conf文件:
options   {
                directory   "/var/named ";
                dump-file   "/var/named/data/cache_dump.db ";
                statistics-file   "/var/named/data/named_stats.txt ";
                recursion   yes;
                forwarders   {   211.136.17.107;   202.102.152.3;   };
                /*
                  *   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;
};
include   "/etc/rndc.key ";
..........
zone   "qq.com "   IN   {
                type   master;
                file   "named.qq.zero ";
                allow-update   {   none;   };
};
named.qq.zero文件:
$TTL   86400
@   IN   SOA   localhost.qq.com.   root.localhost.qq.com.(
                2007040401;Seial
                28800;Refresh
                14400;Retry
                3600000;Expire
                86400);Minimum
@   IN   NS   localhost.qq.com.
@   IN   MX   10   localhost.qq.com.

localhost   IN   A   192.168.1.2
oa   IN   A   192.168.1.3

请朋友们帮我指点我一下,要怎么改才能实现又能解析我的oa.qq.com又能解析www.qq.com!“本地的DNS服务器能上网!DNS配的公网的DNS服务器IP!”

------解决方案--------------------
记得应该这样配,你试试看

named.conf文件:
zone "qq.com " IN { //zone "oa.qq.com " IN {
type master;
file "named.qq.zero ";
allow-update { none; };
};


named.qq.zero文件:
oa IN A 192.168.1.3 // (TAB)IN A 192.168.1.3