Re: hostname is being reset, killing net on reboot
On 2022-01-22, Greg Wooledge <greg@wooledge.org> wrote:
> On Fri, Jan 21, 2022 at 07:27:11PM -0500, gene heskett wrote:
>> On Friday, January 21, 2022 6:45:52 PM EST Andrew M.A. Cater wrote:
>> > On Fri, Jan 21, 2022 at 06:42:38PM -0500, gene heskett wrote:
>> > > So how do I officially set the hostname so its reboot proof?
>> >
>> > hostnamectl set hostname [foobar]
>
> The standard Debian way is to put the desired hostname in /etc/hostname.
>
What about updating /etc/hosts too?
https://wiki.debian.org/Hostname
Core networking
Update /etc/hostname
Update /etc/hosts, so local address(es) resolves with the new system
name.
Reload the network configuration...
Reply to: