From 62a08e44422d2422c455b281843fe7ae1ab19984 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 2 Aug 2002 20:17:36 +0000 Subject: Update. 2002-08-02 Ulrich Drepper * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Adapt previous patch. 2002-06-29 Todd Fries * resolv/gethnamaddr.c (gethostbyaddr): Try ip6.int if ip6.arpa fails. --- resolv/nss_dns/dns-host.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'resolv/nss_dns') diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c index 7b82486..f5e3058 100644 --- a/resolv/nss_dns/dns-host.c +++ b/resolv/nss_dns/dns-host.c @@ -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; -- cgit v1.1