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.
Thanks for the hints !I then dug a bit more, found a github which has the sources for very old BSDs !
https://github.com/dank101?tab=repositoriesThe README suggests (IMHO) that previous versions already had TCP/IP working. In the 4.3BSD-Reno, there is no resolv.conf by default in /etc (but a namedb). But I found a man page (https://github.com/dank101/4.3BSD-Reno/blob/master/share/doc/smm/11.named/resolv.conf).
Inside, there's a comment : @(#)resolv.conf 6.2 (Berkeley) 2/29/88 Funny, it's already the true and loved syntax we use today ! domain Berkeley\fB.\fPEdu nameserver 128\fB.\fP32\fB.\fP0\fB.\fP4 nameserver 128\fB.\fP32\fB.\fP0\fB.\fP10(I just don't know what the gibberish chars mean, I guess it's some TeX/groff syntax ?)
I'll dig more into the repositories and let you know ; ) (2BSD had none, but it only has source code, more later)