Score:0

How to block NetworkManager from changing a line from dhclient.conf when merging?

ee flag

In dhclient.conf I have a line

send host-name = gethostname();

which I do not want to be changed by NM to

send host-name = '<current short host name>'

when generating the file in /var/lib/NetworkManager.

Any idea how to do that in Ubuntu 20.04?

gethostname() returns the fqdn of the host, which is mandatory when you have multiple domains on network. Default behavior of NM is wrong for my case. It might help for roaming cases and WiFi connections, but not in case of fixed net connections.

Score:0
ee flag

I did find a workaround (not solution) for that: do not use the internal dhcp client

For this fix create the file /etc/NetworkManager/conf.d/dhcp-client.conf with the content:

[main]
dhcp=dhclient
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.