&gt; One solution might be if the statically-linked program included an nscd client, since most people using NSS+LDAP will be using nscd for caching.<p>No, that&#x27;s not OK either; many people use other NSS modules, including mdns (for .local names), resolve (for local resolved support), resolving &quot;localhost&quot; (via &quot;myhostname&quot;), and resolving local container hostnames.<p>If you want to resolve any of the things NSS supports, use NSS.