Applications should use getaddrinfo(3) and getnameinfo(3) instead. See also https://udrepper.livejournal.com/16116.html