Comment by throw0101a
Comment by throw0101a 10 months 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
I 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