Error could not resolve host in installation cPanel&WHM

This error message is Could not resolve host:; Name or service not known

If you encounter an error like in the picture, you may have a connectivity issue somewhere.  

Check if the server has internet . Check Ip address and correct route.

Check what are the resolver and ping them

cat /etc/resolv.conf

You should have line with nameserver and an IP address. Check that IP is answering. Then do an nslookup


And check this time. If it still doesn't work write ip to host information in your /etc/hosts file

Peace out !

Was this answer helpful?

 Print this Article

Also Read

Error MySQL or MariaDB was installed in installation cPanel&WHM

You are getting this output; The installation process found evidence that MySQL or MariaDB was...

Error invalid hostname in installation cPanel&WHM

You attempt to install cPanel/WHM on CentOS 7 but was greet with an invalid hostname error. In...

cPanel&WHM installation on Centos 7

Installation Requirements Centos 7 VPS Minimum of 1GB RAM (2GB RAM is recommended) Minimum...