Nombre de host no se resuelve a IP WHM / CPANEL
Pregunta
Moví mi instalación de WHM / CPANEL a un nuevo servidor. Después de cambiar la IP del servidor de nombres y luego, después de un poco, los dominios comenzaron a apuntar al nuevo servidor.
Sin embargo, el nombre de host no se resuelve a una dirección 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.
I corrió:
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
También verifico:
nano /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
también:
nano /etc/nameserverips
XXX.XXX.XXX.XXX=ns1.example.com
XXX.XXX.XXX.XXX=ns2.example.com
Revisé la "Agregar una entrada para su nombre de host" en WHM:
Hostname | Server Main IP
xxx.example.com | XXX.XXX.XXX.XXX
Revisé y reconstruí Dnsconfig
/scripts/rebuildingdnsconfig
Realmente no estoy seguro de qué más verificar, he reiniciado el servidor. Los dominios apuntando a los servidores de nombre funcionan bien. El problema que estoy teniendo es que ruta todas las configuraciones de acceso a CPANEL y SSL para los correos electrónicos a través de https://xxx.example.com Porque esto tiene el certificado SSL. He comparado la configuración al servidor anterior y son iguales, excepto la dirección IP.
centos 6.4 Whm 11.40.0 construir 19
Se apreciaría cualquier ayuda.
Solución
Resuelto esto:
Vaya a WHM ", agregue una entrada para su nombre de host" y simplemente envíelo nuevamente.
Aunque fue correcto enviarlo nuevamente.Esta solución vino del soporte de cpanel.
Otros consejos
Sé que es una publicación antigua, pero aquí hay algunos puntos de control además de lo anterior si alguien puede necesitar ayuda en el futuro con un problema similar:
1> Compruebe el contenido de
/etc/wwwacct.conf
2> Investigue su nombre de host y NS para obtener resultados adecuados
dig ns1.example.com
dig hostname.exmple.com
host ns1.example.com
host (HOST IP)
nslookup hostname.exmple.com
3) Asegúrese de haber registrado su HostName.example.com y NS1.example.com en su registrador de dominios y están apuntando a la IP correcta.
4) Asegúrese de que ningún firewall esté bloqueando el puerto UDP:53
y otros puertos esenciales.