News for hackers. Stuff that matters.
Re:Support for IPv6 by throw0101a on Friday September 20, 2024 @03:35PM (#41604924)
> 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

Re:Support for IPv6 by mort96 on Saturday September 21, 2024 @10:09AM (#41610081)
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