you can check your networkconnection especially the dns setup.
e.g. can you lookup the dns name of the server:
What does /etc/resolv.conf contain? It should contain valid nameservers, than will do the lookup of the internet namespace, or at least a local dns-server that resolves it either as forward or with recursion