Net::DNS is a pure Ruby DNS library, with a clean OO interface and an extensible API WWW: https://github.com/bluemonk/net-dns