gpt4 book ai didi

centos - 主机名未解析为 IP WHM/cPanel

转载 作者:太空宇宙 更新时间:2023-11-03 17:14:51 27 4
gpt4 key购买 nike

我将我的 WHM/cPanel 安装移动到新服务器。更改名称服务器 IP 后,过一会儿域开始指向新服务器。

但是主机名无法解析为 IP 地址。

/scripts/ipcheck --verbose


IMPORTANT: Do not ignore this email.

Your hostname (xxx.example.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 xxx.example.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.

我跑了:

nano /etc/hosts


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
XXX.XXX.XXX.XXX xxx.example.com xxx

我也检查:

nano /etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

还有:

nano /etc/nameserverips

XXX.XXX.XXX.XXX=ns1.example.com
XXX.XXX.XXX.XXX=ns2.example.com

我在 WHM 中检查了“为您的主机名添加一个条目”:

Hostname | Server Main IP
xxx.example.com | XXX.XXX.XXX.XXX

我检查并重建了 dnsconfig

/scripts/rebuildingdnsconfig

我真的不确定还要检查什么,我已经重新启动了服务器。指向名称服务器的域工作正常。我遇到的问题是我通过 https://xxx.example.com 路由电子邮件的所有 cpanel 访问和 SSL 配置因为它有 SSL 证书。我将设置与旧服务器进行了比较,除了 IP 地址外,它们是相同的。

Centos 6.4WHM 11.40.0 构建 19

  • XXX.XXX.XXX = 服务器 IP
  • xxx.example.com = 主机名

如有任何帮助,我们将不胜感激。

最佳答案

解决了这个问题:

转到 WHM,“为您的主机名添加一个条目”,然后再次提交。

即使它是正确的,但再次提交仍然有效。此修复来自 cPanel 支持。

关于centos - 主机名未解析为 IP WHM/cPanel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20019112/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com