sudo: unable to resolve host

March 4, 2014 8.6k views
I got: sudo: unable to resolve host as a result of sudo cat /etc/hosts | curl -F'f:1=
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! :]
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!