Subject: Re: Multiple IP addresses for a single host in "/etc/hosts"
To: None <tech-net@netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: tech-net
Date: 06/02/1999 22:17:03
In article <7isgo3$iiv$1@colwyn.owl.de>,
tron@lyssa.owl.de (Matthias Scheler) writes:
> if a host has multiple entries in "/etc/hosts" right now gethostbyname()
> returns only the first IP address. I think about enhancing _gethtbyname2()
> to build a "struct hostent *" with all IP addresses.
I committed the required change to "libc" a few minutes ago. I want to
thank Christos Zoulas who reviewed my code and suggested a bunch of
useful optimizations.
--
Matthias Scheler http://home.owl.de/~tron/