This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
RE: gethostbyname2_r returns only one address
- From: Juan Carlos Franzoy <jfranzoy at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Wed, 23 Dec 2009 09:38:57 -0300
- Subject: RE: gethostbyname2_r returns only one address
>
> When I call gethostbyname2_r("foo", AF_INET6,...) I get back only the first ipv6 address. ...
Sorry to post such a silly thread.
It was my mistake. In linux you can configure in /etc/host.conf with a
line containing "multi on" that name resolution routines return more
than one address. If multi is off, it returns only the first.
Thanks.