Notes
How to fix wget does not resolve local hosts
In /etc/nsswitch.conf change
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
to
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
In /etc/nsswitch.conf change
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
to
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4