Tim: > > There's another issue that often popped up with Fedora in the past, not > > sure about now. People would often add the local hostname to the > > 127.0.0.1 line in the /etc/hosts file, confusing some aspects of > > networking.
Marco Moock: > Why? > Some applications need to resolve it. If it is an FQDN that is in the > global DNS, it will work (it will resolve to the public IP addresses of > the system), but for anything else it needs these entries or it will > fail in installations without the myhostname part in nsswitch.conf. This > is from systemd and not present in some other Linux systems. > > hosts: files myhostname > The IP for hostname on the same machine as itself should resolve to an IP address that's communicable outside of itself. Those of use who've run LAN mail servers, for instance, had discovered things go haywire when things start resolving to 127.0.0.1 that shouldn't. This kind of thing works rather well: 127.0.0.1 localhost.localdomain localhost 192.168.1.1 pandorasbox.localdomain pandorasbox But doing things like this has caused problems in the past, and will probably still cause problems in the future: 127.0.0.1 localhost.localdomain localhost pandorasbox It caused problems when it came to identifying itself, when cross- checking was involved: What's my IP? (real networkable IP, not 127.0.0.1) What's my hostname? What's this hostname's IP? What's the hostname for this IP? That kind of thing, which I've just quickly typed up from memory without checking the order of events that used to happen, became very messy when things conflicted. -- uname -rsvp Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 (yes, this is the output from uname for this PC when I posted) 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. -- _______________________________________________ users mailing list -- [email protected] To unsubscribe send an email to [email protected] 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/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
