From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,32531913e931a3da X-Google-Attributes: gidfee84,public From: john@iastate.edu (John Hascall) Subject: Re: gethostbyname Date: 1997/01/03 Message-ID: <5ajkka$bfu@news.iastate.edu>#1/1 X-Deja-AN: 207517528 references: <32CC1643.41C6@watson.ibm.com> organization: Iowa State University, Ames, Iowa USA newsgroups: comp.unix.osf.osf1 In article <32CC1643.41C6@watson.ibm.com>, Austel Paula K wrote: }I'm calling gethostbyname in a test program that works on other unix }systems and fails on dec osf. If I give gethostbyname an ip address }with dots in it I get HOST_NOT_FOUND. I can ping this ip address }from my dec machine. Any ideas. The general strategy is to call inet_addr() first and if that fails, then call gethostbyname() John -- John Hascall, Software Engr. Shut up, be happy. The conveniences you ISU Computation Center demanded are now mandatory. -Jello Biafra mailto:john@iastate.edu http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud