]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_nss_dns_gethostbyaddr_r): Try ip6.int if ip6.arpa fails.
authorUlrich Drepper <drepper@redhat.com>
Fri, 2 Aug 2002 20:21:30 +0000 (20:21 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 2 Aug 2002 20:21:30 +0000 (20:21 +0000)
resolv/nss_dns/dns-host.c

index 7b82486803fb6cb8851ab4f364e07a38b3d2b9e1..f5e3058cbd385633547dd1ec48043b82a4ba5ab1 100644 (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;