我想将www.example.com或example.com指向abc.example2.com。
在example.com的我的cname区域设置中,我添加了一个cname,如下所示:
名称:www.example.comtypes:cname值:abc.example2.com
所以当我访问www.example.com时,它显示了abc.example2.com的内容,这是绝对正确的。 但是,当我访问example.com(没有www或任何其他子域),它不起作用。 我甚至尝试添加一个logging集如下:
名称:example.comtypes:cname值:abc.example2.com
但它给了我在2个不同的DNS托pipe网站的以下错误:路线53
RRSet of type CNAME with DNS name example.com. is not permitted at apex in zone example.com.
DYNDNS
CNAME cannot be created with label that is equal to zone name or in use for another record type.
现在,如何在访问example.com的时候显示abc.example2.com的内容呢?
如果标签(名称)是CNAME,则不允许其他logging。 所以你不能有这样的事情:
www.example.com A 1.2.3.4 www.example.com CNAME test.example.com.
这样做的效果在于,您永远不可能为裸露的example.com域拥有CNAME,因为始终有其他logging:至less是SOAlogging和一个或多个NSlogging,通常是一个或多个MXlogging。 所以这个必须是Alogging。
我通常会做的是另辟蹊径:使www.example.com成为example.com的CNAME。