(_nss_dns_gethostbyaddr_r): Try ip6.int if ip6.arpa fails.

This commit is contained in:
Ulrich Drepper 2002-08-02 20:21:30 +00:00
parent ba81f39e0f
commit 2044256d33

View File

@ -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;