Operating System - HP-UX
1825693 Members
3228 Online
109686 Solutions
New Discussion

/etc/nsswitch.conf for both files and DNS resolution

 
SOLVED
Go to solution
Alzhy
Honored Contributor

/etc/nsswitch.conf for both files and DNS resolution

On my HP Machines, localhost and other /etc/hosts entries do not resolve if my NSS is:

hosts: dns [NOTFOUND=return] files

But works if:

hosts: files dns

The former works on Solaris and other Unices... What could be wrong?

Hakuna Matata.
3 REPLIES 3
Fred Ruffet
Honored Contributor
Solution

Re: /etc/nsswitch.conf for both files and DNS resolution

It should be something like :
hosts: dns [NOTFOUND=Continue] files

(continue does next choice, return stops search)

Hope this helps,

Fred
--

"Reality is just a point of view." (P. K. D.)
G. Vrijhoeven
Honored Contributor

Re: /etc/nsswitch.conf for both files and DNS resolution

Hi,you could try replacin return with continue.so DNS [NOFOUND=continue] filesHTH,Gideon
Lorenzo Facello
Valued Contributor

Re: /etc/nsswitch.conf for both files and DNS resolution

Hi,
try to recreate it from SAM
--> Network and ..
--> NameServiceSwitch
on host
actions--> config NameServiceSwitch
and choose your policy.

p.s. it require a reboot!!

Regds
L.