Dns 主机名无法解析为IP地址

Dns 主机名无法解析为IP地址,dns,cpanel,hosts,whm,Dns,Cpanel,Hosts,Whm,我最近开始通过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

我最近开始通过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.
我已经按照电子邮件中的建议添加了一个条目,但仍然收到错误

当我尝试向server.mydomain.com添加dns区域时,WHM告诉我
对不起,server.mydomain.com的dns条目已经存在。

但是,WHM中没有列出可供我查看或编辑主机名的DNS区域

我可以通过server.mydomain.com连接到服务器,因此在我看来,主机名实际上解析正确。此外,IP和别名在
/etc/hosts
中正确列出

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


谢谢。

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

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

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