DNS反解问题(在线求助)
[root@localhost named]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.159.133
[root@localhost named]# cat /etc/named.conf
options {
directory "/var/named";
};
zone "mitest.com" {
type master;
file "mitest.com.db";
};
zone "159.168.192.in-addr.arpa" {
type master;
file "192.168.159.arpa";
};
[root@localhost named]# cat /var/named/mitest.com.db
$TTL 86400
@ IN SOA dns.mitest.com. root.mitest.com. (
2011030700 ;Serial
28800 ;Refresh
14400 ;Retry
2600000 ;Expire
86400 ) ;Minimum
@ IN NS dns.mitest.com.
dns IN A 192.168.159.133
@ IN MX 5 mail.mitest.com.
mail IN A 192.168.159.133
www IN A 192.168.159.133
[root@localhost named]# cat /var/named/192.168.159.arpa
$TTL 86400
@ IN SOA 159.168.192.in-addr.arpa. root.mitest.com. (
2011030700 ;Serial
28800 ;Refresh
14400 ;Retry
3600000 ;Expire
86400 ) ;Minimum
@ IN NS dns.mitest.com.
188 IN PTR dns.mitest.com.
@ IN MX 5 mail.mitest.com.
188 IN PTR mail.mitest.com.
188 IN PTR www.mitest.com.
[root@localhost named]# nslookup www.mitest.com
Server: 192.168.159.133
Address: 192.168.159.133#53
Name: www.mitest.com
Address: 192.168.159.133
[root@localhost named]# host www.mitest.com
www.mitest.com has address 192.168.159.133
[root@localhost named]# host 192.168.159.133
Host 133.159.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
这个错误怎么解决??Host 133.159.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.159.133
[root@localhost named]# cat /etc/named.conf
options {
directory "/var/named";
};
zone "mitest.com" {
type master;
file "mitest.com.db";
};
zone "159.168.192.in-addr.arpa" {
type master;
file "192.168.159.arpa";
};
[root@localhost named]# cat /var/named/mitest.com.db
$TTL 86400
@ IN SOA dns.mitest.com. root.mitest.com. (
2011030700 ;Serial
28800 ;Refresh
14400 ;Retry
2600000 ;Expire
86400 ) ;Minimum
@ IN NS dns.mitest.com.
dns IN A 192.168.159.133
@ IN MX 5 mail.mitest.com.
mail IN A 192.168.159.133
www IN A 192.168.159.133
[root@localhost named]# cat /var/named/192.168.159.arpa
$TTL 86400
@ IN SOA 159.168.192.in-addr.arpa. root.mitest.com. (
2011030700 ;Serial
28800 ;Refresh
14400 ;Retry
3600000 ;Expire
86400 ) ;Minimum
@ IN NS dns.mitest.com.
188 IN PTR dns.mitest.com.
@ IN MX 5 mail.mitest.com.
188 IN PTR mail.mitest.com.
188 IN PTR www.mitest.com.
[root@localhost named]# nslookup www.mitest.com
Server: 192.168.159.133
Address: 192.168.159.133#53
Name: www.mitest.com
Address: 192.168.159.133
[root@localhost named]# host www.mitest.com
www.mitest.com has address 192.168.159.133
[root@localhost named]# host 192.168.159.133
Host 133.159.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
这个错误怎么解决??Host 133.159.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
作者: D之意志 发布时间: 2011-03-08
已经解决了,如下,还要注意下文件格式,比喻不能有空格
$TTL 86400
@ IN SOA 159.168.192.in-addr.arpa. root.mitest.com. (
2011030700 ;Serial
28800 ;Refresh
14400 ;Retry
3600000 ;Expire
86400 ) ;Minimum
@ IN NS dns.mitest.com.
133 IN PTR dns.mitest.com.
@ IN MX 5 mail.mitest.com.
133 IN PTR mail.mitest.com.
133 IN PTR www.mitest.com.
$TTL 86400
@ IN SOA 159.168.192.in-addr.arpa. root.mitest.com. (
2011030700 ;Serial
28800 ;Refresh
14400 ;Retry
3600000 ;Expire
86400 ) ;Minimum
@ IN NS dns.mitest.com.
133 IN PTR dns.mitest.com.
@ IN MX 5 mail.mitest.com.
133 IN PTR mail.mitest.com.
133 IN PTR www.mitest.com.
作者: D之意志 发布时间: 2011-03-08