Does getaddinfo() do what you expect on Ubuntu 13.04 which hasversion 2.17-0ubuntu5 of eglibc?Do you think that the bug has been properly fixed upstream? http://sourceware.org/bugzilla/show_bug.cgi?id=14719 http://sourceware.org/bugzilla/show_bug.cgi?id=15339 http://sourceware.org/bugzilla/show_bug.cgi?id=15635 http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=cfde9b463d63092ff0908d4c2748ace648e2ead8 http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=3d04f5db20c8f0d1ba3881b5f5373586a18cf188