diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-06-28 01:30:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-06-28 01:30:07 +0000 |
commit | 340ef046a6b7e10b112e387f453bc78348c04745 (patch) | |
tree | 33d7ae6c8a8d964395145a8cb55d5a11772cfb1a /resolv/nss_dns | |
parent | f2481c319d604a9d797df6147ec6d3010861e4a4 (diff) | |
download | glibc-340ef046a6b7e10b112e387f453bc78348c04745.zip glibc-340ef046a6b7e10b112e387f453bc78348c04745.tar.gz glibc-340ef046a6b7e10b112e387f453bc78348c04745.tar.bz2 |
Update.
2004-06-27 Ulrich Drepper <drepper@redhat.com>
* resolv/resolv.h (RES_NOIP6DOTINT): Define.
* resolv/res_init.c (res_setoptions): Handle no-ip6-dotint option.
* resolv/gethnamaddr.c (gethostbyaddr): Don't lookup with .ip6.int
if RES_NOIP6DOTINT flag is set.
* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise.
Diffstat (limited to 'resolv/nss_dns')
-rw-r--r-- | resolv/nss_dns/dns-host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c index ab6cc79..0424cb9 100644 --- a/resolv/nss_dns/dns-host.c +++ b/resolv/nss_dns/dns-host.c @@ -337,7 +337,7 @@ _nss_dns_gethostbyaddr_r (const void *addr, socklen_t len, int af, n = __libc_res_nquery (&_res, qbuf, C_IN, T_PTR, host_buffer.buf->buf, 1024, &host_buffer.ptr); - if (n < 0 && af == AF_INET6) + if (n < 0 && af == AF_INET6 && (_res.options & RES_NOIP6DOTINT) == 0) { strcpy (qp, "ip6.int"); n = __libc_res_nquery (&_res, qbuf, C_IN, T_PTR, host_buffer.buf->buf, |