Operating System - HP-UX
1835449 Members
2782 Online
110078 Solutions
New Discussion

Re: name service switch not working with applications

 
Chris deHahn
Occasional Contributor

name service switch not working with applications


Systems are HP-UX 11.00 with December patch set. /etc/nsswitch.conf is set to "files nis dns" for hosts and "files nis" for passwd. nslookups for hosts work great. NIS logins for users also work great. Automounter is great.

I have two applications that aren't properly querying the name service switch. One is Veritas Backup Datacenter, the other is an application that uses flexlm.

In each instance, the application cannot find the host and/or user. Outsid ethe application everything is fine.

The only way either of these applications work is if a user is added to /etc/passwd, or a host to /etc/hosts. The applications cannot see users or hosts via NIS or DNS.

Is this a coincedence that these are two broken applications, or is there something underneath the hood of HP-UX 11.00 that needs to be tweaked/patched/configured? ?etc/netconfig maybe?

Thanks

Chris
1 REPLY 1
Uffe Gavnholt_1
Honored Contributor

Re: name service switch not working with applications

Hi,

It doesn't sound like a UX problem. the gethostbyname() and gethostbyaddr() system calls are fairly straight forward, if they work in one scenario, you are almost sure, they are ok.

What it sounds like to me is that your application manually looks up in the files on your system.

If possible, try removing /ets/hosts from your nsswitch.conf - and see if the application still requires an entry here.

Uffe