0

I am trying to reset my hostname, but I am not sure if the broadcast is successful or not, is there a way to check?

user:~$ sudo hostname newhostname
user:~$ sudo dhclient
sudo: unable to resolve host newhostname

user:~$ sudo dhclient
RTNETLINK answers: File exists

Is RTNETLINK answers: File exists an indication of successful broadcast?

Thanks

1 Answers1

0

You certainly need to change /etc/hosts to reflect that change.

Look at How do I change the hostname without a restart?

solsTiCe
  • 9,231