On 11 Apr 2023 22:18, Greg Wooledge wrote:
On Tue, Apr 11, 2023 at 09:56:05PM +0200, zithro wrote:
Do you know when resolv.conf started appearing ?
I guess after TCP/IP got invented ?
The wikipedia page does not mention it.

<https://man.openbsd.org/resolv.conf> says it first appeared in 4.3BSD.
I can neither confirm nor deny this, but it does match my *belief* that
BSD did it first, and then System V copied it.  It's a bit before my time,
though.


THIS was a fun rabbit hole to enter ^^

From "https://en.wikipedia.org/wiki/History_of_Unix";

Perhaps the most important aspect of the BSD development effort was the addition of TCP/IP network code to the mainstream Unix kernel. [...] The network code found in these releases is the ancestor of much TCP/IP network code in use today, including code that was *later* released in AT&T System V UNIX.

So your belief was right. BSD before SysV !

"http://gunkies.org/wiki/4BSD";
    4 BSD does *NOT* include any TCP/IP networking

"http://gunkies.org/wiki/4.2_BSD";
4.2 BSD follows the betas of 4.1a & 4.1b. 4.2 BSD Is special because it incorporates the first versions of BSD TCP/IP

Let's see. I downloaded the source code of 4.2 and 4.3BSD from The Unix Heritage Society (https://www.tuhs.org/Archive/Distributions/UCB/)

------
$ grep -R "resolv.conf"

4.3BSD/lib/libc/net/res_init.c:char    *conffile = "/etc/resolv.conf";
4.3BSD/lib/libc/net/res_init.c: printf("MAXNS reached, reading resolv.conf\n"); 4.3BSD/etc/named/tools/ns.lookup/man/nslookup.l:(Default = value in /etc/resolv.conf, abbreviation = do) 4.3BSD/etc/named/tools/ns.lookup/man/nslookup.l:/etc/resolv.conf initial domain name and name server addresses.
------

So it's not in 4.2, and appeared in 4.3.

Fun one "https://github.com/dank101/4.2BSD/blob/master/include/netdb.h"; :

/*
 * Assumption here is that a network number
 * fits in 32 bits -- probably a poor one.
 */

Ok, out of the hole now ^^

Reply via email to