[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian 12, setting hostname does not persist



	Hi.

On Tue, Jun 27, 2023 at 08:06:17AM -0400, David Mehler wrote:
> You might be on to something though here's what is in
> /etc/dhcp/dhclient.conf I'm just not sure what options to comment out?

That's even easier. Instead of 

send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
	domain-name, domain-name-servers, domain-search, host-name,
	dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,

you should probably use:

send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
	domain-name, domain-name-servers, domain-search,
	dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,

If it does not help - consider adding:

supersede host-name "<your hostname here>";

Reco


Reply to: