This is the mail archive of the libc-alpha@sourceware.cygnus.com 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]

Re: gethostbyname2_r buggy?


> 
> 
> --8t9RHnE3ZwKMSgU+
> Content-Type: text/plain; charset=us-ascii
> 
> Recently I've been tracking the reason why nscd has failed on some
> type of hosts and discovered that it was caused by failure of
> gethostbyname2_r() (called from addhstbyname() in nscd/hstcache.c).
> This function fails returning -1 when resolved host is a recursive
> CNAME, e.g:
> 

Which glibc are you using? I believe I fixed it recently. In my case,
it is

# nslookup www.peopledaily.com.cn
.....
Non-authoritative answer:
Name:    web2.peopledaily.com.cn
Address:  202.99.23.122
Aliases:  www.peopledaily.com.cn, ww.best.peopledaily.com.cn

The patch is

1999-08-10  H.J. Lu  <hjl@gnu.org>

	* resolv/nss_dns/dns-host.c (getanswer_r): Cleanup out-of- 
	buffer handling.


H.J.

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