3 ms·
> gethostbyname Hmm: > The gethostbyname*(), gethostbyaddr*(), herror(), and hstrerror() functions are obsolete. Applications should use getaddrinfo(3), getn
by throw0101a 2y ago
> gethostbyname
Hmm:
> The gethostbyname*(), gethostbyaddr*(), herror(), and hstrerror() functions are obsolete. Applications should use getaddrinfo(3), getnameinfo(3), and gai_strerror(3) instead.
* https://man7.org/linux/man-pages/man3/gethostbyaddr.3.html https://man7.org/linux/man-pages/man3/gethostbyaddr.3.html
- mort96 2y agoI know, I said I've (unintentionally) built software which only works with v4, not that the current best practice is to only work with v4. Using gethostbyname turned out to be pretty easy by the way, I wouldn't say it was a lot more work than using getaddrinfo