From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b308574f9841b3bf X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-04-23 06:15:36 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: calista_heart@yahoo.com (Calista) Newsgroups: comp.unix.tru64 Subject: Re: gethostbyname returns only single IP address Date: 23 Apr 2004 06:15:36 -0700 Organization: http://groups.google.com Message-ID: <5d1678ff.0404230515.4b0036b4@posting.google.com> References: <5d1678ff.0404220743.37a2d7e1@posting.google.com> <2as96c.7gf.ln@dadsys2.fuller.local> NNTP-Posting-Host: 208.42.8.141 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1082726136 1141 127.0.0.1 (23 Apr 2004 13:15:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 23 Apr 2004 13:15:36 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:11381 Here is some more info if you need. This is the function prototype getipaddresses( char *hostname, char **p_ipaddress, int length ) All memories are properly malloced. length is the maximum length for an IP address. I use this so that I don't go out of bounds. I think the function is doing what it is supposed to. Nothing wrong with it. The problem might be in the configuration options for the multi homed machine. Thanks. Calista.