Answers:
是的,它得到完美支持,没有任何问题。
您甚至可以在同一台计算机上托管完全不同的域。
例如,使用BIND9作为DNS服务器,您应该将以下内容放入named.conf
:
zone "example.com" {
type master;
file "/usr/local/etc/namedb/static/example.com";
notify yes;
allow-transfer { nameservers; }
};
};
zone "subzone.example.com" {
type master;
file "/usr/local/etc/namedb/static/subzone.example.com";
notify yes;
allow-transfer { nameservers; }
};
};
只需用您的区域数据填充区域文件。在主区域文件中,您也可以一致地指定子区域,甚至包括用于邮寄的MX记录,请查看该文件的以下示例example.com
:
; Nameservers records
ns.example.com. IN A 192.168.0.10
ns1.example.com. IN A 192.168.0.3
ns2.example.com. IN A 192.168.0.4
; Delegated internal zones
local.example.com. IN NS ns.example.com.
mgmt.example.com. IN NS ns.example.com.
; Delegated external zones
subzone.example.com. IN NS ns.example.com.
whatever.example.com. IN NS ns.example.com.
; Delegated external zone with its own nameservers (and glue records)
fnord.example.com. IN NS ns1.fnord.example.com.
fnord.example.com. IN NS ns2.fnord.example.com.
ns1.fnord.example.com. IN A 198.51.100.1
ns2.fnord.example.com. IN A 198.51.100.2
; Mailing zones
lists.example.com. IN A 192.168.0.13
IN MX 0 lists.example.com.
IN TXT "v=spf1 mx ~all"
IN SPF "v=spf1 mx ~all"
希望这可以澄清一切。
sub1.example.com
委托给您,则不能委托sub1.example.com
给其他人)