If there are problems resolving hostnames in Ubuntu though nslookup/dig can resolve those names without a problem, it may help to change /etc/nsswitch.conf from:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
to:
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
Though it works in an identical environment on another machine with default setting above. So this is not the root cause, but helps as a workaround.
Source:
http://serverfault.com/questions/76421/wget-cant-resolve-host
Kategorie(n):