<html><head></head><body><div dir="auto">At the time, the advanced sockets API Siegfried this containerization. I was just supporting that spec. It's all dead now and should be removed.</div>
<div class="gmail_quote" >On Feb 8, 2019, at 02:23, Florian Weimer <<a href="mailto:fweimer@redhat.com" target="_blank">fweimer@redhat.com</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">I want to remove this feature from glibc.<br><br>This configuration option predates getaddrinfo (the API from RFC 3493)<br>and gethostbyname2. With RES_USE_INET6, the behavior of the legacy<br>gethostbyname IPv4 address name lookup function changes so that instead<br>of a 4-byte address, it returns a 16-byte address. struct hostent has a<br>length field, so this is in theory supported by the interface. However,<br>any caller will still have to be changed manually, to fill a struct<br>sockaddr_in6 from it instead of a struct sockaddr_in.<br><br>The result is that many applications simply break if this option is<br>active (instead of being able to use IPv6 without changes, as may have<br>been the intent), so it does not seem particularly useful to have this<br>option available. Since it also results in some awkward layering<br>violations (why would host name lookups in an LDAP database care about<br>resolv.conf settings?), I've deprecated it a while back and think it's<br>now time to remove it.<br><br>Comments? Is anyone using this?<br><br>Thanks,<br>Florian<br><hr><br>dns-operations mailing list<br>dns-operations@lists.dns-oarc.net<br><a href="https://lists.dns-oarc.net/mailman/listinfo/dns-operations">https://lists.dns-oarc.net/mailman/listinfo/dns-operations</a><br>dns-operations mailing list<br><a href="https://lists.dns-oarc.net/mailman/listinfo/dns-operations">https://lists.dns-oarc.net/mailman/listinfo/dns-operations</a><br></pre></blockquote></div></body></html>