Centos 主机名未解析为IP WHM/cPanel

Centos 主机名未解析为IP WHM/cPanel,centos,cpanel,hostname,centos6,whm,Centos,Cpanel,Hostname,Centos6,Whm,我将我的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 se

我将我的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
此外:

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

我检查并重建了dnsconfig

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

Centos 6.4 WHM 11.40.0构建19

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

任何帮助都将不胜感激。

我知道这是一篇老文章,但如果将来有人遇到类似问题需要帮助,这里还有一些检查点:

1> 检查

/etc/wwwacct.conf
2> 调查您的主机名(&N)以获得正确的结果

dig ns1.example.com
dig hostname.exmple.com
host ns1.example.com
host (HOST IP)
nslookup hostname.exmple.com
3) 确保您已经在域注册器中注册了hostname.example.com和ns1.example.com,并且它们指向正确的IP

4) 确保没有防火墙阻止端口UDP:53和其他基本端口。

解决了以下问题:

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


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

您的域名服务器for domain example.com是否在同一台服务器上?XXX.XXX.XXX.XXX=ns1.example.com XXX.XXX.XXX=ns2.example.com和XXX.XXX.XXX.XXX是否在您的服务器上?如果您编辑zona A for(“为您的主机名添加一个A条目”),但您的名称服务器不在服务器上,并且配置不正确,则名称服务器指向其他IPT,非常感谢您Keelan!你让我今晚凌晨3点不至于惊慌失措。在过去的一周里,我们不得不迁移一些客户,并注意到他们的网站在几个小时前已经离线。最美好的祝福!
/etc/wwwacct.conf
dig ns1.example.com
dig hostname.exmple.com
host ns1.example.com
host (HOST IP)
nslookup hostname.exmple.com