From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <08cf68e2b1eeee882e8c4b077802ff9f.axp-list@archive.invalid> X-Archive-Original-Message-ID: <9702200748.AA08078@bigmac.ag.ohio-state.edu> Date: Thu, 20 Feb 1997 07:43:17 -0500 (EST) From: Steven N. Hirsch Subject: Re: glibc and hung UDB In-Reply-To: On Wed, 19 Feb 1997, Erik Troan wrote: > On Wed, 19 Feb 1997, John E. Ray wrote: > > > I had the same problem... noticed alot of activity on my gateway upon > > rebooting... removed the nsswitch.conf file (as I figure that it was the > > only network related thing that changed), and everything was back to > > normal. > > Shoot -- I didn't want to hear that :-( I'll make a new glibc tomarrow > w/o the nsswitch.conf file. > > Erik Erik, I commented on this over a month ago. This broken behavior has been in every version of glibc that purports to have NIS built-in. The work-around is to have an nsswitch.conf that looks like: --------------------------- Cut Here # # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Legal entries are: # # nisplus or nis+ Use NIS+ (NIS version 3) # nis or yp Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # [NOTFOUND=return] Stop searching if not found so far # passwd: files nis group: files nis hosts: dns [!UNAVAIL=return] files nis --------------------------- Cut Here Apparently, the DNS module followed by the !UNAVAIL keyword is the trick. This works great on the 2.0.x kernels. On 2.1.x it creates a LOOOOng hang on boot, but eventually comes up. Steve -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com