adns is a resolver library for C (and C++) programs, and a collection of useful DNS resolver utilities.