Operating System - HP-UX
1833887 Members
1936 Online
110063 Solutions
New Discussion

hosts resolution on hpux 11i

 
SOLVED
Go to solution
Shivkumar
Super Advisor

hosts resolution on hpux 11i

Hey Guys,

How do find the hosts resolution on hpux 11i ?
I was looking out for nsswitch.conf file but couldn't find it ?

Thanks,
Shiv
2 REPLIES 2
KVK
Valued Contributor
Solution

Re: hosts resolution on hpux 11i

Basically In HP-UX host name resolution is done by i) NIS 2) /etc/hosts 3) DNS


In /etc/nsswitch.conf file should have the host resolution

Example is given below

### hosts: files dns nis ######

Above example will look first 1)/etc/hosts for the name resolution & DNS & NIS

Joseph Loo
Honored Contributor

Re: hosts resolution on hpux 11i

hi,

that file is not created by default, copy /etc/nsswitch.hp_defaults as /etc/nsswitch.conf and modify according to your preferences.

# cp -p /etc/nsswitch.hp_defaults /etc/nsswitch.conf

regards.
what you do not see does not mean you should not believe