- 论坛徽章:
- 0
|
我的环境为:red hat enterprise 5.4
bind :BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5
我的电脑情况如下:
A为DNS服务器 (red hat enterprise 5.4 ), (备注 hcet.com IN PTR 192.168.0.4 )
B为 red hat enterprise 5.4 ,
C为 1台 windows pc
现在,在A DSN服务器上 nslookup www.hcet.com , nslookup 192.168.0.4 都是成功的
在B 上 nslookup www.hcet.com , nslookup 192.168.0.4 也都是成功的
现在在电脑C上 nslookup 192.168.0.4 or nslookup www.hcet.com
就出错了:
Can't find server name for address 192.168.0.7: Non-existent domain
服务器: UnKnown
Address: 192.168.0.7
名称: www.hcet.com
Address: 192.168.0.4
*******************************
网上找了好多答案都说是 反向解析出错了, 问题是在服务器A,与B上 都可以成功.为啥C就不可以呢?
电脑A与电脑B,都是red hat enterprise 5.4 OS.
[root@dnsserver named]# more hcet.com.local
$TTL 86400
;$ORIGIN hcet.com.
@ IN SOA hcet.com. root.hcet.com. (
1997022704 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS www.hcet.com.
4 IN PTR www.hcet.com.
[root@dnsserver etc]# cat named.rfc1912.zones
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "hcet.com" IN {
type master;
file "hcet.com.zone";
notify yes;
allow-query { any; };
allow-update { none;};
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "hcet.com.local" ;
// allow-query { any; };
// allow-update { none; };
}; |
|