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 BEBC91382C5 for ; Wed, 10 Mar 2021 16:00:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F6D6E0867; Wed, 10 Mar 2021 16:00:32 +0000 (UTC) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 1ABEEE0844 for ; Wed, 10 Mar 2021 16:00:31 +0000 (UTC) Received: by mail-qt1-x82c.google.com with SMTP id t13so11947131qta.11 for ; Wed, 10 Mar 2021 08:00:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0XMzTgNYX8RHxU6BQLywVRmbF7cYb+LtWwYjtIzJ4UA=; b=OqtNSkd9KfwZLMF0RWBw7Kl+L60tLbVpl/HMCNVLNwWMJDQNwOgTxpxjJqvdqRYSwC l1p4nVEQpB82H6gWaeUW0lRQOXX1s9AzU2E4lMKtrPzKkdRHT39Y1jHGEQppIvZBhyWW d73EoFeIOqI8/pRAmgxzlEdqy8QHza5kQfXlG0J/lAxmOoP9gxM2wvpdQCr1Ks6wAECA wL5tpXii8rpl9vy36836FLRql+HM+VWpPNfGV+qs2JN8XdipmBNuB1P6cCXcE9Qh31mn fRC8xNCVuzBBZc4MviyJlNBbtSFV9a1NANsgqx3bZeA93AegDpNWSfacILAP0pkmeuc4 xy8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0XMzTgNYX8RHxU6BQLywVRmbF7cYb+LtWwYjtIzJ4UA=; b=eioIf3XQnHD8HZzYJFQPdczzghiLaiY5P0CSu+rldv+yQyN0dEFddeKfHRuyEuoCfD UQQ6PIXGsT86ge9Z8ANG11BU5nW65vS7BSCj5+vI+pj6HQZhNH1glP7yUgIXJukz4IkD BMWkUILAAuvqHJ+eu+JMKNssro0/mEO31hcsyYNTS0vtsPDVr2soYJuszBJftnYfNH0y SLoVNwD3pIMJp0aIMQ7XfnOzxapHGwvTxQyBSe2fzYCr3VgrtLni7Cevp5R99DA2TNxb UHKODJuq5W4E362T/o0tgkt1ASlML7JpdnnDiuP3Z6b4pliKJKH2cHzyzbWlsVex9avQ ToQQ== X-Gm-Message-State: AOAM532kaCNZzSI83HEsJ6eKlqd8G4/XSo+LIhi0n+BQvBlEbeB1OD9Z Vy9uAjcU4ETL4xUsPTaXCtqRetKAvDudukI7AP3LzPetzrs= X-Google-Smtp-Source: ABdhPJw7WFPaudoYbAc+Lt1zgCDvxBXx4i1hFwbmS+Kv7E55GdY65h3aD70hOAUTmiC63kh+3FdwvJqlkl8PHIXKeMo= X-Received: by 2002:ac8:c4b:: with SMTP id l11mr3233836qti.331.1615392030914; Wed, 10 Mar 2021 08:00:30 -0800 (PST) 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 References: <65049b74-842b-0211-bbfe-35607c279a75@spamtrap.tnetconsulting.net> <3670ec37-c1ba-2351-9999-11f7ef1917dc@spamtrap.tnetconsulting.net> <9854601.nUPlyArG6x@lenovo.localdomain> In-Reply-To: <9854601.nUPlyArG6x@lenovo.localdomain> From: Mark Knecht Date: Wed, 10 Mar 2021 09:00:19 -0700 Message-ID: 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 Content-Type: multipart/alternative; boundary="0000000000002cfd5505bd30c46b" X-Archives-Salt: 846cd0b8-8f71-4ab3-8fbc-aee1c0c70a75 X-Archives-Hash: a26464b67ec5639a243c6f3ab20a6fff --0000000000002cfd5505bd30c46b Content-Type: text/plain; charset="UTF-8" > mark@science:~$ cat /etc/hosts > 127.0.0.1 localhost > 127.0.1.1 science > It could very well be but I have vague memories when I first started getting interested in Linux, circa 1996-97 with Redhat, that I would buy books that liberally sprinkled http://localhost or ping localhost sorts of lines in the text and examples. My undocumented (and unsupported by data) opinion is that this localhost thing has been around a long, long time - possibly longer than Linux for all I know. Check out http://acme.com I have no real admin experience with any version of Windows. Even though I wrote, published and made a tiny bit of money selling a Windows program written in Turbo Pascal in those days I didn't even have networking. Everything was passed around on floppies. --0000000000002cfd5505bd30c46b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
<SNIP>

> mark@science:~$ cat /etc/hosts> 127.0.0.1 =C2=A0 =C2=A0 =C2=A0 localhost
> 127.0.1.1 =C2=A0 =C2= =A0 =C2=A0 science
>
<SNIP>
<SNIP
I think this is r= elevant to DNS resolution of/with domain controllers and may
depend on t= he AD/DC topology.=C2=A0 The idea is to use the LAN address of the box
a= s the first address in /etc/hosts and use 127.0.0.1 as the second address i= n
the file.=C2=A0 If more AD/DNS servers exist in the network, then 127.= 0.0.1 could
be even further down the list.

https://docs.microso= ft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-20= 08/ff807362(v=3Dws.10)?redirectedfrom=3DMSDN

I haven't over-= thought this and there may be more to it, but on a pure linux
environmen= t I expect this would not be a requirement, hence the handbook
approach.=
<SNIP>

It could very well be but I have= vague memories when I first started getting=C2=A0
interested in = Linux, circa 1996-97 with Redhat, that I would buy books that=C2=A0
liberally sprinkled http://localhost or= ping localhost sorts of lines in the text and=C2=A0
examples.=C2= =A0

My undocumented (and unsupported by data) opin= ion is that this localhost
thing has been around a long, long tim= e - possibly longer than Linux for=C2=A0
all I know. Check out

http://acme.com

I have no real admin experience with any version of Wi= ndows. Even though
I wrote, published and made a tiny bit of mone= y selling a Windows program
written in Turbo Pascal in those days= I didn't even have networking. Everything
was passed around = on floppies.
--0000000000002cfd5505bd30c46b--