在这个问题中,我仅以example.org为例。 在我的真实区域文件中,我有一个真正的域而不是example.org 。
这就是我的区域文件现在的样子。
$TTL 14400 @ IN SOA ns1.linode.com. example\.org.gmail.com. 2017061008 14400 14400 604800 14400 @ NS ns1.linode.com. @ NS ns2.linode.com. @ NS ns3.linode.com. @ NS ns4.linode.com. @ NS ns5.linode.com. @ A 101.101.101.101 www A 101.101.101.101 @ AAAA 1001:1001::1001:1001:1001:1001 www AAAA 1001:1001::1001:1001:1001:1001 www.example.com CNAME example.org. www.example.net CNAME example.org.
你在这个区域文件中看到什么不正确的东西?
我问这是因为example.org和www.example.org nslookup成功了,但www.example.com和www.example.net nslookup失败。 我错过了什么?
注1:我已经注册了example.com , example.org和example.net ,在他们的whois信息中, Name Server字段指向ns1.linode.com , ns2.linode.com等
注2:我正在使用Linode DNSpipe理器基于Web的界面pipe理我的区域。 上面的输出块是从Linode DNS Manager提供给我的区域转储中获取的。
这是不可能的。 在example.org区域中,您只能为该域定义logging。
您必须在example.com的区域文件中定义loggingwww.example.com 。
你需要有www.example.com. CNAME 相同域example.com.的区域文件中的www.example.com. CNAME (或www CNAME ) example.com. 。 如果没有拖尾点,你只需要为(当前缺失的) $ORIGIN子域名(例如www.example.com.example.org )提供一个子域名。
规范名称 CNAME创build任何logging的别名,不仅是A 因此,我build议使用www.example.com. CNAME www.example.org. www.example.com. CNAME www.example.org. 而不是简单的域名,以避免混淆MX , TXT等。
www.example.com CNAME example.org. www.example.net CNAME example.org.
我认为是错误的 – 在这种情况下,您已经定义了类似的东西:
www.example.com.example.org www.example.net.example.org
如果您想将www.example.net和www.example.com指向example.org所声明的IP,则应在末尾添加点,例如:
www.example.com. CNAME example.org. www.example.net. CNAME example.org.