1

我最近开始通过 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

为什么我会收到这封电子邮件,我该如何解决这个问题?

谢谢你。

4

1 回答 1

2

通常,此错误电子邮件是由未正确设置的私有名称服务器生成的。此外,还有可能丢失、损坏或格式不正确的 DNS 记录。

如果您使用的是私有名称服务器,请检查以下内容:

  1. 您是否使用正确的 IP 地址向注册商注册了私有名称服务器?
  2. 您的每个私有名称服务器是否都有 A 记录?
  3. 使用它们的域的 DNS 区域中是否列出了正确的名称服务器?
于 2013-04-29T19:55:24.267 回答