Hasty Briefsbeta

  • #asr
  • #async-dns
  • #c-ares
  • curl experimented with using pthread_cancel for async DNS timeout, which failed.
  • getaddrinfo in threads is a classic technique but may require multiple threads to avoid delays.
  • glibc's getaddrinfo_a offers async DNS but is non-portable and doesn't integrate well with event loops.
  • c-ares is a standalone DNS library with threaded and event-driven async queries, but uses callbacks which can complicate control flow.
  • wadns (dns.c) is listed as an alternative but lacks clear public demo code for event loop integration.
  • asr (asynchronous resolver) from OpenBSD provides a cleaner, callback-free API for async DNS, demonstrated with a shorter and clearer example.