Easy method ..!
all peoples said, I tried the below things:
1) Ping the web site by typing the IP address and working fine
2) Ping the web site with name and working fine
3) wget is not installed and tried to install with yum. But, getting the same error.
I have fixed yum fail issue within 1 minutes by using this methodology.(100% working)
Just edit the repo file. That's all.
For video tutorial :-