This might be a temporary problem with the DNS server that you are using to resolve hostnames or might be something local. If your problem hasn't fixed itself (it happens), then we need some more information to help you. Could you please post the results of the following commands:
Code:
ip address
ip route
cat /etc/network/interfaces
cat /etc/resolv.conf
cat /etc/nsswitch.conf
nslookup ubuntu.com
dig ubuntuforums.org
ping 8.8.8.8