From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 88F211382C5 for ; Thu, 25 Feb 2021 07:33:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 886FEE0942; Thu, 25 Feb 2021 07:33:23 +0000 (UTC) Received: from tncsrv06.tnetconsulting.net (tncsrv06.tnetconsulting.net [IPv6:2600:3c00:e000:1e9::8849]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10002E0933 for ; Thu, 25 Feb 2021 07:33:22 +0000 (UTC) Received: from Contact-TNet-Consulting-Abuse-for-assistance by tncsrv06.tnetconsulting.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id 11P7XKXH014386 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 25 Feb 2021 01:33:21 -0600 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? To: gentoo-user@lists.gentoo.org References: <65049b74-842b-0211-bbfe-35607c279a75@spamtrap.tnetconsulting.net> <5697102.lOV4Wx5bFT@peak> <9b62c79e-0b0e-d02a-5099-ee1b82734996@spamtrap.tnetconsulting.net> From: Grant Taylor Organization: TNet Consulting Message-ID: Date: Thu, 25 Feb 2021 00:33:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Archives-Salt: f870e2bb-ffe1-4064-bf72-afbe193dc51f X-Archives-Hash: cedf90884690b7f2fd701e1724502495 On 2/25/21 12:02 AM, Arve Barsnes wrote: > I don't think that was the question Peter sought to answer, but rather > that 'hostname -i' returns the loopback address either way. But 'hostname -i' /doesn't/ return the 127.0.0.1 or ::1 if the hostname isn't on lines with 127.0.0.1 or ::1. > Might still defy logic depending on the way you look at it, but that's > a different question. Hence why I'm seeking the logic behind what was done. -- Grant. . . . unix || die