Operating System - HP-UX
1834414 Members
1550 Online
110067 Solutions
New Discussion

Re: unresolved host and missing nsswitch.conf

 
Daniel Price
Occasional Advisor

unresolved host and missing nsswitch.conf

I've just installed 11.00 and I'm having problems with the network settings. I'm getting an unresolved hostname problem and searching theough the forum tells me to look at my etc/nsswitch.conf file. The problem is there isn't one. There are other nsswitch.* files with example content, so is it simply a matter of copying one into a file and renaming it .conf?

There is also a lot of reference to NIS, which I'm not using. Does this matter?

Any advice would be appreciated.

Thanks.
7 REPLIES 7
Armin Feller
Honored Contributor

Re: unresolved host and missing nsswitch.conf

Hi,

you can find a default 'nsswitch.conf' file in:

/usr/newconfig/etc/nsswitch.conf

or if you only use /etc/hosts for nameresolving you can create a nsswitch.conf in /etc and add following:

vi /etc/nsswitch.conf
+-------------------
| hosts: files [NOTFOUND=continue] dns
|
| :wq!

Permissions should be:
ll /etc/nsswitch.conf
-rw-rw-r-- 1 root sys 37 Sep 3 09:43 /etc/nsswitch.conf

Regards,
Armin
eran maor
Honored Contributor

Re: unresolved host and missing nsswitch.conf

Hi

you can copy the /etc/nsswitch.files to be /etc/nsswitch.conf file .

if you are using DNS for name resol. add this entry to the hots tab .

if you are not using NIS dont used the other files exam that you have in /etc
love computers
Daniel Price
Occasional Advisor

Re: unresolved host and missing nsswitch.conf

Thanks for that. I've copied nsswitch.files to .conf and added DNS to the hosts line.

It appears to have solved the problem, although I still can't get netscape to see any external servers.

Any thoughts?

Thanks.
Armin Feller
Honored Contributor

Re: unresolved host and missing nsswitch.conf

You have to add the proxyserver and the port (8088 for http, see /etc/services) in the netscape lan ssttings.

For the automatical configuration you can try following entry:

http://autoproxy/autoproxy/autoproxy

Regards,
Armin
eran maor
Honored Contributor

Re: unresolved host and missing nsswitch.conf

Hi

check to see if you config the /etc/resolv.conf file with the name of the DNS server .

if you need to config it go to man resolv.conf and you will see how to config it .

love computers
Daniel Price
Occasional Advisor

Re: unresolved host and missing nsswitch.conf

Oops, my fault. Forgot to set the proxy config. Problem solved.

Thanks for all your help.

Timothy P. Jackson
Valued Contributor

Re: unresolved host and missing nsswitch.conf

I understand that you have resoved your issues, but just a side note. In 'sam' under 'networks and comminications' it has great utilities to maintain resolv.conf and nsswitch.conf. It will create the nsswitch.conf when you run the utility.