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-22 18:50:03 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.wideopenwest.com!news.wideopenwest.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 22 Apr 2004 20:50:02 -0500 From: Stuart Fuller Subject: Re: gethostbyname returns only single IP address Newsgroups: comp.unix.tru64 Reply-To: stufuller@usa.net Date: Thu, 22 Apr 2004 21:42:26 -0400 References: <5d1678ff.0404220743.37a2d7e1@posting.google.com> Organization: at home, in the basement User-Agent: KNode/0.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <2as96c.7gf.ln@dadsys2.fuller.local> NNTP-Posting-Host: 69.47.117.229 X-Trace: sv3-FUQberYaZNJHE3nGWOmrQ0yYoukcpAKrdF5B5NhQcOTMVARk1pRzx1xvW2if1FYSXH9Fwaj2Bde1098!i1M7ctZi12eJkpfscxjGqXw+cZYLsOaiR+96W6pciUkOfQAnm0YV/KAYg1ToVe/s3Tl7ee+9u/vT!jtPx9a9pZEGXCWpSa9d5tnru9K+Hkg== X-Complaints-To: abuse@wideopenwest.com X-DMCA-Complaints-To: abuse@wideopenwest.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.unix.tru64:11379 Calista wrote: > Hi, > > I use gethostbyname() to get all the IP addresses on my machine. But > it only returns the first one in /etc/hosts file. > > Should I do anything different? > Post exactly what you're doing, what you expect to see, and what you're seeing. -- Stu