Summary: | glibc 2.3.3_pre20040529 resolver uses ipv4 address before ipv6 address | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mark Kamichoff <prox> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | ipv6 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Mark Kamichoff
2004-06-06 12:23:17 UTC
Do you have such RFC by hand? At present, IPv6 is still experimental (=not widely working), IPv4 is still "the snatdard". Why "applications" choose IPv4 by default? Because it is more stable. Most of them have otions (usually -6) to make them prefer IPv6. IMHO, which is preferred should be a system setting (like somewhere in /proc), changeble on the fly, but at the moment it is not. Aiting for broken IPv6 implementations to time out is simply no good though. If I was writing a network application (for the moment) -4 -6 and --prefer-IPv6 --prefer-IPv4 whould have been a standard set of options (-4 -6 meaning use *only*). There was a similar discussion wheather gethostbyname() should sort (or randomize) the list of names on return. IMHO it is up to the application to choose wheather to use the firs in the list (simple logic), some random one (daubtfully better) or a few (all) in parallel (=waste of resources). Every approach is app-specific and glibc cannot know what is required. I suggest wonfix for this one, unless somebody comes with a working patch to change that at runtime as system config. You might try to change in /etc/nsswitch.conf: -- hosts: files dns6 dns -- not 100% sure if its supported though by glibc ... Why would you spend time waiting for broken IPv6 implementations if you don't have IPv6 support in kernel? On the other hand why would you build IPv6 into your kernel unless you want to use it, test it or do developement? BUT you can't drop IPv4 from linux kernel, so you end up timeouting when connecting on dual stack hosts if they don't serve on IPv4. this seems to be covered here: http://sources.redhat.com/bugzilla/show_bug.cgi?id=524 http://sources.redhat.com/bugzilla/show_bug.cgi?id=84 |