This error message is Could not resolve host: mirrorlist.centos.org; Name or service not known


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

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

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

nslookup mirrorlist.centos.org

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

67.219.148.138   mirrorlist.centos.org

Peace out !
Was this answer helpful? 0 Users Found This Useful (0 Votes)