The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Pondering the hosts file
@ 2021-03-11 17:13 Grant Taylor via TUHS
  2021-03-11 17:29 ` [TUHS] [COFF] " Steffen Nurpmeso
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Grant Taylor via TUHS @ 2021-03-11 17:13 UTC (permalink / raw)
  To: The Unix Heritage Society, COFF, Internet History

[-- Attachment #1: Type: text/plain, Size: 993 bytes --]

Hi,

I'm not sure where this message best fits; TUHS, COFF, or Internet 
History, so please forgive me if this list is not the best location.

I'm discussing the hosts file with someone and was wondering if there's 
any historical documentation around it's format and what should and 
should not be entered in the file.

I've read the current man page on Gentoo Linux, but suspect that it's 
far from authoritative.  I'm hoping that someone can point me to 
something more authoritative to the hosts file's format, guidelines 
around entering data, and how it's supposed to function.

A couple of sticking points in the other discussion revolve around how 
many entries a host is supposed to have in the hosts file and any 
ramifications for having a host appear as an alias on multiple lines / 
entries.  To whit, how correct / incorrect is the following:

192.0.2.1	host.example.net	host
127.0.0.1	localhost	host.example.net	host



-- 
Grant. . . .
unix || die


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4013 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [TUHS] [COFF]  Pondering the hosts file
@ 2021-03-11 18:30 Bakul Shah
  0 siblings, 0 replies; 30+ messages in thread
From: Bakul Shah @ 2021-03-11 18:30 UTC (permalink / raw)
  To: Warner Losh
  Cc: Internet History, COFF, The Unix Heritage Society, Grant Taylor

[-- Attachment #1: Type: text/plain, Size: 2059 bytes --]

On Mar 11, 2021, at 10:08 AM, Warner Losh <imp@bsdimp.com> wrote:
> 
> On Thu, Mar 11, 2021 at 10:40 AM Bakul Shah <bakul@iitbombay.org> wrote:
>> From https://www.freebsd.org/cgi/man.cgi?hosts(5)
>> For each host a single line should be present with the following information:
>> 	   Internet address
>> 	   official host name
>> 	   aliases
>> HISTORY
>>      The hosts file format appeared in 4.2BSD.
> 
> While this is true wrt the history of FreeBSD/Unix, I'm almost positive that BSD didn't invent it. I'm pretty sure it was picked up from the existing host file that was published by sri-nic.arpa before DNS.

A different and more verbose format. See RFCs 810 & 952. Possibly because it had to serve more purposes?

> Warner
>  
>>> On Mar 11, 2021, at 9:14 AM, Grant Taylor via TUHS <tuhs@minnie.tuhs.org> wrote:
>>> Hi,
>>> 
>>> I'm not sure where this message best fits; TUHS, COFF, or Internet History, so please forgive me if this list is not the best location.
>>> 
>>> I'm discussing the hosts file with someone and was wondering if there's any historical documentation around it's format and what should and should not be entered in the file.
>>> 
>>> I've read the current man page on Gentoo Linux, but suspect that it's far from authoritative.  I'm hoping that someone can point me to something more authoritative to the hosts file's format, guidelines around entering data, and how it's supposed to function.
>>> 
>>> A couple of sticking points in the other discussion revolve around how many entries a host is supposed to have in the hosts file and any ramifications for having a host appear as an alias on multiple lines / entries.  To whit, how correct / incorrect is the following:
>>> 
>>> 192.0.2.1    host.example.net    host
>>> 127.0.0.1    localhost    host.example.net    host
>>> 
>>> 
>>> 
>>> -- 
>>> Grant. . . .
>>> unix || die
>> _______________________________________________
>> COFF mailing list
>> COFF@minnie.tuhs.org
>> https://minnie.tuhs.org/cgi-bin/mailman/listinfo/coff

[-- Attachment #2: Type: text/html, Size: 4270 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: [TUHS] [COFF] Pondering the hosts file
@ 2021-03-12 10:53 Paul Ruizendaal via TUHS
  0 siblings, 0 replies; 30+ messages in thread
From: Paul Ruizendaal via TUHS @ 2021-03-12 10:53 UTC (permalink / raw)
  To: TUHS main list

BBN’s TCP implementation contained something akin to the hosts file, called hostmap there:
https://www.tuhs.org/cgi-bin/utree.pl?file=BBN-Vax-TCP/doc

I have not looked at the code for a while, but if I remember correctly the BBN kernel code also read in this file (pre-processed into a binary form) to build its internal routing table.

I do not recall having seen an equivalent file with UoI's NCP Unix in any of the surviving docs or sources - but that does not exclude a library having existed to do lookups in a local copy the SRI-NIC host file. In fact there is some evidence for that in the 2.9 BSD source.

The only surviving copy of the 4.1a (network) source code that I know is in the back-port of this code to 2.8/2.9 BSD. This code includes #ifdef’ed code for accessing the SRI-NIC online host table via NCP:
https://www.tuhs.org/cgi-bin/utree.pl?file=2.9BSD/usr/net/local

This source also contains tools to convert the SRI-NIC data into - inter alia - a hosts file:
https://www.tuhs.org/cgi-bin/utree.pl?file=2.9BSD/usr/net/man/man8/htable.8
https://www.tuhs.org/cgi-bin/utree.pl?file=2.9BSD/usr/net/man/man8/gettable.8c

It would seem that the modern host.txt on Unix evolved late ’81 (BBN code) to early ’82 (4.1a BSD). Possibly NCP Unix has prior work.

Paul



^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2021-03-12 10:54 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 17:13 [TUHS] Pondering the hosts file Grant Taylor via TUHS
2021-03-11 17:29 ` [TUHS] [COFF] " Steffen Nurpmeso
2021-03-11 17:40 ` [TUHS] " Bakul Shah
2021-03-11 18:08   ` [TUHS] [COFF] " Warner Losh
2021-03-11 18:12     ` Clem Cole
2021-03-11 18:21       ` Jaap Akkerhuis
2021-03-11 18:21       ` Nelson H. F. Beebe
2021-03-11 20:05         ` Jan Schaumann
2021-03-11 20:30           ` Henry Bent
2021-03-11 20:42             ` Henry Bent
2021-03-11 21:20               ` Henry Bent
2021-03-11 23:46               ` Richard Salz
2021-03-12  1:15               ` Jeremy C. Reed
2021-03-12  3:27                 ` George Michaelson
2021-03-11 20:44           ` Lars Brinkhoff
2021-03-11 21:05             ` Henry Bent
2021-03-12  5:53               ` Lars Brinkhoff
2021-03-11 21:12             ` Ron Natalie
2021-03-11 22:33           ` Jeremy C. Reed
2021-03-11 18:27       ` Henry Bent
2021-03-11 18:18     ` Henry Bent
2021-03-11 18:02 ` Clem Cole
2021-03-11 20:32   ` Ron Natalie
2021-03-11 21:02     ` Bakul Shah
2021-03-11 21:08       ` Ron Natalie
2021-03-11 21:15         ` Bakul Shah
2021-03-12  1:14         ` Mary Ann Horton
2021-03-11 21:20   ` Grant Taylor via TUHS
2021-03-11 18:30 Bakul Shah
2021-03-12 10:53 Paul Ruizendaal via TUHS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).