Software guide · Enterprise Networking

What is libasyncns?

libasyncns is made by Lennart Poettering. A small C library that executes name service resolver queries asynchronously by wrapping common system resolver calls, exposing a file descriptor that can be integrated into custom event loops while using the system’s standard NSS-based resolution methods.

1 in 10large enterprise estates Samplify has analysed run libasyncns.
25tools in its category turn up across those estates.See the category
7core features, listed below.
01

What libasyncns does

A small C library that executes name service resolver queries asynchronously by wrapping common system resolver calls, exposing a file descriptor that can be integrated into custom event loops while using the system’s standard NSS-based resolution methods.

  • Asynchronous wrapper for getaddrinfo(3) and getnameinfo(3)
  • Asynchronous wrapper for res_query(3) and res_search(3)
  • Exports a standard UNIX file descriptor for clean integration into custom main loops/event loops
  • Uses system libc/NSS resolution methods (enabling resolution via mechanisms such as mDNS/LDAP/NIS when provided by NSS modules)
  • IPv6 compatibility when supported by the underlying libc
  • Worker-based execution model (spawns worker threads by default; can use forked worker processes when threads are unavailable)
  • Very small footprint (described as one header and one source file; minimal dependencies beyond libc)

Category: DNS, DHCP and IP Address Management (DDI). libasyncns is open source and free to use.

02

What teams use it for

  • Non-blocking hostname-to-address resolution in network clients/servers
  • Integrating DNS/name lookups into event-driven applications without blocking the main loop
  • Asynchronous use of system NSS-based name resolution in Unix-like applications
03

What it overlaps with

These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.

04

Questions buyers ask

What does libasyncns do?

A small C library that executes name service resolver queries asynchronously by wrapping common system resolver calls, exposing a file descriptor that can be integrated into custom event loops while using the system’s standard NSS-based resolution methods.

How common is libasyncns in large enterprises?

Samplify finds libasyncns in about 1 in 10 of the large enterprise software estates it has analysed.

Is libasyncns free?

libasyncns is open source and free to use.

What can replace libasyncns?

Other tools in the same category include dnsmasq, nscd, tnameserv, Whois.

Do we already own something that does what libasyncns does?

Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.

→

Paying twice for the same job?

Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.

Take the assessmentHow Samplify works
05

Where this comes from

Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with Lennart Poettering.