mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
(_nss_dns_gethostbyaddr_r): Try ip6.int if ip6.arpa fails.
This commit is contained in:
parent
ba81f39e0f
commit
2044256d33
@ -291,6 +291,12 @@ _nss_dns_gethostbyaddr_r (const void *addr, socklen_t len, int af,
|
||||
|
||||
n = res_nquery (&_res, qbuf, C_IN, T_PTR, (u_char *)host_buffer.buf,
|
||||
sizeof host_buffer);
|
||||
if (n < 0 && af == AF_INET6)
|
||||
{
|
||||
strcpy (qp, "ip6.int");
|
||||
n = res_nquery (&_res, qbuf, C_IN, T_PTR, (u_char *)host_buffer.buf,
|
||||
sizeof host_buffer);
|
||||
}
|
||||
if (n < 0)
|
||||
{
|
||||
*h_errnop = h_errno;
|
||||
|
Loading…
Reference in New Issue
Block a user