ldns is a DNS library modelled after the Net::DNS perl library.
