Bugzilla – Bug 77
Use getaddrinfo instead of gethostbyname
Last modified: 2010-08-16 06:42:40 MDT
You need to log in before you can comment on or make changes to this bug.
As Ulrich Drepper outlines in detail at http://udrepper.livejournal.com/16116.html, one should use getaddrinfo instead of gethostbyname. The function is described in POSIX standard as: http://www.opengroup.org/onlinepubs/009695399/functions/getaddrinfo.html Note: Also POSIX writes: "The getaddrinfo() and getnameinfo() functions are preferred over the gethostbyaddr() and gethostbyname() functions." [...] "The gethostbyaddr() and gethostbyname() functions may be withdrawn in a future version." (http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyname.html)