|
|

楼主 |
发表于 2006-4-23 10:03:21
|
显示全部楼层
好人帮到底,按我说的域名和地址给个例子吧。
就是上级域名服务器 yyy.zzz 设定了 xxx.yyy.zzz 的域名服务地址是 111.111.111.111
现在想 111.111.111.111 对 *xxx.yyy.zzz 解析有这样的效果:
xxx.yyy.zzz ==> 222.222.222.222
www.xxx.yyy.zzz ==> 111.111.111.111
另外还有设定 test.xxx.yyy.zzz 的域名服务器为 333.333.333.333
先谢了。
Post by eddie_we
cat test.com.zone
$TTL 86400
@ IN SOA ns.test.com. root.test.com. (
2006042113;
3H;
1M;
2W;
1D );
IN NS ns.test.com.
IN MX 1 mail.test.com.
ns IN A 192.168.2.22
mail IN A 192.168.2.22
a.test.com. IN NS ns.a.test.com.
cat a.test.com.zone
$TTL 86400
@ IN SOA ns.a.test.com. root.a.test.com. (
2006042113;
3H;
1M;
2W;
1D );
IN NS ns.a.test.com.
IN MX 1 mail.a.test.com.
ns.a.test.com. IN A 192.168.2.22
www.a.test.com. IN A 192.168.2.23
cat /etc/named.conf
zone "test.com" IN {
type master;
file "test.com.zone";
};
zone "a.test.com" IN {
type master;
file "a.test.com";
}; |
|