View Full Version : 2.11bsd resolver problem

May 9th, 2014, 06:55 AM
I'm running 2.11bsd on a pdp11/83. It's connected to the internet, and I have a problem when I set it up to use a name server. It appears that when a nameserver is declared in /etc/resolv.conf, the system ignores /etc/hosts completely.

The result is that "localhost" and the actual hostname are no longer valid, which causes problems with lpd and sendmail, among other things.

There doesn't seem to be an analog of the linux etc/nsswitch file available.

Anyone have any ideas?

May 9th, 2014, 07:19 AM
Anyone have any ideas?

What, exactly, is in your /etc/resolv.conf ?

May 9th, 2014, 11:53 AM

May 9th, 2014, 12:44 PM
And what's in the /etc/hosts file?

May 9th, 2014, 01:32 PM
And what's in the /etc/hosts file?

The normal entries for localhost and the machine itself.

The problem seems to be that once a nameserver is declared in /etc/resolv.conf, the hosts file is no longer considered by the resolver library.

May 9th, 2014, 02:38 PM
OK. I never actually ran 2.11BSD, but usually when somebody on BSD/Linux has this problem with a resolver and hosts file not working together there is a small error in one of the config files, or a file permission problem, or something like that. Good luck.

May 11th, 2014, 02:15 PM
Are you sure that 2.11bsd had nsswitch.conf at all? When was this introduced?
Edit: this (http://www.gnu.org/software/libc/manual/html_node/Name-Service-Switch.html) seems to imply that Solaris 2 had a method like nsswitch.conf. Solaris 2 was pre-released in June 1992, according to Wikipedia.
What year is your 2.11bsd from?

May 14th, 2014, 06:12 PM
Edited: double-post

May 14th, 2014, 06:46 PM
You might want to double-check the configuration of your /etc/netstart file. That file runs at startup and should contain your hostname along with other network interface configuration parameters. See, for example, the overview at http://www.retrocmp.com/how-tos/installing-211bsd-unix-on-pdp-1144/123-installing-211bsd-networking.

May 26th, 2014, 01:04 AM
Probably unrelated: I have made the mistake of using tabs instead of spaces as separators in configuration files (don't remember which). Some older unix systems don't like this.