PDA

View Full Version : 2.11bsd resolver problem



Roe
May 9th, 2014, 05: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?

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

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

Roe
May 9th, 2014, 10:53 AM
nameserver 208.38.60.48

Uniballer
May 9th, 2014, 11:44 AM
And what's in the /etc/hosts file?

Roe
May 9th, 2014, 12: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.

Uniballer
May 9th, 2014, 01: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.

tingo
May 11th, 2014, 01: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?

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

boomer3200
May 14th, 2014, 05: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.

mdx
May 26th, 2014, 12: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.