2.1.09

Ubuntu: unable to resolve host

By executing sudo there was the message
unable to resolve host XYZ
With root-rights open /etc/hosts and etc/hostname and change the name to only the hostname - without the domain.

Voila!