When recursively wget-ting a fairly large site, after downloading 18 MB or so, wget starts complaining "Unable to resolve host" and/or "Temporary failure in name resolution", even though I can look up the host just fine with host or dig.
On the advice of various fora, I tried:
- commenting out the
hostsline in/etc/nsswitch.conf - replacing potentially dodgy nameservers in
/etc/resolv.confwith Google's8.8.8.8and8.8.4.4 - explicitly adding the name to
/etc/hosts
It doesn't seem to matter whether or not I set --no-dns-cache in the wget command line; the same thing happens.
I can't tell if wget is eventually going to finish, or if it's going to stay stuck in this state. It'd be nice if it finished, since I need it to --convert-links.
I'm running wget 1.11 (compiled from source, because 1.12 and later have broken the behavior of --no-clobber with --convert-links, at least for my purposes) on a Linux Mint 14 system.
What causes this? Is there a way to fix it?
strace -tt -f -o wget.strace wget ...That file is going to be big (few 100 K at least). Interesting is just the last part before the crash. – Hauke Laging Feb 27 at 1:14--limit-rate=and--wait=flags are for. – vonbrand Feb 27 at 1:19lsof -p $(pgrep wget)– mindthemonkey Feb 27 at 2:05