Hacker News new | ask | show | jobs
by CaliforniaKarl 2881 days ago
It looks like getaddrinfo does have that ability, but I could not tell if gethostbyname supports it.
2 comments

Please stop using gethostbyname(3). Among other things, it doesn't support IPv6.
gethostbyname() is obsolete. And no, it doesn't support IDN.