You are not logged in.
Pages: 1
I haven't restarted this machine for a while now. I restarted it this time but the terminal has a different name than the one in /etc/hostname. The terminal has "new-host-5".
$ hostname
also returned "new-host-5".
No clue what might have caused the change but is there a way to display the correct name?
I am on Beowulf.
Thank you,
Last edited by Job (2019-11-16 22:45:48)
Offline
Are you running dhcp? Could this have handed out a new host name?
What is in /etc/network/interfaces ?
Geoff
Offline
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
Thanks for the help
Offline
Well I did an update and restarted the box. The correct hostname is back. Too bad I will never know what caused that.
Offline
It's likely to be caused by your DHCP server, as Geoff notes.
You might be able to prevent it by adding this to /etc/rc.local:
hostnamectl --transient set-hostname "$hostname"
Replace $hostname with the desired hostname.
But I don't know if hostnamectl(1) will work in (or is included with) Devuan. If it doesn't work then you can configure dhclient to not ask for a hostname:
Brianna Ghey — Rest In Power
Offline
Pages: 1