|
|
难倒了很多高手的DNS配置问题
以下是我在DNS配置
----------------------------------------------------------------------
linuxaid.com.cn
$TTL 86400
@ IN SOA linuxaid.com.cn. root.linuxaid.com.cn. (
2000080701 ; serial
86400 ; refresh
7200 ; retry
3600000 ; expire
86400) ; minimum
@ IN NS root.linuxaid.com.cn.
192.168.0.10 IN PTR www.linuxaid.com.cn.
----------------------------------------------------------------------
namde.conf
options {
directory "/var/named";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
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 "linuxaid.com.cn"IN {
type master;
file "linuxaid.com.cn";
};
zone "0.168.192.in-addr.arpa"IN {
type master;
file "linuxaid.rev";
};
include "/etc/rndc.key";
----------------------------------------------------------------------
linuxaid.rev
$TTL 86400
@ IN SOA linuxaid.com.cn. root.linuxaid.com.cn. (
2000080701 ; serial
86400 ; refresh
7200 ; retry
3600000 ; expire
86400) ; minimum
@ IN NS root.linuxaid.com.cn.
192.168.0.10 IN PTR www.linuxaid.com.cn.
---------------------------------------------------------------------
named.local
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum
IN NS localhost.
1 IN PTR localhost.
----------------------------------------------------------------------
host.conf
order bind,hosts
---------------------------------------------------------------------
hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.0.10 linuxaid.com.cn
---------------------------------------------------------------------
resolv.conf
nameserver 192.168.0.10
domain linuxaid.com.cn.
search com.cn
----------------------------------------------------------------------
以下是我配置完之后的调试结果
[root@linuxaid root]# host www.linuxaid.com.cn
www.linuxaid.com.cn has address 192.168.0.10
[root@linuxaid root]# host 192.168.0.10
Host 10.0.168.192.in-addr.arpa not found: 3(NXDOMAIN)
[root@linuxaid root]# nslookup -sil
> www.linuxaid.com.cn
Server: 192.168.0.10
Address: 192.168.0.10#53
Name: www.linuxaid.com.cn
Address: 192.168.0.10
> 192.168.0.10
Server: 192.168.0.10
Address: 192.168.0.10#53
** server can't find 10.0.168.192.in-addr.arpa: NXDOMAIN
>
有哪一位超级高手可以帮一个我呀.说出我哪里错了 |
|