I got the authoritative answer from glibc team and unfortunately we have to treat such a behavior as "feature" rather than a "bug".
-- IPv4 addresses come sorted before IPv6 ones if you ask libc in teredo environment. https://bugs.launchpad.net/bugs/584243 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs