- 论坛徽章:
- 0
|
/etc/named.conf配置如下
options {
directory "/var/named";
};
controls {
inet 127.0.0.1 allow {localhost;};
};
zone "." IN {
type hint;
file "named.root";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none;};
};
zone "xt.net" IN {
type master;
file "xt.net.zone";
allow-update { none;};
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.local";
};
key "rndc-key" {
algorithm hmac-md5;
secret "l+XeHV53EnW91TpBfWjaww==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
//xt.net.zone和1.168.192.local内容如下:
[root@linux named]# cat xt.net.zone
$TTL 86400
@ IN SOA linux.xt.net. root.xt.net.(
2006052102 ;Serial
28800 ;Refresh
14400 ;Retry
3600000 ;Expire
14400 ) ;Minimum
@ IN NS linux.xt.net.
@ IN MX 10 linux.
www A 192.168.1.111
ftp A 192.168.1.111
cklxp A 192.168.1.112
cai2000 A 192.168.1.106
[root@linux named]# cat 1.168.192.local
$TTL 86400
@ IN SOA linux.xt.net. root.xt.net. (
2006052102 ;Serial
28800 ;Refresh
14400 ;Retry
3600000 ;Expire
14400 ) ;Minimum
@ IN NS linux.xt.net.
111 IN PTR linux.xt.net.
112 IN PTR cklxp.xt.net.
106 IN PTR cai2000.xt.net.
DNS的IP是192.168.1.111,在本机上,解析都正常,在网内的其它机子上,本机设为第一个DNS服务器,但是无法解析。。这是什么原因呀。。。。
[ 本帖最后由 hakay 于 2006-5-21 17:20 编辑 ] |
|