So I came across this problem the other day and thought I would say what I did to resolve this problem. The computer would load certain websites OK like yahoo, espn, and bing. But would not load Google or AOL facebook and many others. I first ran a malwarebytes scan which found a couple of things and after cleaning things up and restarting the computer, I was still unable to load the Google homepage.
After some more research I found that when I ping google.com it was coming back with a 87.139 ip address range. I checked the host file and didn’t see anything abnormal. So after checking out a few more things and further research I determined the computer had a rootkit and was redirecting all these websites to a different IP. I downloaded and ran TSSKiller.exe which found a rootkit and was able to successfully remove it. After another restart I was able to access Google and other sites with no problem.
Hopes this helps anyone as this was a tricky one to figure out.