Gentoo Archives: gentoo-user

From: Arve Barsnes <arve.barsnes@×××××.com>
To: Gentoo <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:02:49
Message-Id: CAJjrzcUO86zfSTs31T8YweFFA542RCYmKwSaVUCAXDQ=G0Z67w@mail.gmail.com
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 Grant Taylor
1 On Thu, 25 Feb 2021 at 03:50, Grant Taylor
2 <gtaylor@×××××××××××××××××××××.net> wrote:
3 > > The loopback address is just that: the machine talking to itself, with
4 > > no reference to the outside world. Whereas, while talking to other
5 > > machines on the network its address is that of the interface. There's
6 > > no connection between those two.
7 >
8 > That doesn't explain /why/ the local host name is added to the line
9 > containing 127.0.0.1 and / or ::1.
10
11 I don't think that was the question Peter sought to answer, but rather
12 that 'hostname -i' returns the loopback address either way.
13
14 Might still defy logic depending on the way you look at it, but that's
15 a different question.
16
17 Regards,
18 Arve

Replies

Subject Author
Re: [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 <gtaylor@×××××××××××××××××××××.net>