This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]