大网数据广告活动
网站运营与故障问答

Should I use Reverse DNS (rDNS) with or without "www."?

· 52CE 我爱测

If I set up a rDNS entry for my server, should I enter just the hostname or should I include www. ? I assume that the A-Record for example.com and www.example.com point to the same server, of course. The site is running on www.ex…

问题原文

原帖链接 · simonthesorcerer · CC BY-SA 3.0

If I set up a rDNS entry for my server, should I enter just the hostname or should I include www.?

I assume that the A-Record for example.com and www.example.com point to the same server, of course. The site is running on www.example.com, if that matters.

I am asking because I have been told different stuff by different support members of my hosting provider. I am sorry that I can not give you a link to a resource with any of these opinions, as I am not even sure what to search for.

An answer from personal experience would be great, but I would prefer if someone here knows of an "official" document that states this.

已采纳解答

原帖链接 · DocRoot · CC BY-SA 3.0

The domain name returned from the reverse DNS lookup of the IP address should itself have an A record in its DNS record that points back to the IP address (in order to be "forward-confirmed").

So, in the case of a www subdomain, which is usually just a CNAME record pointing to the main domain, you should probably specify the bare domain. eg. example.com.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。