1 |
Hi, |
2 |
|
3 |
I'm reading Kerberos - The Definitive Guide[1] and it makes the |
4 |
following comment: |
5 |
|
6 |
> And to make matters worse, some Unix systems map their own hostname |
7 |
> to 127.0.0.1 (the loopback IP address). |
8 |
|
9 |
This makes me think that the local host name /shouldn't/ be included in |
10 |
the 127.0.0.1 (or ::1) entry in the /etc/hosts file. |
11 |
|
12 |
However, according to the Gentoo AMD64 Handbook[2], we are supposed to |
13 |
add the local host name to the 127.0.0.1 (and ::1) entry in the |
14 |
/etc/hosts file. |
15 |
|
16 |
Will someone please explain why the Gentoo AMD64 Handbook ~> Gentoo (at |
17 |
large) says to add the local host name to the 127.0.0.1 (or ::1) entry |
18 |
in the /etc/hosts file? What was the thought process behind that? |
19 |
|
20 |
Incidentally, adding the local host name to the 127.0.0.1 (or ::1) entry |
21 |
in the /etc/hosts file causes "hostname -i" to return 127.0.0.1 instead |
22 |
of the IP address bound to the network interface. |
23 |
|
24 |
Thank you for any input you can provide. |
25 |
|
26 |
[1] Kerberos: The Definitive Guide (p. 109). O'Reilly Media. Kindle Edition. |
27 |
[2] |
28 |
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/System#The_hosts_file |
29 |
|
30 |
|
31 |
|
32 |
-- |
33 |
Grant. . . . |
34 |
unix || die |