strange gethostsbyname error...
Frank Ramsay
fjramsay1234 at hotmail.com
Tue Jun 18 09:51:19 EDT 2002
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
More information about the Discuss
mailing list