yum “Couldn’t resolve host ‘mirrorlist.centos.org’” CentOS

Are you interested for monthly server support with Unlimited tickets, 24×7 monitoring , Security Audit and lot more ? please check our Monthly server support plans

Sometimes you will see the following error after configuring the fresh installation of centos,

Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot find a valid baseurl for repo: base

This is because of the issue with resolving host. To fix this do as mentioned below,

Login to the server from command line.

Edit the file  /etc/resolv.conf and add name servers to the file,

You can insert nameserver  8.8.8.8 or what ever your preferred public open DNS server to be as the first entry.

Now it will be fine.
Need our help to fix the issue ? Submit Support Ticket Now

View Server Administration Packages

Leave a Reply

Your email address will not be published. Required fields are marked *