[PATCH][BZ #13928] Use minimum ttl value from dns query
Siddhesh Poyarekar
siddhesh@redhat.com
Fri Mar 30 07:07:00 GMT 2012
Hi,
I missed the case of host queries using getaddrinfo() in my last patch.
I've attached an updated patch with these changes. New ChangeLog below.
Tested with same scenarios as earlier, except that the command now is:
getent ahosts bad.foo.net
instead of:
getent hosts bad.foo.net
Regards,
Siddhesh
2012-03-29 Siddhesh Poyarekar <siddhesh@redhat.com>
* resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
from a CNAME entry and return the minimum ttl for the query.
(gaih_getanswer_slice): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-the-TTL-value-of-the-CNAME-record.patch
Type: text/x-patch
Size: 1805 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120330/15d1daa5/attachment.bin>
More information about the Libc-alpha
mailing list