On 2021-06-07 1:01 a.m., Tim via users wrote:
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.
Here's the situation this morning. Following a suggestion from John
Quirke
I added a line to /etc/NetManager/NetManager.conf
Added was hostname-mode=none.
That has stopped the repeated logging, but now when I click on
the netmanager icon in the tray it tells me the network has been
disconnected. Actually it hasn't been so I don't know what is up with that.
I also do not understand why the repeated logging started as no changes were
made to anything network-related.
This is now my hosts file in /etc
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
::1 localhost localhost.localdomain localhost6
localhost6.localdomain6
I also do not understand the references to localhost4 and localhost 6 in
that
file.
I connect to the internet on a wired connection to my providers router
via DHCP. There
is no wireless or other networks involved.
While the log spamming has stopped I feel there is something else going
on here.
Thanks
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure