我最近开始通过 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 条目,但仍然收到错误消息。
当我尝试向 server.mydomain.com 添加一个 dns 区域时,WHM 告诉我Sorry, a DNS entry for server.mydomain.com already exists.
但是,WHM 中没有列出 DNS 区域供我查看或编辑我的主机名。
我能够通过 server.mydomain.com 连接到服务器,所以在我看来主机名实际上解析正确。此外,IP 和别名在 中正确列出/etc/hosts
。
为什么我会收到这封电子邮件,我该如何解决这个问题?
谢谢你。