Gentoo Archives: gentoo-user

From: Grant Taylor <gtaylor@×××××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Why do we add the local host name to the 127.0.0.1 / ::1 entry in the /etc/hosts file?
Date: Thu, 25 Feb 2021 07:33:29
Message-Id: a4cbcaef-7b98-a584-fe69-6d08226c2767@spamtrap.tnetconsulting.net
In Reply to: Re: [gentoo-user] Why do we add the local host name to the 127.0.0.1 / ::1 entry in the /etc/hosts file? by Arve Barsnes
1 On 2/25/21 12:02 AM, Arve Barsnes wrote:
2 > I don't think that was the question Peter sought to answer, but rather
3 > that 'hostname -i' returns the loopback address either way.
4
5 But 'hostname -i' /doesn't/ return the 127.0.0.1 or ::1 if the hostname
6 isn't on lines with 127.0.0.1 or ::1.
7
8 > Might still defy logic depending on the way you look at it, but that's
9 > a different question.
10
11 Hence why I'm seeking the logic behind what was done.
12
13
14
15 --
16 Grant. . . .
17 unix || die