[PATCH] add AI_ADDRCONFIG to fix ipv4 DNS errors with ipv6

Denys Vlasenko vda.linux at googlemail.com
Wed Jan 16 02:01:09 UTC 2013


On Wednesday 16 January 2013 02:42, Denys Vlasenko wrote:
> On Wednesday 16 January 2013 02:16, Paul Marks wrote:
> > On Tue, Jan 15, 2013 at 5:01 PM, Denys Vlasenko
> > <vda.linux at googlemail.com> wrote:
> > > On Tuesday 15 January 2013 03:44, Kevin Baker wrote:
> > >> AI_ADDRCONFIG is specified in RFC2553 to only return IPv6 data if an
> > >> IPv6 interface works; otherwise only return IPv4 data.
> > >>
> > >> This fixes wget and possibly others which error out when no IPv6
> > >> lookup is available, even with valid IPv4 DNS data coming back.
> > >
> > > Did you try to ENABLE_FEATURE_PREFER_IPV4_ADDRESS in .config?
> > 
> > The purpose of AI_ADDRCONFIG is to prefer IPv6 unless the network
> > obviously does not support it.

For another example. Do you want this behavior?

http://sourceware.org/bugzilla/show_bug.cgi?id=10083

wget would fail to connect to __local__ ::1 address
in some cases. Atrocious, isn't it?

-- 
vda


More information about the busybox mailing list