從域名到IP可以正解解析,從IP到域名卻不行!高手幫幫忙,非常感謝
正解析:
# nslookup
> www.test.com
Server: 218.31.80.53
Address: 218.31.80.53#53
Name: www.test.com
Address: 192.168.1.100
# ping www.test.com
PING www.test.com (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=64 time=0.022 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=64 time=0.029 ms
64 bytes from 192.168.1.100: icmp_seq=3 ttl=64 time=0.032 ms
________________________________________________________________ //正解析都正常
以下是問題的所在
# nslookup
> 192.168.1.100 //反解
Server: 218.31.80.53
Address: 218.31.80.53#53
** server can't find 100.1.168.192.in-addr.arpa.: NXDOMAIN
# host 192.168.1.100 //反解,都失敗
Host 100.1.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
________________________________//反解析都失敗
我將我的named.conf貼出來還有反解區域文件
options {
directory "/var/named";
pid-file "named.pid";
};
zone "." IN {
type hint;
file "named.root";
};
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 "test.com" IN {
type master;
file "test.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" in {
type master;
file "test.local"; //反解的文件
allow-update { none; };
};
zone "google.com" IN {
type master;
file "google.zone";
allow-update { none; };
};
反解區域文件如下:
$TTL 86400
@ IN SOA test.com. root.test.com.(
20031001;
7200;
3600;
43200;
86400);
@ IN NS test.com.
82 IN PTR dns.test.com.
哪裡有錯,麻煩指證。非常感謝
QQ:3645636
[ 本帖最後由 3645636 於 2008-4-4 01:28 編輯 ]
《解決方案》
你只配置了82的地址。。
沒有配置100的解析
[ 本帖最後由 mantiser 於 2008-4-4 01:45 編輯 ]
《解決方案》
麻煩講講怎麼解決,謝謝
《解決方案》
$TTL 86400
@ IN SOA test.com. root.test.com.(
20031001;
7200;
3600;
43200;
86400);
@ IN NS test.com.
82 IN PTR dns.test.com.
100 IN PTR www.test.com. ///你這裡沒有增加www的反響解析