4 ms·
> getaddrinfo() is the way to resolve names on Linux and I suspect the *BSDs. At least on OpenBSD, all classical/standard DNS functions (getaddrinfo/gethostbyn
by brynet 2y ago
> getaddrinfo() is the way to resolve names on Linux and I suspect the *BSDs.
At least on OpenBSD, all classical/standard DNS functions (getaddrinfo/gethostbyname/...) are wrappers around OpenBSD's libc asr implementation, written by Eric Faurot.
https://man.openbsd.org/man3/asr_run.3 https://man.openbsd.org/man3/asr_run.3
https://github.com/openbsd/src/tree/master/lib/libc/asr https://github.com/openbsd/src/tree/master/lib/libc/asr