TADNS is small, portable asynchronous DNS lookup library written in ANSI C. Works on Windows and UNIX. Extremely simple and clean API. The source code resides in single .c file.