2 smile xiaoxin Smile_xiaoxin 于 2013.12.17 16:14 提问

redhat5.4上部署的DNS本机解析域名正常,其他机器不能解析

服务器(192.168.0.5)防火墙关闭
客户机跟服务器之间网络正常,客户机DNS设置成192.168.0.5还是无法解析
求高手解答,比较着急,在线等,谢谢各位路过的大神

配置文件如下
[root@localhost etc]# cat resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.168.0.5
search www.bjydsip.com
[root@localhost etc]#

[root@localhost etc]# cd /var/named/chroot/etc/
[root@localhost etc]# cat named.caching-nameserver.conf
注释省略
options {
listen-on port 53 { 192.168.0.5; };
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     { 0.0.0.0/0; };
    allow-query-cache { any; };

};
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";
};
[root@localhost etc]#

[root@localhost etc]# cat named.rfc1912.zones
系统自带的省略
zone "bjydsip.com" IN {
type master;
file "bjydsip.com.zero";

allow-update { none; };
};

zone "0.168.192.in-addr.arpa" IN {

type master;
file "bjydsip.local";
allow-update { none; };
};

[root@localhost etc]#

[root@localhost etc]# cd /var/named/chroot/var/named/
[root@localhost named]# cat bjydsip.com.zero
$TTL 86400
@ IN SOA bjydsip.com. mail.bjydsip.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

@ IN NS bjydsip.com.
IN A 127.0.0.1
IN AAAA ::1
dns IN A 192.168.0.5
www IN A 192.168.0.5
[root@localhost named]#

[root@localhost named]# cat bjydsip.local
$TTL 86400
@ IN SOA bjydsip.com. mail.bjydsip.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
5 IN PTR www.bjydsip.com.
[root@localhost named]#

本机解析正常
[root@localhost named]# nslookup www.bjydsip.com
Server: 192.168.0.5
Address: 192.168.0.5#53

Name: www.bjydsip.com
Address: 192.168.0.5

[root@localhost named]# nslookup 192.168.0.5
Server: 192.168.0.5
Address: 192.168.0.5#53

5.0.168.192.in-addr.arpa name = www.bjydsip.com.

[root@localhost named]#

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!