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.