From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
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: Wed, 10 Mar 2021 16:38:59 +0000 [thread overview]
Message-ID: <3035421.5fSG56mABF@lenovo.localdomain> (raw)
In-Reply-To: <CAK2H+eecammjHRv4h+nLmYOd3K2ZPmieC7txc40KTNgZcicPpQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1997 bytes --]
On Wednesday, 10 March 2021 16:00:19 GMT Mark Knecht wrote:
> <SNIP>
>
> > mark@science:~$ cat /etc/hosts
> > 127.0.0.1 localhost
> > 127.0.1.1 science
>
> <SNIP>
> <SNIP
> I think this is relevant to DNS resolution of/with domain controllers and
> may
> depend on the AD/DC topology. The idea is to use the LAN address of the box
> as the first address in /etc/hosts and use 127.0.0.1 as the second address
> in
> the file. If more AD/DNS servers exist in the network, then 127.0.0.1 could
> be even further down the list.
>
> https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-se
> rver-2008-R2-and-2008/ff807362(v=ws.10)?redirectedfrom=MSDN
>
> I haven't over-thought this and there may be more to it, but on a pure linux
> environment 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
> 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.
I always thought the localhost class A addresses were from days of old 'inter-
network' era. The difference with 127.0.0.1 and a private LAN address is the
127.0.0.1 does not reach the data link layer, but loops-back at IP layer 3 and
responds to any applications on the local PC. So, I understood this to mean
it never went through the whole network stack, as it does when you ping a
remote host.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-03-10 16:39 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-21 22:23 [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
2021-02-22 6:20 ` Andrew Udvare
2021-02-25 2:37 ` Peter Humphrey
2021-02-25 2:50 ` Grant Taylor
2021-02-25 7:02 ` Arve Barsnes
2021-02-25 7:33 ` Grant Taylor
2021-03-10 5:09 ` Grant Taylor
2021-03-10 13:27 ` Mark Knecht
2021-03-10 15:25 ` Michael
2021-03-10 16:00 ` Mark Knecht
2021-03-10 16:38 ` Michael [this message]
2021-03-10 17:07 ` Grant Taylor
2021-03-10 17:01 ` Grant Taylor
2021-03-10 16:58 ` Grant Taylor
2021-03-11 13:38 ` Michael
2021-03-11 16:50 ` Grant Taylor
2021-03-12 19:04 ` Michael
2021-03-13 19:01 ` Grant Taylor
2021-03-16 12:16 ` Michael
2021-03-16 12:33 ` Peter Humphrey
2021-03-16 18:54 ` Grant Taylor
2021-03-11 17:04 ` Grant Taylor
2021-03-10 16:44 ` Grant Taylor
2021-03-10 17:43 ` Mark Knecht
2021-03-10 18:37 ` Grant Taylor
2021-03-11 10:54 ` Wols Lists
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3035421.5fSG56mABF@lenovo.localdomain \
--to=confabulate@kintzios.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox