With Ubuntu vivid, I cannot bind the hostname of my server with the IP address gotten by a DHCP server

I tried to add in dhclient.conf (and reboot)

set host-name "myserver";

But, still doesn't work...

Did I miss something ?


If you already know the name, edit the /etc/hostname and run:

hostname $(cat /etc/hostname)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.