[HPADM] nsswitch.conf

From: JTurner@hertz.com
Date: Tue Apr 01 2003 - 10:13:53 EST


Greetings fellow SysAdmins,

I fear I may have misunderstood a recent reply from Bill Hassell regarding
/etc/nsswitch.conf. I had always included a "continue" for not found,
unavail, and try again. I believe I read from Bill that the *default*
action was always to continue thus making the explicit continue directives
redundant. So I started putting only "hosts: files dns" in
/etc/nsswitch.conf, but alas that seems to cause problems, too. See my
mate's email below.

So which is it? I know it works that way in Linux, but is HP-UX
inconsistent?

Thanks as always,
Jim

=== The message ====================================

I was talking to Charles last week about his nsswitch file because he only
had the following information:

hosts: files dns

He stated that you said the NOTFOUND,,,, etc was not necessary and the
above file should work without problem. However, it does not. I used the
same entry in my nsswitch.conf on hpux64 and applications like software
distributor, ntpdate, etc, could not resolve hostnames. I then made my
file look like:

hosts: files[NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns

And life was good again. Conclusion, the NOTFOUND, UNAVAIL, statements
are necessary, taking the shortcut will only screw you.

Brent

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:28 EDT