Sounds like a problem with your router. Can you ping yahoo or any other external network? Also, take not of an external IP - such as one of the yahoo servers - and try pinging it or visiting it in a browser. You may have network connectivity but your DNS may be the problem. Also, check your /etc/resolv.conf on your local machine, and see where it is pointing to. My guess is to your router.