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 | Linux Links | Bling | About BLU

BLU Discuss list archive


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

strange gethostsbyname error...



I won't know the value in h_errno until tomorrow (I can't test right now, 
the code is in use) and I don't think sethostend() and endhostend() are 
being used (I inhereted this code a few weeks ago)

                                 -fjr


>From: "Jerry Feldman" <gaf at blu.org>
>To: discuss at blu.org
>Subject: Re: strange gethostsbyname error...
>Date: Tue, 18 Jun 2002 09:46:00 -0400
>
>What is the errno returned:
>       The variable h_errno can have the following values:
>
>        HOST_NOT_FOUND
>               The specified host is unknown.
>
>        NO_ADDRESS or NO_DATA
>               The requested name is valid but does not have an IP
>               address.
>
>        NO_RECOVERY
>               A non-recoverable name server error occurred.
>
>        TRY_AGAIN
>               A temporary error occurred on an authoritative name
>               server.  Try again later.
>
>
>Also, do you use sethostent() and endhostent();
>
>On 18 Jun 2002 at 13:03, 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
> >
> >
> > -fjr
> >
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> > _______________________________________________
> > Discuss mailing list
> > Discuss at blu.org
> > http://www.blu.org/mailman/listinfo/discuss
>
>
>--
>Jerry Feldman <gaf at blu.org>
>Associate Director
>Boston Linux and Unix user group
>http://www.blu.org PGP key id:C5061EA9
>PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
>
>_______________________________________________
>Discuss mailing list
>Discuss at blu.org
>http://www.blu.org/mailman/listinfo/discuss




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.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