【发布时间】:2013-11-29 21:51:19
【问题描述】:
我将 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 中检查了“为您的主机名添加 A 条目”:
Hostname | Server Main IP
xxx.example.com | XXX.XXX.XXX.XXX
我检查并重建了 dnsconfig
/scripts/rebuildingdnsconfig
我真的不知道还要检查什么,我已经重新启动了服务器。指向名称服务器的域工作正常。我遇到的问题是我通过https://xxx.example.com 路由电子邮件的所有 cpanel 访问和 SSL 配置,因为它具有 SSL 证书。我已经将设置与旧服务器进行了比较,除了 IP 地址之外它们是相同的。
Centos 6.4 WHM 11.40.0 构建 19
- XXX.XXX.XXX = 服务器 IP
- xxx.example.com = 主机名
任何帮助将不胜感激。
【问题讨论】:
-
域名 example.com 的域名服务器在同一台服务器上吗? XXX.XXX.XXX.XXX=ns1.example.com XXX.XXX.XXX.XXX=ns2.example.com 和 XXX.XXX.XXX.XXX 它在您的服务器上吗?如果您为 ("Add an A Entry for your hostname" ) 编辑区域 A,但您的名称服务器不在服务器上,并且配置不正确,则名称服务器指向其他 IP
标签: centos cpanel hostname centos6 whm