Or indeed just 'strace -f -s 4096 -o wget.trace wget http://cern.ch/' when your resolv.conf is in a state that makes it break.
Or indeed just 'strace -f -s 4096 -o wget.trace wget http:// cern.ch/ ' when your resolv.conf is in a state that makes it break.