- 论坛徽章:
- 0
|
本帖最后由 xu8807286 于 2010-06-30 16:18 编辑
用RHEL5带的bind9.3.6 配置好DNS (192.168.1.1)后配置了另一台辅助DNS(192.168.1.2)
现在遇到一个怪问题:
检查辅助DNS上已接收到主DNS的相关域信息.客户端不管用主DNS还是辅助DNS都没有问题.
但在辅助DNS上却不能解析,主DNS上可以.
不知哪弄的不对.感觉怪怪处,其它机器通过辅助DNS都可正常解析,为何它自己去不能用自己解析.
配置文件如下:
辅助DNS:
named.caching-nameserver.conf- //
- // named.caching-nameserver.conf
- //
- // Provided by Red Hat caching-nameserver package to configure the
- // ISC BIND named(8) DNS server as a caching only nameserver
- // (as a localhost DNS resolver only).
- //
- // See /usr/share/doc/bind*/sample/ for example named configuration files.
- //
- // DO NOT EDIT THIS FILE - use system-config-bind or an editor
- // to create named.conf - edits to this file will be lost on
- // caching-nameserver package upgrade.
- //
- options {
- listen-on port 53 { any; };
- // listen-on-v6 port 53 { ::1; };
- directory "/var/named";
- dump-file "/var/named/data/cache_dump.db";
- statistics-file "/var/named/data/named_stats.txt";
- memstatistics-file "/var/named/data/named_mem_stats.txt";
- // Those options should be used carefully because they disable port
- // randomization
- // query-source port 53;
- // query-source-v6 port 53;
- // allow-query { localhost; };
- allow-query { any; };
- // allow-query-cache { localhost; };
- };
- logging {
- channel default_debug {
- file "data/named.run";
- severity dynamic;
- };
- };
- view localhost_resolver {
- match-clients { localhost; };
- match-destinations { localhost; };
- recursion yes;
- include "/etc/named.rfc1912.zones";
- };
- view test.com {
- match-clients { any; };
- match-destinations { any; };
- recursion yes;
- include "/etc/test.com.db";
- };
复制代码 辅助DNS:
test.com.db
- zone "test.com" IN {
- type slave;
- file "slaves/test.com.zone";
- masters { 192.168.1.1;};
- };
- zone "1.168.192.in-addr.arpa" IN {
- type slave;
- file "slaves/test.com.local";
- masters { 192.168.1.1;};
- };
复制代码 name.run中有这样的信息,感觉DNS想到外网上去解析一样(我这两台机器都不能上外网):
network unreachable resolving 'www.test.com/A/IN': 2001:503:c27::2:30#53
network unreachable resolving './NS/IN': 2001:503:c27::2:30#53 |
|