Give this a try, i have done this DNS settings on my iMac and it seems to be better crossing fingers..
It also could be a simple issue with the DNS settings your ISP is using. Macs can be sensitive to these, if you are not familiar with DNS setting please read MacWorlds DNS Troubleshooting article and then make the follow change:
1. System preferences
2. Network
3. Click Advanced
4. Click DNS tab
5. Click + sign
6. Add 208.67.222.222
7. Click + sign
8. Add 208.67.220.220
9. Click OK.
10. Exit System Preferences
11. Try out your iMac and report what happened.