我最近开始通过godaddy运行VPS,我继续收到以下内容,自动从cPanel生成电子邮件:
Your hostname (server.mydomain.com) could not be resolved to an IP
address. This means that /etc/hosts is not set up correctly, and/or
there is no dns entry for server.mydomain.com. Please be sure that
the contents of /etc/hosts are configured correctly, and also that
there is a correct 'A' entry for the domain in the zone file.
Some or all of these problems can be caused by /etc/resolv.conf
being setup incorrectly. Please check that file if you believe
everything else is correct.
You may be able to automatically correct this problem by using the
'Add an A entry for your hostname' option under 'Dns Functions' in
your Web Host Manager.
我已按照电子邮件中的建议添加了A条目,但仍然收到错误。
当我尝试将dns区域添加到server.mydomain.com时,WHM告诉我Sorry, a DNS entry for server.mydomain.com already exists.
但是,WHM中没有列出DNS区域供我查看或编辑我的主机名。
我可以通过server.mydomain.com连接到服务器,所以在我看来主机名实际上是正确解析的。此外,IP和别名在/etc/hosts
中正确列出。
为什么我会收到此电子邮件?如何解决此问题?
谢谢。
答案 0 :(得分:2)
通常,此错误电子邮件是由未正确设置的专用名称服务器生成的。此外,还有可能丢失,损坏或格式不正确的DNS记录。
如果您使用的是私人名称服务器,请检查以下内容: