/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. (
会员注册
会员登录
个人空间
发表评论