Here is a couple of errors that might occur in Ubuntu or Node.js running on ubuntu:
Command:
wget http://www.google.ro
# response
wget: unable to resolve host address
Or in node.js:
{ [Error: getaddrinfo ENOTFOUND] code: ‘ENOTFOUND’, errno: ‘ENOTFOUND’, syscall: ‘getaddrinfo’ }
I found the solution at:
http://askubuntu.com/questions/425484/unable-to-use-wget-command