public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Why do we add the local host name to the 127.0.0.1 / ::1 entry in the /etc/hosts file?
@ 2021-02-21 22:23 Grant Taylor
  2021-02-22  6:20 ` Andrew Udvare
                   ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Grant Taylor @ 2021-02-21 22:23 UTC (permalink / raw
  To: Gentoo-Users

Hi,

I'm reading Kerberos - The Definitive Guide[1] and it makes the 
following comment:

> And to make matters worse, some Unix systems map their own hostname 
> to 127.0.0.1 (the loopback IP address).

This makes me think that the local host name /shouldn't/ be included in 
the 127.0.0.1 (or ::1) entry in the /etc/hosts file.

However, according to the Gentoo AMD64 Handbook[2], we are supposed to 
add the local host name to the 127.0.0.1 (and ::1) entry in the 
/etc/hosts file.

Will someone please explain why the Gentoo AMD64 Handbook ~> Gentoo (at 
large) says to add the local host name to the 127.0.0.1 (or ::1) entry 
in the /etc/hosts file?  What was the thought process behind that?

Incidentally, adding the local host name to the 127.0.0.1 (or ::1) entry 
in the /etc/hosts file causes "hostname -i" to return 127.0.0.1 instead 
of the IP address bound to the network interface.

Thank you for any input you can provide.

[1] Kerberos: The Definitive Guide (p. 109). O'Reilly Media. Kindle Edition.
[2] 
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/System#The_hosts_file



-- 
Grant. . . .
unix || die


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2021-03-16 18:54 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-21 22:23 [gentoo-user] Why do we add the local host name to the 127.0.0.1 / ::1 entry in the /etc/hosts file? Grant Taylor
2021-02-22  6:20 ` Andrew Udvare
2021-02-25  2:37 ` Peter Humphrey
2021-02-25  2:50   ` Grant Taylor
2021-02-25  7:02     ` Arve Barsnes
2021-02-25  7:33       ` Grant Taylor
2021-03-10  5:09 ` Grant Taylor
2021-03-10 13:27   ` Mark Knecht
2021-03-10 15:25     ` Michael
2021-03-10 16:00       ` Mark Knecht
2021-03-10 16:38         ` Michael
2021-03-10 17:07           ` Grant Taylor
2021-03-10 17:01         ` Grant Taylor
2021-03-10 16:58       ` Grant Taylor
2021-03-11 13:38         ` Michael
2021-03-11 16:50           ` Grant Taylor
2021-03-12 19:04             ` Michael
2021-03-13 19:01               ` Grant Taylor
2021-03-16 12:16                 ` Michael
2021-03-16 12:33                   ` Peter Humphrey
2021-03-16 18:54                   ` Grant Taylor
2021-03-11 17:04           ` Grant Taylor
2021-03-10 16:44     ` Grant Taylor
2021-03-10 17:43       ` Mark Knecht
2021-03-10 18:37         ` Grant Taylor
2021-03-11 10:54           ` Wols Lists

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox