【问题标题】:Hostname cannot be resolved to IP address主机名无法解析为 IP 地址
【发布时间】:2013-01-29 08:57:52
【问题描述】:

我最近开始通过 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 连接到服务器,因此在我看来主机名实际上解析正确。此外,/etc/hosts 中正确列出了 IP 和别名。

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

谢谢。

【问题讨论】:

    标签: dns cpanel hosts whm


    【解决方案1】:

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

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

    1. 您是否使用正确的 IP 地址向注册商注册了私有名称服务器?
    2. 您的每个私有名称服务器是否都有 A 记录?
    3. 在使用它们的域的 DNS 区域中是否列出了正确的名称服务器?

    【讨论】:

      猜你喜欢
      • 2011-03-12
      • 2014-10-13
      • 2013-03-25
      • 2011-05-07
      • 2019-09-29
      • 1970-01-01
      • 2021-01-04
      • 2015-09-26
      • 2021-10-08
      相关资源
      最近更新 更多