设置反向DNS

我在用root访问VPS。

使用WHM我按照这里的说明

I put the last octet in my ip address in the domain field. left the TTL as 14400. Set the record type to PTR In the hostname field I put websitename.com 

这导致.in-addr.arpa not found: 2(SERVFAIL)在命令行中执行主机时

然后我把我的resolv.conf中的以下内容

 search websitename.com nameserver xx.xxx.xxx.xx (with the right ip address instead of the x's) nameserver xx.xxx.xxx.xx which resulted in xx.xxx.xxx.xx.in-addr.arpa domain name pointer websitename.com. 

dnsstuff.com上的检查仍然说没有反向的DNSlogging,但是我认为当它在24小时更新时,它会说它在那里。

但是我只想在我离开之前仔细检查一下我是否做得正确。

除非您拥有networking块,否则无法为非RFC1918地址设置反向DNS。 您需要让netblock的所有者为您(您的VPS提供商)设置正确的反向条目或将控制委派给您(如果您仅仅使用一个VPS而不是其价值,那么他们可能不会这样做) )。