Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

strange gethostsbyname error...



the hosts line reads
hosts:  file nisplus dns

I'm putting some code it in check h_error but this problem occures ovenight 
so it's hard to test since they need the server running durring the day.

-fjr


>From: David Kramer <david at thekramers.net>
>To: discuss at blu.org
>Subject: Re: strange gethostsbyname error...
>Date: Tue, 18 Jun 2002 09:42:53 -0400 (EDT)
>
>On Tue, 18 Jun 2002, Frank Ramsay wrote:
>
> >
> >
> > I'm down at a client site doing some troubleshooting and I've come 
>across a
> > very strange gethostbyname error.  It's returning NULL on a hostname in 
>the
> > /etc/hosts file.  What happens is when the remote server goes down the
> > client program tries to re-connect every few hundred times though it's 
>main
> > loop.  The idea being it will re-connect when server comes back up.  
>When it
> > first comes up it works, but after an hour or two gethostbyname starts 
>to
> > fail.  Has anyone seen anything like this before?
> > redhat 7.2
> > glibc-2.2.4-19
>
>Make sure you're looking at hosts before anything else in
>/etc/nsswitch.conf.
>
>
>-------------------------------------------------------------------
>DDDD   David Kramer                   http://thekramers.net
>DK KD  "The Hitchhiker's Guide to the Galaxy also mentions alcohol.
>DKK D  It says that the best drink in existance is the Pan Galactic
>DK KD  Gargle Blaster."
>DDDD             Douglas Adams, "Hitchhiker's Guide to the Galaxy".
>
>_______________________________________________
>Discuss mailing list
>Discuss at blu.org
>http://www.blu.org/mailman/listinfo/discuss




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org