Create statically-linked binary that uses getaddrinfo?

glibc uses libnss to support a number of different providers for address resolution services. Unfortunately, you cannot statically link libnss, as exactly what providers it loads depends on the local system’s configuration.

Leave a Comment