when m doing curl it says could not resolve host what can i do ?
curl http://npmjs.org/install.sh | sudo sh
curl: (6) Couldn't resolve host 'npmjs.org'
/etc/resolv.conf
search x1
nameserver x2
nameserver 8.8.8.8
nameserver 8.8.4.4
nslookup result
nslookup google.com
Server: x1
Address: x1#53
Non-authoritative answer:
*** Can't find google.com: No answer
Non-authoritative answer: *** Can't find google.com: No answer
Make sure that your DNS is working fine:
If not, change to Google's DNS and try again:
You can make
curl
use HTTP proxy with: