sudo unable to resolve host

Posted November 20, 2013 6.4k views
hi , i have a problem when i do mkdir sudo mkdir -p /var/www/ result sudo unable to resolve host

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
5 answers
That sounds really weird. Try, this:
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove && sudo reboot now
I've tried your solution, it doesn't work. I also have the same problem with the one above, not quite sure how to solve it.

Please help :(
@draftdraft88: Add that domain that pops up in the error to /etc/hosts. For bylucasinf (OP) it would be:

Make sure that domain points to your droplet otherwise it will cause other issues.
@kamal, I already added `` but I still got the errror
@Marga: What's the output of
sudo cat /etc/hosts | curl -F 'f:1=<-'