sudo: unable to resolve host

Posted March 4, 2014 12k views
I got: sudo: unable to resolve host as a result of sudo cat /etc/hosts | curl -F'f:1=

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
Add the following line to /etc/hosts:

That should fix it assuming is your droplet's hostname.
It's fine, it's just telling you that your droplets hostname does not resolve.
Thanks Aidhan..

and when hostname does not resolve what might happen to my site in the future?

Newbie onboard :D

Thanks Kamal
That solved my problem
Sweet! :]