From mboxrd@z Thu Jan 1 00:00:00 1970 From: gtaylor at tnetconsulting.net (Grant Taylor) Date: Thu, 11 Mar 2021 14:08:31 -0700 Subject: [COFF] Pondering the hosts file In-Reply-To: References: <02d10a8e-2f39-4f88-f4c9-ecb295e0f01e@spamtrap.tnetconsulting.net> Message-ID: On 3/11/21 11:02 AM, Clem Cole wrote: > Grant, are you asking about a multi-homed host? I had specifically elided multi-homing for simplicity. > IIRC the original BSD code did the first hit and stop, when looking > something up. *nod* That's my understanding. > What we sometimes did was give the host an alias : host-en for the > ethernet and host-pro proteon HW. If I understand what you're saying: 192.0.2.1 host.example.net host-en 198.51.100.1 host.example.net host-pro > Host would be on both lines, so you wanted to make the first 'host' > to be the default. I guess I shouldn't elide multi-homing and instead address it directly. Or at least clarify the paradigm. Should a given host name appear on more than one entry / line in the hosts file if it's only got one IP (other than 127.0.0.1 / ::1)? -- Grant. . . . unix || die -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4013 bytes Desc: S/MIME Cryptographic Signature URL: