I think c-ares <http://c-ares.haxx.se/> would be a reasonable nonblocking-DNS implementation to use.
I think it would be beneficial to keep the option to use the system's getaddrinfo, though, perhaps through a 'configure' option. Sometimes compatibility with the host's quirky name resolution behavior is more important than a completely nonblocking library.
I think c-ares <http://c-ares.haxx.se/ > would be a reasonable nonblocking-DNS implementation to use.
I think it would be beneficial to keep the option to use the system's getaddrinfo, though, perhaps through a 'configure' option. Sometimes compatibility with the host's quirky name resolution behavior is more important than a completely nonblocking library.