Hostname change won't persist
Hostname change won't persist
Changing the hostname seems pretty straightforward using v-change-sys-hostname, yet it seems impossible to let this persist through reboots.
Works nice and dandy methinks.
Up next! Reboot the whole thing:
oh you little ducker
Any ideas to let this persist through reboots?
Code: Select all
root@weacceptcrypto:~# v-change-sys-hostname weacceptcrypto.org
root@weacceptcrypto:~# hostname
weacceptcrypto.org
Up next! Reboot the whole thing:
Code: Select all
root@weacceptcrypto:~# hostname
weacceptcrypto
Any ideas to let this persist through reboots?
Re: Hostname change won't persist
Try to log out and log in.
Re: Hostname change won't persist
Hello,
It is advisable to ensure that the required hostname is correctly specified in /etc/hosts file in the server.
Regards,
-Eli
It is advisable to ensure that the required hostname is correctly specified in /etc/hosts file in the server.
Regards,
-Eli
Re: Hostname change won't persist
Its normal if you use a vps, say your provider change hostname from node, if not in any reboot will be changed.
Re: Hostname change won't persist
$hostname will give you an immediate change, but for persistent change, a better solution is to modify the /etc/sysconfig/network file.
and then locate HOSTNAME= line, change it to what you want and restart your machine.
Code: Select all
vi /etc/sysconfig/network