[Here](https://en.opensuse.org/openSUSE:Packaging_checks#binary-or-shlib-calls-geth...) recommended
The gethostbyname*() and gethostbyaddr*() functions are deprecated as among other things they are not IPv6 ready. Applications should use getaddrinfo(3) and getnameinfo(3) instead. Please work with upstream to port the application to the modern interface. Ulrich Drepper explains the issues in more detail.
Related https://github.com/kamailio/kamailio/issues/1714