设置反向 DNS

设置反向 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 上检查仍然说没有反向 DNS 记录,但是我认为当它在 24 小时后更新时它会说它在那里。

但我只是想在 24 小时之前再检查一下我是否已经正确完成了这件事。

答案1

除非您拥有网络块,否则您无法为非 RFC1918 地址设置反向 DNS。您需要让网络块的所有者为您(您的 VPS 提供商)设置正确的反向条目或将控制权委托给您(如果您只使用单个 VPS,则麻烦多多,而且他们可能不会这样做)。

相关内容