Loopback not working?

‘Unable to reach WordPress.org at wordpress.org: cURL error 6: Could not resolve host: wordpress.org; Name or service not known’

‘Your version of cURL, 7.29.0, is lower than the recommended minimum version of 7.38. Your site may experience connection problems with other services and WordPress.org

‘The loopback request to your site failed, this may prevent WP_Cron from working, along with theme and plugin editors.
Error encountered: (0) cURL error 6: Could not resolve host: xxx Name or service not known’

How to fix this?

I have found a solution to this:

  1. create a new file /etc/yum.repos.d/city-fan.repo

  2. Paste the following contents:

[CityFan] name=City Fan Repo baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/ enabled=1 gpgcheck=0
3) type:
yum clean all yum install curl

Source: