I also found other resources that mention some firewall misconfiguration, disabling selinux, and other potential solutions. However there are no firm answer on why yum cannot seem to access some URL. Maybe you can try asking in CentOS specific forums if none of the solutions above solves it?