Likely you have a problem with your router settings, DNS, firewall or other such thing. My understanding of CentOS is that it does not target end users, and you may have better luck with a distribution like Fedora or Ubuntu.
Otherwise, you’re likely to find better help on a CentOS forum, since I’ve never heard of such an error occurring from any other distribution. Sorry I can’t help more, but maybe someone else will chime in.