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 94413138239 for ; Mon, 22 Feb 2021 06:20:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C69D2E0896; Mon, 22 Feb 2021 06:20:06 +0000 (UTC) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 82C36E0880 for ; Mon, 22 Feb 2021 06:20:05 +0000 (UTC) Received: by mail-qv1-xf30.google.com with SMTP id 2so5607808qvd.0 for ; Sun, 21 Feb 2021 22:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=GUqMC7EvCb1Y/HolX+y5S99pGvNpWGSqugCQbxWHRCM=; b=I8m4BtPzXce6Glk5NEVgZV4mIxysg/OR4miVphVoNWPJME1cATKQUaM7mTvPGJAjhU uk4OShIYnaiAp3nbu9USCXC8Z3eGrvxB4RBE87bzIbX5A4qVpXy/kkEFKz3tfQnspf9U /wYHEV9+1J6H0Czu3nO/Qph05GcNm4g/5dLLheUSdXBinj4d1Nrjm9ddZj8UQqQdfYld tHmy0lwizycx5QI4AwKU4xdReEiQahFBxrQbKTvGyV7wRWzpGTwuiXajgv+f7V//Lex6 Z7A1lyUZ05zEKz93hlKPuhPDk57XhL50x75JgIdY6o9wX6qcV87+1ua2o69ym8W1Oi7n FRjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=GUqMC7EvCb1Y/HolX+y5S99pGvNpWGSqugCQbxWHRCM=; b=iJz0KgzwGgZx/JD0LVjc+ukkp8GoP8QMAPyqwDwO8GR04RMy4H3Kt/ZOsz3rZrBGNT X5c6w09q2hX6M2e3K29sEMuqd/GS8UBuXt2PURGQZX7oZsHakAtx6r9GFaPpeTINupQV 22G8VidcIQG2NlHmtu4IAvuNtbEQXujN9Kl9HnTmLmSwtvmjHONxtJJiScwRzQhLX5Z+ kWBjcB98lzdT/PJRO5hKIP1C0R/ZOGXcZKhrI/V66iE7/5Nitb8U/PmGoievQvuDXPRG Yee7eJAoBB8JHbCLRYHvakZwWqiMC9OknHHzD1dvvLR0xv8HZCLsIcPVFM0CEYIuwnQi 1uAA== X-Gm-Message-State: AOAM533xxAzxdVCnNI3YhLYGlnGSmN9SYozr5/di8MwY8Ye2VcBeCoyq 0j6wUvWmAqH2RPf+9SP0NSOXFXC7TvL3AA== X-Google-Smtp-Source: ABdhPJxTBF3EfFOV6CDn/fEvEbavmFSw7Sp2cuNNjNd+yYbVgIKmr0/kC3vPCK+N1enS0zs0ObpJoQ== X-Received: by 2002:a0c:8b8a:: with SMTP id r10mr19350631qva.52.1613974803988; Sun, 21 Feb 2021 22:20:03 -0800 (PST) Received: from ?IPv6:2602:43:ebd0:b102:6465:917:9dc8:83da? ([2602:43:ebd0:b102:6465:917:9dc8:83da]) by smtp.gmail.com with ESMTPSA id h9sm11578024qke.121.2021.02.21.22.20.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Feb 2021 22:20:03 -0800 (PST) From: Andrew Udvare Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) 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: Mon, 22 Feb 2021 01:20:02 -0500 References: <65049b74-842b-0211-bbfe-35607c279a75@spamtrap.tnetconsulting.net> To: Gentoo Users In-Reply-To: <65049b74-842b-0211-bbfe-35607c279a75@spamtrap.tnetconsulting.net> Message-Id: X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Archives-Salt: f0f99d43-586a-4475-8e40-381387383f81 X-Archives-Hash: 29a654d0daadfb3b004a2d3bb71ca57c > On 2021-02-21, at 17:23, Grant Taylor = wrote: >=20 > Hi, >=20 > I'm reading Kerberos - The Definitive Guide[1] and it makes the = following comment: >=20 >> And to make matters worse, some Unix systems map their own hostname = to 127.0.0.1 (the loopback IP address). >=20 > 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. >=20 > 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. >=20 > 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? The thought process is the same as the guide you are reading. = https://www.oreilly.com/library/view/kerberos-the-definitive/0596004036/ch= 04s03.html It says in the last paragraph on this page that the /etc/hosts file = should have the '127.0.0.1 localhost ' (last part is = definitely optional) and then that the next entry should have the outer = IP address mapped to the FQDN. --=20 Andrew=