On Sun, 2021-06-06 at 12:19 -0400, Frank wrote:
I noticed this morning that network manager is spamming my log with
messages repeated every 3 or 4 seconds.
Jun 06 11:58:22 localhost.localdomain NetworkManager[787]: <info>
[1622995102.8297] policy: set-hostname: current hostname was changed
outside NetworkManager: fedora
Jun 06 11:58:22 localhost.localdomain NetworkManager[787]: <info>
[1622995102.8299] policy: set-hostname: set hostname to
localhost.localdomain (from address lookup)
Just out of curiosity, is it only applying localhost.localdomain to
your 127.0.0.1 loopback interface (like it should), or is it trying to
apply it to an ethernet or wifi interface (which it shouldn't)?
Actual interfaces should get a different name than the loopback
interface. Trying to use the same name to multiple interfaces is
liable to upset something.
Perhaps related, my /etc/hosts file just looks like this:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
With only those two lines in it. Network manager is being told what to
do by my DHCP server.
--
uname -rsvp
Linux 3.10.0-1160.25.1.el7.x86_64 #1 SMP Wed Apr 28 21:49:45 UTC 2021 x86_64
Boilerplate: All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.