Today out of the blue (or at least that is what I thought when I first saw it) I started seeing this message everytime I issued a command using sudo:
1 2 $ sudo ls sudo: unable to resolve host adrian
After a little investigations I found out that it actually didn’t come out of nowhere, but I was the one who made this happened. What happens is that you usually have an entry in the file /etc/hostname where you specify the name of your host. So when you use the sudo command it tries to connect to the host computer to check for permissions. This can get really complicated, but if you are only working on your computer your host is usually the local host.